Model.surfacetorusfromthreepoints#
- Model.surfacetorusfromthreepoints(major_center, minor_center, minor_radius)#
Creates a torus which passes through the three specified nodes, 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:
major_center (Entity) – The node entity specifying the major center of the torus.
minor_center (Entity) – The node entity specifying the minor center of the torus.
minor_radius (Entity) – The node entity through which the minor revolution will pass.
Example#
Create a torus which has the major center at node with ID 1 , the minor center at node with ID 5 , and the minor radius at node with ID 13 , and not create any elements#import hm import hm.entities as ent model = hm.Model() model.surfacemode(mode=4) model.surfacetorusfromthreepoints( major_center=ent.Node(model, 1), minor_center=ent.Node(model, 5), minor_radius=ent.Node(model, 13), )
Note
The
model.surfacemode(mode=4)directive tells HyperMesh not to pass the information on to the automesher for element creation.