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

Method tile

tools/Wires/Inflator/PhantomMeshGenerator.cpp:151–166  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

149}
150
151void PhantomMeshGenerator::tile() {
152 const size_t dim = m_wire_network->get_dim();
153 VectorF bbox_min = m_wire_network->get_bbox_min();
154 VectorF bbox_max = m_wire_network->get_bbox_max();
155 bbox_min.array() *= 3;
156 bbox_max.array() *= 3;
157
158 WireTiler tiler(m_wire_network);
159 tiler.with_parameters(m_parameter_manager);
160 m_phantom_wires = tiler.tile_with_guide_bbox(
161 bbox_min, bbox_max, VectorI::Ones(dim) * 3);
162 m_phantom_wires->center_at_origin();
163
164 assert(m_phantom_wires->has_attribute("thickness"));
165 assert(m_phantom_wires->has_attribute("vertex_offset"));
166}
167
168void PhantomMeshGenerator::trim_irrelavent_edges() {
169 // Relavent edge is edge that have at least 1 end point from the original

Callers

nothing calls this directly

Calls 7

get_bbox_minMethod · 0.80
get_bbox_maxMethod · 0.80
get_dimMethod · 0.45
with_parametersMethod · 0.45
tile_with_guide_bboxMethod · 0.45
center_at_originMethod · 0.45
has_attributeMethod · 0.45

Tested by

no test coverage detected