Model.dragnodestoformsurface#
- Model.dragnodestoformsurface(entitylist, direction_vector, distance, solid_stitch=0)#
Drags a list of nodes 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:
entitylist (EntityList) – The nodes to be dragged.
direction_vector (hwTriple) – The direction vector to drag the nodes.
distance (double) – The distance to drag the nodes.
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 nodes with IDs 5, 6, 7, 10, 11 and 12, -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) nodelist = [ ent.Node(model,id) for id in [5,6,7,10,11,12] ] model.dragnodestoformsurface( entitylist=nodelist, direction_vector=[0.0, 1.0, 0.0], distance=-100.0, )