Model.draglinetoformsurface#
- Model.draglinetoformsurface(linelist, entitylist, direction_vector, distance, solid_stitch=0)#
Drags trimmed lines to create a surface, and optionally, prepares it for immediate use within the automesher. It can also identify a region in the shape of a dragged surface for the automesher to use under the mesh without surface option.
- Parameters:
linelist (EntityList) – The list of line entities to be dragged.
entitylist (EntityList) – The list node entities which lie on the lines in the
linelist, which will be used to trim the line during surface creation.direction_vector (hwTriple) – The direction vector to drag the lines.
distance (double) – The distance to drag the lines.
solid_stitch (int) –
0 - Created surface will not be stitched to a solid.
1 - Created surface will be stitched to a solid.
Example#
Drag the lines with IDs 1, 2, trimmed by the nodes with IDs 29 and 30, -100.0 units in the direction of the y-axis, create a surface but no elements#import hm import hm.entities as ent model = hm.Model() # The model.surfacemode(mode=4) tells HyperMesh not to pass the information on to the automesher for element creation. model.surfacemode(mode=4) Line1 = ent.Line(model, 1) Line2 = ent.Line(model, 2) node1 = ent.Node(model, 29) node2 = ent.Node(model, 30) model.draglinetoformsurface( linelist=[Line1, Line2], entitylist=[node1, node2], direction_vector=[0.0, 1.0, 0.0], distance=-100.0, )