Model.surfacetorusfull#
- Model.surfacetorusfull(center, normal_vector, minor_radius, major_radius)#
Creates a torus with specified radii, and optionally, prepares it for immediate use in the automesher. It also can identify a toroidal region for the automesher to use with the mesh without surface option.
- Parameters:
center (Entity) – A node specifying the center of the torus.
normal_vector (Entity) – The node entity specifying the normal axis of the torus.
minor_radius (double) – The minor radius of the torus.
major_radius (double) – The major radius of the torus.
Example#
Create a torus with center at node with ID 1 , normal at node with ID 2 , a minor radius of 5.0 , and a major radius of 10.0 , but not create any elements#import hm import hm.entities as ent model = hm.Model() model.surfacetorusfull( center=ent.Node(model, 1), normal_vector=ent.Node(model, 2), minor_radius=5.0, major_radius=10.0, )
Note
The
model.surfacemode(mode=4)directive tells HyperMesh not to pass the information on to the automesher for element creation.