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

Function test_delete_faces

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

Source from the content-addressed store, hash-verified

3
4
5def test_delete_faces():
6 torus = mrmesh.makeTorus(2, 1, 10, 10, None)
7 faceBitSetToDelete = mrmesh.FaceBitSet()
8 faceBitSetToDelete.resize(5, False)
9 faceBitSetToDelete.set(mrmesh.FaceId(1), True)
10 oldFaceBS = torus.topology.getValidFaces()
11 torus.topology.deleteFaces(faceBitSetToDelete)
12 deletedBitSet = oldFaceBS - torus.topology.getValidFaces()
13 assert deletedBitSet.count() == 1
14 assert deletedBitSet.test(mrmesh.FaceId(1))
15
16 # delete_faces(...) method of builtins.PyCapsule instance
17 # delete_faces(arg0: mrmesh.MeshTopology, arg1: mrmesh.FaceBitSet) ->
18 # None

Callers

nothing calls this directly

Calls 5

countMethod · 0.80
resizeMethod · 0.45
setMethod · 0.45
deleteFacesMethod · 0.45
testMethod · 0.45

Tested by

no test coverage detected