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

Function resolve_self_intersection

scripts/repousse.py:170–181  ·  view source on GitHub ↗
(wires, logger)

Source from the content-addressed store, hash-verified

168 return mesh;
169
170def resolve_self_intersection(wires, logger):
171 if wires.num_vertices == 0:
172 return wires;
173 bbox_min, bbox_max = wires.bbox;
174 tol = norm(bbox_max - bbox_min) / 1000;
175 start_time = time();
176 vertices, edges = pymesh.snap_rounding(wires.vertices, wires.edges, tol);
177 finish_time = time();
178 t = finish_time - start_time;
179 logger.info("Snap rounding running time: {}".format(t));
180 wires.load(vertices, edges);
181 return wires;
182
183def extract_straight_skeleton(wires, logger, remove_holes):
184 wires = uniform_sampling(wires);

Callers 1

mainFunction · 0.70

Calls 1

loadMethod · 0.80

Tested by

no test coverage detected