Model.markprojectnormallytoline#
- Model.markprojectnormallytoline(collection, projectlinelist, projectnodelist)#
Projects entities to the line, using the normal to the line as the direction vector.
- Parameters:
collection (Collection) – The collection containing the entities.
projectlinelist (EntityList) – The list of line entities to which the entities are projected.
projectnodelist (EntityList) – The list of nodes entities that are on the lines in the
projectlinelist. The nodes are used to trim the line during projection.
Example#
Project element entities to lines with ID 100 use the nodes of the projected line#import hm import hm.entities as ent model = hm.Model() Collection = hm.Collection(model,ent.Node) Lines = [ent.Line(model,100)] Filter = hm.FilterByCollection(ent.Node,ent.Line) Line_col = hm.Collection(Lines) Nodes = [n for n in hm.Collection(model,Filter,Line_col)] model.markprojectnormallytoline(collection=Collection,projectlinelist=Lines,projectnodelist=Nodes)