Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

normalize

To divide each of the components of a normal by the square root of the sum of their squares. Then, if the normal is thought of as a vector from the origin to the point (nx', ny', nx'), this vector has unit length:

nx' = nx/factor
ny' = ny/factor
nz' = nz/factor
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #normalize
ADD COMMENT
Topic
Name
9+9 =