Model.surfacereversenormals2#
- Model.surfacereversenormals2(collection, size, adjust_fe)#
Reverses the normals of surfaces, and optionally any associated FE. The minimum set of surfaces to maintain overall normal direction consistency, without affecting other surfaces, is automatically adjusted based on the input selection.
- Parameters:
collection (Collection) – The collection containing the entities to reverse the normals. Valid entities are surfaces, solids, 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.
adjust_fe (int) – If non zero, normals for elements associated with selected surfaces will be automatically adjusted to match the normals of their surfaces.
Example#
Reverse the normals for surfaces with IDs 1 - 10 along with the associated FE , and to display the adjusted element normals with a size of 5.0#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.surfacereversenormals2(collection=surfaces_collection, size=5.0, adjust_fe=1)