Model.projectmarktoplane#
- Model.projectmarktoplane(collection, plane_normal, plane_base, vector, toplane)#
Projects a group of entities to a plane.
- Parameters:
collection (Collection) – The collection containing the entities to be projected.
plane_normal (hwTriple) – The hwTriple object defining the plane normal components. User can also supply a Python list of three doubles.
plane_base (hwTriple) – The hwTriple object defining the base point components of the plane to which the entities will be projected. User can also supply a Python list of three doubles.
vector (hwTriple) – The vector along which the entities will be projected.
toplane (int) – A flag indicating if the entities should be projected to the plane or to the normal of the plane (1 for plane, 0 for normal).
Example#
Project the elements with IDs 10 , 11 , 12 , 13 to the plane with a normal of ( 1.0 , 0.0 , 0.0 ) based at the origin along the vector ( 1.0 , 1.0 , 1.0 )#import hm import hm.entities as ent model = hm.Model() model.projectmarktoplane( collection=hm.Collection(model, ent.Element, [10, 11, 12, 13]), plane_normal=[1.0, 0.0, 0.0], plane_base=[0.0, 0.0, 0.0], vector=[1.0, 1.0, 1.0], toplane=1, )