Model.markprojecttosurface#

Model.markprojecttosurface(collection, vector, surface)#

Projects entities to a surface.

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

  • vector (hwTriple) – The direction to project the entities.

  • surface (Entity) – The surface entity to project to.

Example#

Project elements with IDs 109 and 131 to surface with ID 1 along the Z - axis#
import hm
import hm.entities as ent

model = hm.Model()

Elements = hm.Collection(model, ent.Element, [109, 131])
Vector = [0.0, 0.0, 1.0]
Surface = ent.Surface(model, 1)
model.markprojecttosurface(collection=Elements, vector=Vector, surface=Surface)