So I have a geometry question and I'm not really sure what to search for.
Im working on a python script, and a part of it I need to identify, what I've been calling 'parallel faces'... for example:
I need a calculation that gives me the '3D slope' (tangent might be the right word) or something that will have the same value for all faces that are 'parallel to each other,' like the yellow-colored faces in this image.
My script gives me the (x,y,z) coordinates of the for each of the faces in the geometry geometry with coordinates, is there a way I can use the coordinates to determine the '3D slope' of the triangulated faces?
Also, what is the correct terminology for 'parallel (3D) faces' and '3D slope'?
You want the direction of the normal (the vector perpendicular to the plane), but even here, there are two normals, pointing in opposite directions. For example, the normal to the $xy$-plane could be in the direction of the positive $z$-axis or the negative $z$-axis.
You have the coordinates of each point, so you can get the vectors from one point to another by subtraction. If you take two vectors in the same plane, and compute their cross-product, that will give you a vector normal to the plane. In order to conveniently compare normals, divide the normal by its length. That gives you a normal of length $1$. Two planes are parallel if they have the same unit normals, or one is the negative of the other. To avoid choosing two parallel vectors, take three consecutive vertices, say $A,B,C$, and compute the cross product of $\vec{v_1}=\vec{AB}$ and $\vec{v_2}=\vec{BC}$
One final point. You are doing floating point calculations, so you can't expect the normals to be identical, just equal up to some small tolerance.