Model.plynormalsdisplay#
- Model.plynormalsdisplay(ply_name, collection, size)#
Controls the display of 2D element ply normals.
- Parameters:
ply_name (hwString) – The name of the ply to display normals for.
collection (Collection) – The collection containing the element entities whose normals are to be displayed. If empty, all plies in the specified ply are considered.
size (double) – Specifies the size of the graphic normal vector. 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 in “Ply1”, 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.plynormalsdisplay(ply_name="Ply1",collection=elements_collection,size=0)