Model.linedragelements#
- Model.linedragelements(collection, guidelines, guideendpoints, plane_normal, plane_base, ondrag, biasstyle, biasing, using_default_vector)#
Creates a mesh by dragging elements along a line.
- Parameters:
collection (Collection) – The collection containing the input element entities.
guidelines (EntityList) – The line entity representing the guide line
guideendpoints (EntityList) – The list containing the node entities which will be used to segment the guide line.
plane_normal (hwTriple) – The hwTriple object defining the plane normal components of the orientation plane used to orient the line to the guide line. User can also supply a Python list of three doubles.
plane_base (hwTriple) – The hwTriple object defining the base point components of the orientation plane used to orient the line to the guide line. User can also supply a Python list of three doubles.
ondrag (int) – The number of elements to be created along the drag.
biasstyle (int) – The type of biasing to use.
biasing (double) – The biasing intensity value.
using_default_vector (int) –
0 - Use plane normal vector
1 - Use default normal vector
Example#
Drag linearly the element with ID 100, along the guide line with ID 2 and guide nodes with IDs 2154, 2155 with plane with normal along y-axis and create 4 elements#import hm import hm.entities as ent model = hm.Model() model.linedragelements( collection=hm.Collection(model, ent.Element, [100]), guidelines=[ent.Line(model, 2)], guideendpoints=[ent.Node(model, 2154), ent.Node(model, 2155)], plane_base=[850, 150, 470], plane_normal=[0, 1, 0], ondrag=3, biasstyle=0, biasing=1, using_default_vector=0, )