Model.meshspinelements2#
- Model.meshspinelements2(collection, plane_normal, plane_base, angle, on_spin, bias_style, biasing, el2comp_mode)#
Creates solid elements by spinning 2D elements around a plane normal.
- Parameters:
collection (Collection) – The collection containing the element entities to be dragged.
plane_normal (hwTriple) – The hwTriple object defining the plane normal components about which the elements should be spun. User can also supply a Python list of three doubles.
plane_base (hwTriple) – The hwTriple object defining the base point components of the plane about which the elements should be spun. User can also supply a Python list of three doubles.
angle (double) – The angle which the elements should be spun.
on_spin (int) – The number of elements to create along the spin.
bias_style (int) –
The style of biasing to use. Valid values are:
0 - Linear
1 - Exponential
2 - Bell curve
biasing (double) – The biasing intensity value.
el2comp_mode (int) –
Flag for organize elements to components. Valid values are:
0 - Elements to original component
1 - Elements to current component
Example#
Create 5 elements by spin elements with ID 10 and 11 about the plane normal defined by [ 0.0 , 0.0 , 1.0 ] and based at [ 20.0 , 20.0 , 0.0 ] by an angle of 90.0 , and have the result elements in the original component#import hm import hm.entities as ent model = hm.Model() elem_collection = hm.Collection(model, ent.Element, [10, 11]) model.meshspinelements2( collection=elem_collection, plane_normal=[0.0, 0.0, 1.0], plane_base=[20.0, 20.0, 0.0], angle=90.0, on_spin=5, bias_style=1, biasing=0.0, organize=0, )