Model.linesplitatplane#
- Model.linesplitatplane(collection, plane_normal, plane_base)#
Splits a group of lines at a plane.
- Parameters:
collection (Collection) – The collection containing the line entities to be split.
plane_normal (hwTriple) – The hwTriple object defining the plane normal components of the plane to be used in the splitting operation. 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 be used in the splitting operation. User can also supply a Python list of three doubles.
Example#
Split the lines with IDs 10 , 11 , 12 , and 13 to the plane defined by the normal ( 1.0 , 0.0 , 0.0 ) and base at ( 25.0 , 0.0 , 0.0 )#import hm import hm.entities as ent model = hm.Model() model.linesplitatplane( collection=hm.Collection(model, ent.Line, [10, 11, 12, 13]), plane_normal=[1.0, 0.0, 0.0], plane_base=[25.0, 0.0, 0.0], )