Model.setsurfacenormalsdisplaytype#
- Model.setsurfacenormalsdisplaytype(type)#
Sets the display type for surface normals. This is utilized by the functions that turn on surface normals display.
- Parameters:
type (int) –
0 - Vector display
1 - Color display
Example#
Set the surface normals to color display, and turn on the normals display of surfaces with IDs 1 - 10#import hm import hm.entities as ent model = hm.Model() model.setsurfacenormalsdisplaytype(type=1) # Creating a collection that contains the surfaces with IDs 1-10 filter_surfaces = hm.FilterByEnumeration(ent.Surface, list(range(1, 11))) surfaces_collection = hm.Collection(model, filter_surfaces) model.surfacedisplaynormals(collection=surfaces_collection, size=0)