| 
            
              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)
Syntaxpublic static int PlaneEdgeIntersection(
	Vector3 v1,
	Vector3 v2,
	Vector3 plane_normal,
	Vector3 point_on_plane,
	double tol,
	out Vector3 x
)
Public Shared Function PlaneEdgeIntersection ( 
	v1 As Vector3,
	v2 As Vector3,
	plane_normal As Vector3,
	point_on_plane As Vector3,
	tol As Double,
	<OutAttribute> ByRef x As Vector3
) As Integer
public:
static int PlaneEdgeIntersection(
	Vector3 v1, 
	Vector3 v2, 
	Vector3 plane_normal, 
	Vector3 point_on_plane, 
	double tol, 
	[OutAttribute] Vector3% x
)
static member PlaneEdgeIntersection : 
        v1 : Vector3 * 
        v2 : Vector3 * 
        plane_normal : Vector3 * 
        point_on_plane : Vector3 * 
        tol : float * 
        x : Vector3 byref -> int 
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