Open CASCADE Technology
7.3.0
|
Implements construction algorithms for a line segment in 3D space. Makes a segment of Line from the 2 points <P1> and <P2>. The result is a Geom_TrimmedCurve curve. A MakeSegment object provides a framework for: More...
#include <GC_MakeSegment.hxx>
Public Member Functions | |
GC_MakeSegment (const gp_Pnt &P1, const gp_Pnt &P2) | |
Make a segment of Line from the 2 points <P1> and <P2>. It returns NullObject if <P1> and <P2> are confused. More... | |
GC_MakeSegment (const gp_Lin &Line, const Standard_Real U1, const Standard_Real U2) | |
Make a segment of Line from the line <Line1> between the two parameters U1 and U2. It returns NullObject if <U1> is equal <U2>. More... | |
GC_MakeSegment (const gp_Lin &Line, const gp_Pnt &Point, const Standard_Real Ulast) | |
Make a segment of Line from the line <Line1> between the point <Point> and the parameter Ulast. It returns NullObject if <U1> is equal <U2>. More... | |
GC_MakeSegment (const gp_Lin &Line, const gp_Pnt &P1, const gp_Pnt &P2) | |
Make a segment of Line from the line <Line1> between the two points <P1> and <P2>. It returns NullObject if <U1> is equal <U2>. More... | |
const Handle< Geom_TrimmedCurve > & | Value () const |
Returns the constructed line segment. More... | |
operator const Handle< Geom_TrimmedCurve > & () const | |
Public Member Functions inherited from GC_Root | |
Standard_Boolean | IsDone () const |
Returns true if the construction is successful. More... | |
gce_ErrorType | Status () const |
Returns the status of the construction: More... | |
Additional Inherited Members | |
Protected Attributes inherited from GC_Root | |
gce_ErrorType | TheError |
Implements construction algorithms for a line segment in 3D space. Makes a segment of Line from the 2 points <P1> and <P2>. The result is a Geom_TrimmedCurve curve. A MakeSegment object provides a framework for:
Make a segment of Line from the 2 points <P1> and <P2>. It returns NullObject if <P1> and <P2> are confused.
GC_MakeSegment::GC_MakeSegment | ( | const gp_Lin & | Line, |
const Standard_Real | U1, | ||
const Standard_Real | U2 | ||
) |
Make a segment of Line from the line <Line1> between the two parameters U1 and U2. It returns NullObject if <U1> is equal <U2>.
GC_MakeSegment::GC_MakeSegment | ( | const gp_Lin & | Line, |
const gp_Pnt & | Point, | ||
const Standard_Real | Ulast | ||
) |
Make a segment of Line from the line <Line1> between the point <Point> and the parameter Ulast. It returns NullObject if <U1> is equal <U2>.
Make a segment of Line from the line <Line1> between the two points <P1> and <P2>. It returns NullObject if <U1> is equal <U2>.
|
inline |
const Handle< Geom_TrimmedCurve >& GC_MakeSegment::Value | ( | ) | const |
Returns the constructed line segment.