Model.setmarktopologydisplay#

Model.setmarktopologydisplay(collection, style)#

This function sets the topology visualization style for the marked geometric entities.

Parameters:
  • collection (Collection) – The collection containing the components to modify.

  • style (int) –

    0 - Wireframe geometry

    1 - Shaded geometry and surface edges

    2 - Shaded geometry no surface edges

    3 - Geometry with surface lines

Example#

Set the visualization for the displayed components to shaded with surface edges#
import hm
import hm.entities as ent

model = hm.Model()

displayed_comps = hm.CollectionByDisplayed(model,ent.Component)

model.setmarktopologydisplay(displayed_comps,style=1)