Model.markprojectnormallytosurface#

Model.markprojectnormallytosurface(collection, surfptr)#

Projects node, element, point, or line entities onto the surface along the surface normal.

Parameters:
  • collection (Collection) – The collection containing the entities to project.

  • surfptr (Entity) – The entity of the surface to which the entities will be projected.

Example#

Project nodes with IDs 22 , 23 , 24 , and 25 to the surface along the normal to the surface with ID 14#
import hm
import hm.entities as ent

model = hm.Model()

Collection = hm.Collection(model,ent.Node,[22,23,24,25])
Surf = ent.Surface(model,14)
model.markprojectnormallytosurface(collection=Collection,surfptr=Surf)