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

Function decimate_1

test_python/test_decimate.py:11–24  ·  view source on GitHub ↗
(size, pos1, pos2, pos3)

Source from the content-addressed store, hash-verified

9
10# TEST 1
11def decimate_1(size, pos1, pos2, pos3):
12 mesh = mrmesh.makeCube(size, pos1)
13 settings = mrmesh.DecimateSettings()
14 settings.maxError = 0.001
15
16 result = mrmesh.decimateMesh(mesh, settings)
17
18 assert result.vertsDeleted == 0
19 assert result.facesDeleted == 0
20 # assert( result.errorIntroduced == 0 )
21
22 assert mesh.topology.getValidVerts().size() == 8
23 assert mesh.topology.getValidVerts().count() == 8
24 assert mesh.topology.findHoleRepresentiveEdges().size() == 0
25
26
27# TEST 2

Callers 1

test_decimateFunction · 0.85

Calls 3

countMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected