Model.wadlines_createlines#
- Model.wadlines_createlines(integer_array, double_array, line_type)#
Creates multiple wadlines.
- Parameters:
integer_array (hwIntList) – A list of integers that contains the number of vertices for each polyline.
double_array (hwDoubleList) – A list of doubles that contains the 3D coordinates of the vertices for each polyline.
line_type (int) –
0 - Standard line
1 - Smooth line
Example#
Create 2 wadlines , one with 4 vertices and the other with 3#import hm import hm.entities as ent model = hm.Model() input_integer_array =[4, 3] input_double_list =[ 0.0, 0.0, 0.0, 1.0, 1.0, 1.1, 2.0, 2.0, 2.0, 0.0, 3.0, 3.0, 0.0, 3.3, 3.3, 4.0, 0.0, 4.0, 5.0, 5.0, 0.0, ] model.wadlines_createlines( integer_array=input_integer_array, double_array=input_double_list, line_type=1 )