MCPcopy Create free account
hub / github.com/MeshInspector/MeshLib / test_fix_undercuts

Function test_fix_undercuts

test_python/test_fixUndercuts.py:5–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3
4
5def test_fix_undercuts():
6 torus = mrmesh.makeTorusWithUndercut(2, 1, 1.5, 10, 10, None)
7
8 params = mrmesh.FixUndercuts.FixParams()
9 params.findParameters.upDirection = mrmesh.Vector3f(0, 0, 1)
10 params.voxelSize = 0.2
11
12 undercuts = mrmesh.FaceBitSet()
13 mrmesh.FixUndercuts.find(torus, params.findParameters, undercuts)
14 assert undercuts.count() > 0
15
16 mrmesh.FixUndercuts.fix(torus, params)
17
18 assert torus.points.vec.size() > 2900

Callers

nothing calls this directly

Calls 3

countMethod · 0.80
findMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected