computeFaceNormal

static void computeFaceNormal(@NotNull() Vec3f saveTo, QuadView q)

Computes the face normal of the given quad and saves it in the provided non-null vector.If nominalFace is set will optimize by confirming quad is parallel to thatface and, if so, use the standard normal for that face direction.

Will work with triangles also. Assumes counter-clockwise winding order, which is the norm.Expects convex quads with all points co-planar.

Sources

jvm source
Link copied to clipboard