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

Function test_subdivider

test_python/test_subdivider.py:5–16  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3
4
5def test_subdivider():
6 torus = mrmesh.makeTorus(2, 1, 10, 10, None)
7 countInit = torus.topology.getValidFaces().count()
8
9 settings = mrmesh.SubdivideSettings()
10 settings.maxEdgeLen = 0.3
11 settings.maxEdgeSplits = 5
12 settings.maxDeviationAfterFlip = 0.2
13 settings.region = None
14 mrmesh.subdivideMesh(torus, settings)
15
16 assert torus.topology.getValidFaces().count() > countInit

Callers

nothing calls this directly

Calls 1

countMethod · 0.80

Tested by

no test coverage detected