Package org.jzy3d.maths
Class Normal
java.lang.Object
org.jzy3d.maths.Normal
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Indicates how the normal of a vertex is computed SHARED: as a mean of all polygons that the vertex belongs to.static enum
Indicate if normals are defined per point or per geometry. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Coord3d
Compute the normal for the input list of points.static Coord3d
Compute the normal for the three points which is a vector perpendicular to the plane formed by the three input points.static Coord3d
Compute the normal for the three points which is a vector perpendicular to the plane formed by the three input points.
-
Constructor Details
-
Normal
public Normal()
-
-
Method Details
-
compute
Compute the normal for the three points which is a vector perpendicular to the plane formed by the three input points. -
compute
Compute the normal for the three points which is a vector perpendicular to the plane formed by the three input points.- Parameters:
normalize
- if true, will divise normal components by the length of the normal
-
compute
Compute the normal for the input list of points.- Parameters:
points
-normalize
- if true, will divise normal components by the length of the normalaverageNormals
- if true and if points.size() > 3, will compute a normal for each triangle and then process an average normal of all triangles. If false, simply process normal out of the three first points, hence assuming coplanarity of the points.- Returns:
-