Model.surfacespherefromfournodes#

Model.surfacespherefromfournodes(entitylist)#

Creates a sphere which passes through the four specified nodes, 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:

entitylist (EntityList) – The list of the four nodes entities through which the surface will pass.

Example#

Create a sphere which passes through nodes with IDs 1 , 2 , 3 , and 4 , but not create any elements on the sphere#
import hm
import hm.entities as ent

model = hm.Model()

model.surfacemode(mode=4)

model.surfacespherefromfournodes(
    entitylist=[
        ent.Node(model, 1),
        ent.Node(model, 2),
        ent.Node(model, 3),
        ent.Node(model, 4),
    ]
)

Note

The model.surfacemode(mode=4) directive tells HyperMesh not to pass the information on to the automesher for element creation.