You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there an implementation in GeometricTools of triangle-triangle intersection in 3D which also returns, if any, the closed line loops of the resulting polygons that result from the intersection? I found triangle-triangle in section 11.5.4 of your book Geometric Tools... which is great, but I wondered if the code was provided here?
I really need the resulting N closed-polygon-line-loops, if any, that define the N-polygons produced as a result of the intersection of the two triangles. Could you point me in the right direction for this?
Thanks,
Andy
The text was updated successfully, but these errors were encountered:
When two 3D triangles intersect, the top-level of the query needs to determine whether or not the triangles are coplanar. If the intersecting triangles are not coplanar, they can intersect in a point or a line segment. There is no "closed-polygon-line-loop." May I assume you are referring to the coplanar case? In this case, the triangles can overlap in a convex polygon. Are you looking for code that computes these polygons (if any)? If this is what you want, you can transform the triangle vertices from 3-tuples to 2-tuples. If the common plane contains point P, has normal vector N, and U and V are vectors in the plane so that {U,V,N} is a right-handed orthonormal set (unit-length vectors, mutually perpendicular, N = Cross(U,V)), you can write a vertex Q = P + xU + yV, where x = Dot(U,Q-P) and y = Dot(V,Q-P). Now you have two triangles in 2D. The file IntrTriangle2Triangle2.h has a find-intersection query, FIQuery<Real,Triangle2,Triangle2>, that computes the point, segment or polygon of the intersection (if there is an intersection).
Hi,
Is there an implementation in GeometricTools of triangle-triangle intersection in 3D which also returns, if any, the closed line loops of the resulting polygons that result from the intersection? I found triangle-triangle in section 11.5.4 of your book Geometric Tools... which is great, but I wondered if the code was provided here?
I really need the resulting N closed-polygon-line-loops, if any, that define the N-polygons produced as a result of the intersection of the two triangles. Could you point me in the right direction for this?
Thanks,
Andy
The text was updated successfully, but these errors were encountered: