Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Given a 3D triangle, return an equivalent 2D triangle along with a transformation function
Triangle3Dto2D[triangle] computes a two-dimensional triangle along with a rotation matrix and offset vector so that one can recover triangle given in three-dimensional space. | |
Triangle3Dto2D[triangle,"TransformationFunction"] computes a two-dimensional triangle along with a TransformationFunction so that one can recover triangle given in three-dimensional space. |
Given a 3D triangle, generate a 2D triangle, a matrix and an offset:
In[1]:= |
![]() |
Out[1]= |
![]() |
Calculate some results in 2D, then return to 3D:
In[2]:= |
![]() |
Out[2]= |
![]() |
Generate a 2D triangle and a transformation function from a 3D triangle:
In[3]:= |
![]() |
Out[3]= |
![]() |
Calculate some results in 2D, then return to 3D:
In[4]:= |
![]() |
Out[4]= |
![]() |
The matrix and offset can be discarded:
In[5]:= |
![]() |
Out[5]= |
![]() |
Out[6]= |
![]() |
Show both triangles in a 3D graphic:
In[7]:= |
![]() |
Out[7]= |
![]() |
Find triangles of a polyhedron:
In[8]:= |
![]() |
Look at the 2D triangle for one of them:
In[9]:= |
![]() |
Out[9]= |
![]() |
Draw tangent spheres on each triangle:
In[10]:= |
![]() |
Out[10]= |
![]() |
This work is licensed under a Creative Commons Attribution 4.0 International License