Model.nodecreateatlineparams#
- Model.nodecreateatlineparams(line_entity, double_array, insert_count, mode, point_flag)#
Creates nodes or points at points on given line for given parametric values.
- Parameters:
line_entity (Entity) – The object describing the line entity.
double_array (hwDoubleList) – The list of doubles that contains the parametric location values in the range 0 to 1.
insert_count (int) – Number of additional parametric values inserted between the values specified by the array in
double_array.mode (int) –
Specifies how parameters specified in double_array are used. Valid values are:
0 - Line arc length parameterization is used.
1 - Internal line parameterization is used.
point_flag (int) –
Parameter specifying whether nodes or points are created. Valid values are:
0 - Create nodes
1 - Create points
Examples#
Create nodes on the line with ID 12 at arc length parametric values 0.2 , 0.8 and 0.85#import hm import hm.entities as ent model = hm.Model() model.nodecreateatlineparams( line_entity=ent.Line(model, 12), double_array=[0.2, 0.8, 0.85], insert_count=0, mode=0, point_flag=0, )
Create 10 points on line with ID 12 use the line ‘s internal parameterization with parameters equally distributed between 0 and 1#import hm import hm.entities as ent model = hm.Model() model.nodecreateatlineparams( line_entity=ent.Line(model, 12), double_array=[0.0, 1.0], insert_count=8, mode=1, point_flag=1, )