Open CASCADE Technology 7.8.2.dev
GC_MakeSegment Class Reference

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>

Inheritance diagram for GC_MakeSegment:

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.
 
 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 (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>.
 
 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>.
 
const Handle< Geom_TrimmedCurve > & Value () const
 Returns the constructed line segment.
 
 operator const Handle< Geom_TrimmedCurve > & () const
 
- Public Member Functions inherited from GC_Root
Standard_Boolean IsDone () const
 Returns true if the construction is successful.
 
gce_ErrorType Status () const
 Returns the status of the construction:
 

Additional Inherited Members

- Protected Attributes inherited from GC_Root
gce_ErrorType TheError
 

Detailed Description

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:

  • defining the construction of the line segment,
  • implementing the construction algorithm, and
  • consulting the results. In particular, the Value function returns the constructed line segment.

Constructor & Destructor Documentation

◆ GC_MakeSegment() [1/4]

GC_MakeSegment::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.

◆ GC_MakeSegment() [2/4]

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() [3/4]

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>.

◆ GC_MakeSegment() [4/4]

GC_MakeSegment::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>.

Member Function Documentation

◆ operator const Handle< Geom_TrimmedCurve > &()

GC_MakeSegment::operator const Handle< Geom_TrimmedCurve > & ( ) const
inline

◆ Value()

const Handle< Geom_TrimmedCurve > & GC_MakeSegment::Value ( ) const

Returns the constructed line segment.


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