Open CASCADE Technology  7.2.0
Public Member Functions

Geom2dAPI_InterCurveCurve Class Reference

This class implements methods for computing. More...

#include <Geom2dAPI_InterCurveCurve.hxx>

Public Member Functions

 Geom2dAPI_InterCurveCurve ()
 Create an empty intersector. Use the function Init for further initialization of the intersection algorithm by curves or curve. More...
 
 Geom2dAPI_InterCurveCurve (const Handle< Geom2d_Curve > &C1, const Handle< Geom2d_Curve > &C2, const Standard_Real Tol=1.0e-6)
 Creates an object and computes the intersections between the curves C1 and C2. More...
 
 Geom2dAPI_InterCurveCurve (const Handle< Geom2d_Curve > &C1, const Standard_Real Tol=1.0e-6)
 Creates an object and computes self-intersections of the curve C1. Tolerance value Tol, defaulted to 1.0e-6, defines the precision of computing the intersection points. In case of a tangential intersection, Tol also defines the size of intersection segments (limited portions of the curves) where the distance between all points from two curves (or a curve in case of self-intersection) is less than Tol. Warning Use functions NbPoints and NbSegments to obtain the number of solutions. If the algorithm finds no intersections NbPoints and NbSegments return 0. More...
 
void Init (const Handle< Geom2d_Curve > &C1, const Handle< Geom2d_Curve > &C2, const Standard_Real Tol=1.0e-6)
 Initializes an algorithm with the given arguments and computes the intersections between the curves C1. and C2. More...
 
void Init (const Handle< Geom2d_Curve > &C1, const Standard_Real Tol=1.0e-6)
 Initializes an algorithm with the given arguments and computes the self-intersections of the curve C1. Tolerance value Tol, defaulted to 1.0e-6, defines the precision of computing the intersection points. In case of a tangential intersection, Tol also defines the size of intersection segments (limited portions of the curves) where the distance between all points from two curves (or a curve in case of self-intersection) is less than Tol. Warning Use functions NbPoints and NbSegments to obtain the number of solutions. If the algorithm finds no intersections NbPoints and NbSegments return 0. More...
 
Standard_Integer NbPoints () const
 Returns the number of intersection-points in case of cross intersections. NbPoints returns 0 if no intersections were found. More...
 
gp_Pnt2d Point (const Standard_Integer Index) const
 Returns the intersection point of index Index. Intersection points are computed in case of cross intersections with a precision equal to the tolerance value assigned at the time of construction or in the function Init (this value is defaulted to 1.0e-6). Exceptions Standard_OutOfRange if index is not in the range [ 1,NbPoints ], where NbPoints is the number of computed intersection points. More...
 
Standard_Integer NbSegments () const
 Returns the number of tangential intersections. NbSegments returns 0 if no intersections were found. More...
 
void Segment (const Standard_Integer Index, Handle< Geom2d_Curve > &Curve1, Handle< Geom2d_Curve > &Curve2) const
 Use this syntax only to get solutions of tangential intersection between two curves. Output values Curve1 and Curve2 are the intersection segments on the first curve and on the second curve accordingly. Parameter Index defines a number of computed solution. An intersection segment is a portion of an initial curve limited by two points. The distance from each point of this segment to the other curve is less or equal to the tolerance value assigned at the time of construction or in function Init (this value is defaulted to 1.0e-6). Exceptions Standard_OutOfRange if Index is not in the range [ 1,NbSegments ], where NbSegments is the number of computed tangential intersections. Standard_NullObject if the algorithm is initialized for the computing of self-intersections on a curve. More...
 
const Geom2dInt_GInterIntersector () const
 return the algorithmic object from Intersection. More...
 

Detailed Description

This class implements methods for computing.

Constructor & Destructor Documentation

◆ Geom2dAPI_InterCurveCurve() [1/3]

Geom2dAPI_InterCurveCurve::Geom2dAPI_InterCurveCurve ( )

Create an empty intersector. Use the function Init for further initialization of the intersection algorithm by curves or curve.

◆ Geom2dAPI_InterCurveCurve() [2/3]

Geom2dAPI_InterCurveCurve::Geom2dAPI_InterCurveCurve ( const Handle< Geom2d_Curve > &  C1,
const Handle< Geom2d_Curve > &  C2,
const Standard_Real  Tol = 1.0e-6 
)

Creates an object and computes the intersections between the curves C1 and C2.

◆ Geom2dAPI_InterCurveCurve() [3/3]

Geom2dAPI_InterCurveCurve::Geom2dAPI_InterCurveCurve ( const Handle< Geom2d_Curve > &  C1,
const Standard_Real  Tol = 1.0e-6 
)

Creates an object and computes self-intersections of the curve C1. Tolerance value Tol, defaulted to 1.0e-6, defines the precision of computing the intersection points. In case of a tangential intersection, Tol also defines the size of intersection segments (limited portions of the curves) where the distance between all points from two curves (or a curve in case of self-intersection) is less than Tol. Warning Use functions NbPoints and NbSegments to obtain the number of solutions. If the algorithm finds no intersections NbPoints and NbSegments return 0.

Member Function Documentation

◆ Init() [1/2]

void Geom2dAPI_InterCurveCurve::Init ( const Handle< Geom2d_Curve > &  C1,
const Handle< Geom2d_Curve > &  C2,
const Standard_Real  Tol = 1.0e-6 
)

Initializes an algorithm with the given arguments and computes the intersections between the curves C1. and C2.

◆ Init() [2/2]

void Geom2dAPI_InterCurveCurve::Init ( const Handle< Geom2d_Curve > &  C1,
const Standard_Real  Tol = 1.0e-6 
)

Initializes an algorithm with the given arguments and computes the self-intersections of the curve C1. Tolerance value Tol, defaulted to 1.0e-6, defines the precision of computing the intersection points. In case of a tangential intersection, Tol also defines the size of intersection segments (limited portions of the curves) where the distance between all points from two curves (or a curve in case of self-intersection) is less than Tol. Warning Use functions NbPoints and NbSegments to obtain the number of solutions. If the algorithm finds no intersections NbPoints and NbSegments return 0.

◆ Intersector()

const Geom2dInt_GInter& Geom2dAPI_InterCurveCurve::Intersector ( ) const

return the algorithmic object from Intersection.

◆ NbPoints()

Standard_Integer Geom2dAPI_InterCurveCurve::NbPoints ( ) const

Returns the number of intersection-points in case of cross intersections. NbPoints returns 0 if no intersections were found.

◆ NbSegments()

Standard_Integer Geom2dAPI_InterCurveCurve::NbSegments ( ) const

Returns the number of tangential intersections. NbSegments returns 0 if no intersections were found.

◆ Point()

gp_Pnt2d Geom2dAPI_InterCurveCurve::Point ( const Standard_Integer  Index) const

Returns the intersection point of index Index. Intersection points are computed in case of cross intersections with a precision equal to the tolerance value assigned at the time of construction or in the function Init (this value is defaulted to 1.0e-6). Exceptions Standard_OutOfRange if index is not in the range [ 1,NbPoints ], where NbPoints is the number of computed intersection points.

◆ Segment()

void Geom2dAPI_InterCurveCurve::Segment ( const Standard_Integer  Index,
Handle< Geom2d_Curve > &  Curve1,
Handle< Geom2d_Curve > &  Curve2 
) const

Use this syntax only to get solutions of tangential intersection between two curves. Output values Curve1 and Curve2 are the intersection segments on the first curve and on the second curve accordingly. Parameter Index defines a number of computed solution. An intersection segment is a portion of an initial curve limited by two points. The distance from each point of this segment to the other curve is less or equal to the tolerance value assigned at the time of construction or in function Init (this value is defaulted to 1.0e-6). Exceptions Standard_OutOfRange if Index is not in the range [ 1,NbSegments ], where NbSegments is the number of computed tangential intersections. Standard_NullObject if the algorithm is initialized for the computing of self-intersections on a curve.


The documentation for this class was generated from the following file: