Model.plynormalsreverse#

Model.plynormalsreverse(ply_name, collection, size)#

Reverses the 2D element ply normals.

Parameters:
  • ply_name (hwString) – The name of the ply to reverse normals for.

  • collection (Collection) –

    The collection containing the element entities whose normals are to be reversed.

    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#

Reverse the normals for elements with IDs 1-10 in Ply1, and display 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.plynormalsreverse(ply_name="Ply1", collection=elements_collection, size=0)