Problem: Find the intersection edge of a circle and a triangle in space
Use the intersect3d methods to find the intersection of planar objects beeing non-coplanar to each other. In contrast, use the intersect2d - methods to intersect the perimeters of planar objects beeing coplanar to each other.
Solution using V#
- public static void NonCoplanarCircleTriangleIntersection()
- {
- // Create a triangle
- // Create a circle
- // Compute the intersection
- Edge e = t.Intersect3d(c);
- // Visualize: ----------------------------------------------------------
- // Make a scene
- // Make some layers
- // Add all to the scene
- sc.Add(c, cLayer);
- sc.Add(t, tLayer);
- sc.Add(e, eLayer);
- // output the scene as dxf
- sc.WriteDxf(@"c:\triangle_circle.dxf");
- }

