Model.surfacedisplaynormals#
- Model.surfacedisplaynormals(collection, size)#
Turns on the display of surface normals. The display type is defined by
Model.setsurfacenormalsdisplaytype().- Parameters:
collection (Collection) – The collection containing the entities to display their normals. Valid entities are surfaces, solids and components.
size (double) – Specifies the size of the normal graphics to be drawn, if vector normal display is set. If set to zero, the vector is drawn at 10% of the screen size.
Example#
Turn on the display of normals for surfaceswith IDs 1 - 10 at 10 % screen size#import hm import hm.entities as ent model = hm.Model() # 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)