Click or drag to resize

ShellSectionMarchingAlgorithmsPlaneEdgeIntersection Method

Finds the intersection point between a plane and an edge of a mesh. The plane is defined by a normal and a point. The edge by two vertices.

Namespace:  Karamba.Results.ShellSection
Assembly:  KarambaCommon (in KarambaCommon.dll) Version: 2.2.0.4 (2.2.0.4)
Syntax
public static int PlaneEdgeIntersection(
	Vector3 v1,
	Vector3 v2,
	Vector3 plane_normal,
	Vector3 point_on_plane,
	double tol,
	out Vector3 x
)

Parameters

v1
Type: Karamba.GeometryVector3
Position vector of the first vertex of the edge.
v2
Type: Karamba.GeometryVector3
Position vector of the second vertex of the edge.
plane_normal
Type: Karamba.GeometryVector3
Normal vector of the plane.
point_on_plane
Type: Karamba.GeometryVector3
Point on the plane.
tol
Type: SystemDouble
A tolerance parameter.
x
Type: Karamba.GeometryVector3
The intersection point.

Return Value

Type: Int32
-2 if the plane is parallel to the edge, -3 if the intersection is outside the edge, 1 if the intersection point is the first vertex, 2 if the intersection point is the second vertex, 3 if the intersection point is somewhere else on the edge.
See Also