Model.linedraglinetoformsurface#
- Model.linedraglinetoformsurface(sectionlinelist, sectionnodelist, draglinelist, dragnodelist, refplane_normal, refplane_base, using_default_vector)#
Drags a trimmed line 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:
sectionlinelist (EntityList) – The list of line entities to be dragged.
sectionnodelist (EntityList) – The list of two node entities which lie on the lines in the
sectionlinelistwhich will be used to trim the line during surface creation.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 lines with IDs 3 and 4 along lines 2 and 1 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) sectionline_list = [ent.Line(model, 3), ent.Line(model, 4)] dragline_list = [ent.Line(model, 2), ent.Line(model, 1)] model.linedraglinetoformsurface( sectionlinelist=sectionline_list, sectionnodelist=ent.Node.getentitylist(), draglinelist=dragline_list, dragnodelist=ent.Node.getentitylist(), refplane_normal=[0.0, 1.0, 0.0], refplane_base=[0.0, 0.0, 100.0], using_default_vector=0, )