Model.surfacespherefull#
- Model.surfacespherefull(center_node, radius)#
Creates a sphere with a specified center and radius, and optionally, prepares it for immediate use within the automesher. It can also identify a region in the shape of such a sphere for the automesher to use under the mesh without surface option.
- Parameters:
center_node (Entity) – A node specifying the center of the sphere.
radius (double) – The radius of the sphere.
Example#
Create a sphere with center at node with IDs 1 and a radius of 45.0 , but not create any elements on the sphere#import hm import hm.entities as ent model = hm.Model() model.surfacemode(mode=4) model.surfacespherefull(center_node=ent.Node(model, 1), radius=45.0)
Note
The
model.surfacemode(mode=4)directive tells HyperMesh not to pass the information on to the automesher for element creation.