Model.surfaceskin#

Model.surfaceskin(skin_linelist, auto_reverse, stitch_solid=0)#

Creates a skin surface across a line list, and optionally, prepares it for immediate use in the automesher. It can also identify a region in the shape of a skin surface for the automesher to use under the mesh without surface option.

Parameters:
  • skin_linelist (EntityList) – The list of the lines forming the ribs of the skin surface.

  • auto_reverse (int) – Indicates whether the lines should be tested for a “bow tie” condition and reversed if necessary (1 for yes, 0 for no).

  • stitch_solid (int) –

    0 - Created surface will not be stitched to a solid.

    1 - Created surface will be stitched to a solid.

Example#

Create a skin surface across lines with IDs 1 , 2 , 3 , and 4 with no elements#
import hm
import hm.entities as ent

model = hm.Model()

model.surfacemode(mode=4)

model.surfaceskin(
    skin_linelist=[
        ent.Line(model, 1),
        ent.Line(model, 2),
        ent.Line(model, 3),
        ent.Line(model, 4),
    ],
    auto_reverse=1,
)

Note

The model.surfacemode(mode=4) tells HyperMesh not to proceed with element creation, but to create a surface for later use.