Model.shelloffset#

Model.shelloffset(collection, corner_type, distance_type, distance, offset_type)#

Offsets shells along their element normal direction.

Parameters:
  • collection (Collection) – The collection containing the shell element entities to be offset.

  • corner_type (int) –

    0 - Offset the elements using square corners.

    1 - Offset the elements using rounded corners.

    8 - Offset the elements using CFD corners. When this option is specified, an additional collection of surfaces and elements can be specified to specify the geometry to follow.

  • distance_type (int) –

    0 - Offset elements using distance parameter.

    1 - Offset elements using half the element thickness value.

  • distance (double) – The distance to move the elements. Only valid when distance_type=0.

  • offset_type (int) –

    0 - Offset the elements in the positive normal direction.

    1 - Offset the elements in the negative normal direction.

Example#

Offset the displayed shell elements along their positive normal by a value of 0.2, using square corners#
import hm
import hm.entities as ent

model = hm.Model()

model.shelloffset(
    collection=hm.CollectionByDisplayed(model, ent.Element),
    corner_type=0,
    distance_type=0,
    distance=0.2,
    offset_type=0,
)