Computes the coplanar intersection of two objects.

Namespace:  ceometric.VectorGeometry
Assembly:  ceometric.VectorGeometry (in ceometric.VectorGeometry.dll) Version: 1.8.0.0 (1.8.0.0)

Syntax

C#
public PointSet Intersect2d(
	Triangle triangle
)
Visual Basic (Declaration)
Public Function Intersect2d ( _
	triangle As Triangle _
) As PointSet
Visual C++
public:
PointSet^ Intersect2d(
	Triangle^ triangle
)

Parameters

triangle
Type: ceometric.VectorGeometry..::.Triangle
A triangle coplanar to the edge.

Return Value

Returns a PointSet containing the intersection points of the edge and the circumference of triangle. This point set contains
  • 0 intersection points if the edge is coplanar to triangle but does not intersect triangle
  • 0 intersection points if the edge is coplanar to triangle, collinear to an edge of triangle and contains neither start nor end point of that edge.
  • 1 intersection point if the edge is coplanar to triangle and touches triangle in a vertex
  • 1 intersection point if the edge is coplanar to triangle and crosses one edge of triangle
  • 1 intersection point if the edge is coplanar to triangle, collinear to an edge of triangle and contains either start or end point of that edge.
  • 2 intersection points if the edge is coplanar to triangle and crosses two edges oftriangle
  • 2 intersection points if the edge is coplanar to triangle, collinear to an edge of triangle and contains both start or end point of that edge.

Returns null if the objects are not coplanar.

Remarks

Use Intersect3d(Triangle) for non-coplanar intersection.

See Also