Model.orient_normals_outside_solid#

Model.orient_normals_outside_solid(collection, orientation)#

This function re-orients the normals of a solid inside or outside, depending on the orientation parameter.

Parameters:
  • collection (Collection) – The collection containing the solid entities for orientation.

  • orientation (int) –

    The value of orientation.

    0 - Orient normals outside solid

    1 - Orient normals inside solid

Example#

Orient the normals for all solids toward the inside#
import hm
import hm.entities as ent

model = hm.Model()

model.orient_normals_outside_solid(
    collection=hm.Collection(model, ent.Solid), orientation=1
)