fmeobjects.FMEGeometryTools.calculateVertexNormals

FMEGeometryTools.calculateVertexNormals(repairOnlyMissing, repairType, geom)

This method returns None if vertex normals are repaired on the geometry or if there is nothing to repair. If an error occurs during the repair a FMEException is thrown and the geom object is no longer valid for access. Currently, the only valid value for repairOnlyMissing is true, and the only valid value for repairType is BY_FACE.

Parameters:
  • repairOnlyMissing (bool) – Boolean indicating whether or not to repair only the missing vertex normals, currently, the only true is valid.

  • repairType (int) – Repair type, the only valid value is BY_FACE.

  • geom (FMEGeometry) – The geometry to calculate the vertex normals for.

Return type:

None

Raises:

FMEException – An exception is raised if an error occurred.