Model.offset_surfaces_display_offset#

Model.offset_surfaces_display_offset(collection, reserved_1)#

The function will create segments in the component named “^offset” with the color pink if the surfaces or solids on collection are a result of an offset. The segments will point to the original position of the surfaces/solids (the position from which the offset was made). This is for visualization and review purposes.

There is an exception to this for the 9.0 release that will be removed in subsequent releases: If the surfaces are a result of the midsurface extraction or have a manually assigned thickness, then the function will always display the thickness even if an offset was made later.

Parameters:
  • collection (Collection) – The collection containing the entities to generate segments for. Valid entities are surfaces and solids.

  • reserved_1 (int) – Reserved for future use. Should be set to 0.

Example#

Review the offset for the displayed surfaces#
import hm
import hm.entities as ent

model = hm.Model()

model.offset_surfaces_display_offset(
    collection=hm.CollectionByDisplayed(model, ent.Surface), reserved_1=0
)