Model.meshdragelements2#
- Model.meshdragelements2(collection, vector, distance, on_drag, bias_style, biasing, el2comp_mode)#
Creates solid elements by dragging 2D elements along a vector.
- Parameters:
collection (Collection) – The collection containing the element entities to be dragged.
vector (hwTriple) – The hwTriple object defining the vector components along which the elements should be dragged. User can also supply a Python list of three doubles.
distance (double) – The distance which the elements should be dragged.
on_drag (int) – The number of elements to create along the drag.
bias_style (int) –
Flag that defines the bias style in dragginf procedure. Valid values are:
0 - Linear
1 - Exponential
2 - Bell curve
biasing (double) – The biasing intensity value.
el2comp_mode (int) –
Flag indicating the organization of elements in component. Valid values are:
0 - Elements to current component
1 - Elements to original component
Example#
Create 5 elements by drag elements with ID 10 and 11 along a vector defined by ( 1.0 , 0.0 , 0.0 ) a length of 50 units , and have the result elems in the original component#import hm import hm.entities as ent model = hm.Model() element_collection = hm.Collection(model, ent.Element, [10, 11]) model.meshdragelements2( collection=element_collection, vector=[1.0, 0.0, 0.0], distance=50.0, on_drag=5, bias_style=1, biasing=0.0, el2comp_mode=0, )