Model.facesmarktosurface#

Model.facesmarktosurface(collection, surface)#

Assigns a group of faces to a different surface.

Parameters:
  • collection (Collection) – The collection containing the face entities to assign to a different surface.

  • surface (Entity) –

    The surface to which the selected faces are to be assigned.

    0 - A new surface is created.

Example#

Create a new surface which contains the faces with IDs 13, 18, 20, and 21#
import hm
import hm.entities as ent

model = hm.Model()

faces = hm.Collection(model, ent.Face, [13, 18, 20, 21])

model.facesmarktosurface(collection=faces, surface=0)