Model.normalsreverse#

Model.normalsreverse(collection, size)#

Reverses the normals of 2D and 3D elements.

Parameters:
  • collection (Collection) – The collection containing the entities to reverse the normals for. Valid entities are elements and components.

  • size (double) – The size in model units of the normal display, if displayed as vectors.

Example#

Reverse the normal of element with ID 15 use a display size of 10.0#
import hm
import hm.entities as ent

model = hm.Model()

# Creating a collection that contains the elements with IDs 1-15
filter_elements = hm.FilterByEnumeration(ent.Element, list(range(1, 16)))
elements_collection = hm.Collection(model, filter_elements)

model.normalsreverse(collection=elements_collection, size=10.0)