Model.facepreviewduplicates#

Model.facepreviewduplicates(collection, tol)#

Finds duplicate faces.

Parameters:
  • collection (Collection) – The collection containing the face entities to compare for and delete duplicates.

  • tol (double) – The tolerance used to find duplicate faces.

Example#

Find and deleting duplicates within a tolerance of 0.1, among the faces with IDs 2, 4, 7, 14, and 23#
import hm
import hm.entities as ent

model = hm.Model()

faces = hm.Collection(model, ent.Face, [2, 4, 7, 14, 23])

model.facepreviewduplicates(collection=faces, tol=0.1)