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

Method clip_phantom_mesh

tools/Wires/Inflator/PeriodicInflator3D.cpp:63–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61}
62
63void PeriodicInflator3D::clip_phantom_mesh() {
64 VectorF& bbox_min = m_center_cell_bbox_min;
65 VectorF& bbox_max = m_center_cell_bbox_max;
66 get_center_cell_bbox(bbox_min, bbox_max);
67
68 MatrixFr box_vertices;
69 MatrixIr box_faces;
70 create_box(bbox_min, bbox_max, box_vertices, box_faces);
71
72 BooleanEngine::Ptr boolean_engine = BooleanEngine::create("auto");
73 boolean_engine->set_mesh_1(m_phantom_vertices, m_phantom_faces);
74 boolean_engine->set_mesh_2(box_vertices, box_faces);
75 boolean_engine->compute_intersection();
76
77 m_vertices = boolean_engine->get_vertices();
78 m_faces = boolean_engine->get_faces();
79}
80
81void PeriodicInflator3D::update_face_sources() {
82 BoxChecker box_checker(m_center_cell_bbox_min, m_center_cell_bbox_max);

Callers

nothing calls this directly

Calls 6

set_mesh_1Method · 0.80
set_mesh_2Method · 0.80
create_boxFunction · 0.70
compute_intersectionMethod · 0.45
get_verticesMethod · 0.45
get_facesMethod · 0.45

Tested by

no test coverage detected