Model.normalsdisplay#
- Model.normalsdisplay(collection, size)#
Turns on the display of surface normals.
- Parameters:
collection (Collection) – The collection containing the input entities to turn on normals for. Valid entities are elements and components.
size (double) – Specifies the size of the normal graphics to be drawn. If set to zero, the vector is drawn at 10% of the screen size.
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() # 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.0)