SurfaceMesh.getNormal()¶
Lives in: pygamer.surfacemesh
- SurfaceMesh.getNormal(*args, **kwargs)¶
Overloaded function.
getNormal(self: pygamer.surfacemesh.SurfaceMesh, arg0: pygamer.surfacemesh.FaceID) -> pygamer.Vector
Return the normal of the face.
- Args:
mesh (
SurfaceMesh
): Mesh of interest.FaceID (
FaceID
): FaceID of interest.- Returns:
Vector
: Vector normal to the face.
getNormal(self: pygamer.surfacemesh.SurfaceMesh, arg0: pygamer.surfacemesh.VertexID) -> pygamer.Vector
Return the normal of a vertex.
This is computed as the average normal of all incident faces.
- Args:
mesh (
SurfaceMesh
): Mesh of interest.VertexID (
VertexID
): VertexID of interest.- Returns:
Vector
: Vector normal to the vertex.