Model.linedragnodestoformsurface#
- Model.linedragnodestoformsurface(sectionnodelist, draglinelist, dragnodelist, refplane_normal, refplane_base, using_default_vector)#
Drags a list of nodes along a trimmed line 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 line-dragged surface for the automesher to use under the mesh without surface option.
- Parameters:
sectionnodelist (EntityList) – The list of node entities to be dragged.
draglinelist (EntityList) – The list of line entities to drag along.
dragnodelist (EntityList) – The list of two node entities which lie on the lines in the
draglinelistwhich will be used to trim the line during surface creation.refplane_normal (hwTriple) – The hwTriple object defining the plane normal components. User can also supply a Python list of three doubles.
refplane_base (hwTriple) – The hwTriple object defining the base point components of the plane. User can also supply a Python list of three doubles.
using_default_vector (int) –
Flag that defines the type normal vector. Valid options are:
0 - Use plane normal vector
1 - Use default normal vector
Example#
Drag nodes with IDs 5 , 9 , and 10 along lines with IDs 2 and 1 , trimmed by nodes with IDs 29 and 30 , and use the given plane , create a surface but no elements#import hm import hm.entities as ent model = hm.Model() # The model.surfacemode(mode=4) directive tells HyperMesh not to pass the information # on to the automesher for element creation. model.surfacemode(mode=4) sectionnode_list = [ent.Node(model, 5), ent.Node(model, 9), ent.Node(model, 10)] dragline_list = [ent.Line(model, 2), ent.Line(model, 1)] dragnode_list = [ent.Node(model, 29), ent.Node(model, 30)] model.linedragnodestoformsurface( sectionnodelist=sectionnode_list, draglinelist=dragline_list, dragnodelist=dragnode_list, refplane_normal=[0.0, 1.0, 0.0], refplane_base=[0.0, 0.0, 100.0], using_default_vector=0, )