In geometry, a normal is an object (e.g. a line, ray, or vector) that is perpendicular to a given object. For example, the normal line to a plane curve at a given point is the infinite straight line perpendicular to the tangent line to the curve at the point. A normal vector is a vector perpendicular to a given object at a particular point. A normal vector of length one is called a unit normal vector or normal direction. A curvature vector is a normal vector whose length is the curvature of the object. Multiplying a normal vector by −1 results in the opposite vector, which may be used for indicating sides (e.g., interior or exterior) or orientation (e.g., clockwise vs. counterclockwise, right handed vs. left handed). In three-dimensional space, a surface normal, or simply normal, to a surface at point P is a vector perpendicular to the tangent plane of the surface at P. The vector field of normal directions to a surface is known as Gauss map. The word "normal" is also used as an adjective: a line normal to a plane, the normal component of a force, etc. The concept of normality generalizes to orthogonality (right angles). The concept has been generalized to differentiable manifolds of arbitrary dimension embedded in a Euclidean space. The normal vector space or normal space of a manifold at point P is the set of vectors which are orthogonal to the tangent space at P. Normal vectors are of special interest in the case of smooth curves and smooth surfaces. The normal is often used in 3D computer graphics (notice the singular, as only one normal will be defined) to determine a surface's orientation toward a light source for flat shading, or the orientation of each of the surface's corners (vertices) to mimic a curved surface with Phong shading. The foot of a normal at a point of interest Q (analogous to the foot of a perpendicular) can be defined at the point P on the surface where the normal vector contains Q. The normal distance of a point Q to a curve or to a surface is the Euclidean distance between Q and its foot P.
Normal to space curves
The normal direction to a space curve is: 𝐍=Rd𝐓ds where R=κ−1 is the radius of curvature (reciprocal curvature); 𝐓 is the tangent vector, in terms of the curve position 𝐫 and arc-length s: 𝐓=d𝐫ds
Normal to planes and polygons
For a convex polygon (such as a triangle), a surface normal can be calculated as the vector cross product of two (non-parallel) edges of the polygon. For a plane given by the general form plane equation ax+by+cz+d=0, the vector 𝐧=(a,b,c) is a normal. For a plane whose equation is given in parametric form 𝐫(s,t)=𝐫0+s𝐩+t𝐪, where 𝐫0 is a point on the plane and 𝐩,𝐪 are non-parallel vectors pointing along the plane, a normal to the plane is a vector normal to both 𝐩 and 𝐪, which can be found as the cross product 𝐧=𝐩×𝐪.
Normal to general surfaces in 3D space
If a (possibly non-flat) surface S in 3D space ℝ3 is parameterized by a system of curvilinear coordinates 𝐫(s,t)=(x(s,t),y(s,t),z(s,t)), with s and t real variables, then a normal to S is by definition a normal to a tangent plane, given by the cross product of the partial derivatives 𝐧=∂𝐫∂s×∂𝐫∂t. If a surface S is given implicitly as the set of points (x,y,z) satisfying F(x,y,z)=0, then a normal at a point (x,y,z) on the surface is given by the gradient 𝐧=∇F(x,y,z). since the gradient at any point is perpendicular to the level set of S. For a surface S in ℝ3 given as the graph of a function z=f(x,y), an upward-pointing normal can be found either from the parametrization 𝐫(x,y)=(x,y,f(x,y)), giving 𝐧=∂𝐫∂x×∂𝐫∂y=(1,0,∂f∂x)×(0,1,∂f∂y)=(−∂f∂x,−∂f∂y,1); or more simply from its implicit form F(x,y,z)=z−f(x,y)=0, giving 𝐧=∇F(x,y,z)=(−∂f∂x,−∂f∂y,1). Since a surface does not have a tangent plane at a singular point, it has no well-defined normal at that point: for example, the vertex of a cone. In general, it is possible to define a normal almost everywhere for a surface that is Lipschitz continuous.
Orientation
The normal to a (hyper)surface is usually scaled to have unit length, but it does not have a unique direction, since its opposite is also a unit normal. For a surface which is the topological boundary of a set in three dimensions, one can distinguish between two normal orientations, the inward-pointing normal and outer-pointing normal. For an oriented surface, the normal is usually determined by the right-hand rule or its analog in higher dimensions. If the normal is constructed as the cross product of tangent vectors (as described in the text above), it is a pseudovector.
Transforming normals
When applying a transform to a surface it is often useful to derive normals for the resulting surface from the original normals. Specifically, given a 3×3 transformation matrix 𝐌, we can determine the matrix 𝐖 that transforms a vector 𝐧 perpendicular to the tangent plane 𝐭 into a vector 𝐧′ perpendicular to the transformed tangent plane 𝐌𝐭, by the following logic: Write n′ as 𝐖𝐧. We must find 𝐖. W𝕟 is perpendicular to M𝕥 if and only if 0=(W𝕟)⋅(M𝕥) if and only if 0=(W𝕟)T(M𝕥) if and only if 0=(𝕟TWT)(M𝕥) if and only if 0=𝕟T(WTM)𝕥 Choosing 𝐖 such that WTM=I, or W=(M−1)T, will satisfy the above equation, giving a W𝕟 perpendicular to M𝕥, or an 𝐧′ perpendicular to 𝐭′, as required. Therefore, one should use the inverse transpose of the linear transformation when transforming surface normals. The inverse transpose is equal to the original matrix if the matrix is orthonormal, that is, purely rotational with no scaling or shearing.
… excerpt ends here. Continue reading the full article.





