Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Compute the normal vector to a 3D polygon
ResourceFunction["PolygonNormalVector"][poly] gives the normal vector to the 3D polygon poly. |
Compute the normal vector to a triangle:
In[1]:= |
Out[1]= |
Visualize the polygon and its normal:
In[2]:= |
Out[2]= |
PolygonNormalVector works on Triangle objects:
In[3]:= |
Out[3]= |
PolygonNormalVector works on any 3D polygon:
In[4]:= |
Out[4]= |
Compare the different methods of computing a normal vector:
In[5]:= |
In[6]:= |
Out[6]= |
Visualize the normal vectors for a model of Beethoven:
In[7]:= |
In[8]:= |
Out[8]= |
This work is licensed under a Creative Commons Attribution 4.0 International License