| 61 | } |
| 62 | |
| 63 | void 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 | |
| 81 | void PeriodicInflator3D::update_face_sources() { |
| 82 | BoxChecker box_checker(m_center_cell_bbox_min, m_center_cell_bbox_max); |
nothing calls this directly
no test coverage detected