MCPcopy Create free account
hub / github.com/PyMesh/PyMesh / print_basic_info

Function print_basic_info

scripts/meshstat.py:25–41  ·  view source on GitHub ↗
(mesh, info)

Source from the content-addressed store, hash-verified

23 print_green("{:_^55}".format(val));
24
25def print_basic_info(mesh, info):
26 print_section_header("Basic information");
27 print("dim: {}".format(mesh.dim));
28
29 num_vertices = mesh.num_vertices;
30 num_faces = mesh.num_faces;
31 num_voxels = mesh.num_voxels;
32 print("#v: {}\t#f: {}\t#V: {}".format(
33 num_vertices, num_faces, num_voxels));
34 print("vertex per face : {}".format(mesh.vertex_per_face));
35 print("vertex per voxel: {}".format(mesh.vertex_per_voxel));
36
37 info["num_vertices"] = num_vertices;
38 info["num_faces"] = num_faces;
39 info["num_voxels"] = num_voxels;
40 info["vertex_per_face"] = mesh.vertex_per_face;
41 info["vertex_per_voxel"] = mesh.vertex_per_voxel;
42
43def print_bbox(mesh, info):
44 print_section_header("Boundding box");

Callers 1

mainFunction · 0.85

Calls 1

print_section_headerFunction · 0.85

Tested by

no test coverage detected