Model.setnormalsdisplaytype#

Model.setnormalsdisplaytype(type)#

Sets the display type for element normals. This is utilized by the functions that turn on element normals display.

Parameters:

type (int) –

0 - Vector display

1 - Color display

Example#

Turn on the display of normals for elements with IDs 1 - 10 at 10 % screen size#
import hm
import hm.entities as ent

model = hm.Model()

model.setnormalsdisplaytype(type=1)

# Creating a collection that contains the elements with IDs 1-10
filter_elements = hm.FilterByEnumeration(ent.Element, list(range(1, 11)))
elements_collection = hm.Collection(model, filter_elements)

model.normalsdisplay(collection=elements_collection, size=0)