Model.linecreatefromnodesandprojecttobinder#
- Model.linecreatefromnodesandprojecttobinder(entitylist, type, break_angle, aspect, linear_angle, proj_dir, binder_surf)#
Creates a specific type of line from a list of nodes and project it along a direction onto a surface.
- Parameters:
entitylist (EntityList) – A list containing the node entity objects.
type (int) –
The type of line being generated.
1 - linear
2 - standard
3 - smooth
4 - user-controlled
break_angle (double) – Specifies the minimum angle allowed between three points in a line. If the angle between a point and the two adjacent points is less than the angle specified, considers this point to be a point of discontinuity in the line and places a joint (starts a new NURBS) at this location.
aspect (double) – Specifies the maximum ratio allowed for the distance between a point and the previous point in the line and the distance between the same point and the next point in the line. If the ratio of the distance between the two adjacent segments exceeds the aspect ratio defined, HyperMesh places a joint between the segments.
linear_angle (double) – Defines the angle at which should consider a line straight. For example, if the line angle between three consecutive points along the line is greater than the linear angle specified, HyperMesh removes the center point from the line.
proj_dir (hwTriple) – The vector of direction along which the line is projected after it is created from the node list.
binder_surf (Entity) – The surface entity onto which the line is projected.
Example#
Create a linear line from the nodes with IDs 1,2,3 and 4 and project the line to the surface with ID 24#import hm import hm.entities as ent model = hm.Model() model.linecreatefromnodesandprojecttobinder( entitylist=[ ent.Node(model, 1), ent.Node(model, 2), ent.Node(model, 3), ent.Node(model, 4), ], type=1, break_angle=179.0, aspect=5.0, linear_angle=179.0, proj_dir=[0.0, 0.0, 1.0], binder_surf=ent.Surface(model, 24), )