Implements construction algorithms for line segments in 3D space. The result is a Geom_TrimmedCurve. A GC_MakeSegment object provides a framework for:
More...
#include <GC_MakeSegment.hxx>
Implements construction algorithms for line segments in 3D space. The result is a Geom_TrimmedCurve. A GC_MakeSegment object provides a framework for:
- defining the construction parameters;
- running the construction algorithm;
- querying the construction status and resulting segment via
Value().
◆ GC_MakeSegment() [1/4]
| GC_MakeSegment::GC_MakeSegment |
( |
const gp_Pnt & | theP1, |
|
|
const gp_Pnt & | theP2 ) |
Creates a segment of a line from two points.
- Parameters
-
| [in] | theP1 | first point |
| [in] | theP2 | second point |
- Note
- Construction fails if the two points are coincident.
◆ GC_MakeSegment() [2/4]
| GC_MakeSegment::GC_MakeSegment |
( |
const gp_Lin & | theLine, |
|
|
const double | theU1, |
|
|
const double | theU2 ) |
Creates a segment of the input line between two parameters.
- Parameters
-
| [in] | theLine | source line |
| [in] | theU1 | first parameter |
| [in] | theU2 | second parameter |
- Note
- Construction fails when both parameters are equal.
◆ GC_MakeSegment() [3/4]
| GC_MakeSegment::GC_MakeSegment |
( |
const gp_Lin & | theLine, |
|
|
const gp_Pnt & | thePoint, |
|
|
const double | theUlast ) |
Creates a segment of the input line between a point and a parameter.
- Parameters
-
| [in] | theLine | source line |
| [in] | thePoint | start point on line |
| [in] | theUlast | end parameter |
- Note
- Construction fails if trimming parameters are equal.
◆ GC_MakeSegment() [4/4]
| GC_MakeSegment::GC_MakeSegment |
( |
const gp_Lin & | theLine, |
|
|
const gp_Pnt & | theP1, |
|
|
const gp_Pnt & | theP2 ) |
Creates a segment of the input line between two points.
- Parameters
-
| [in] | theLine | source line |
| [in] | theP1 | first point |
| [in] | theP2 | second point |
- Note
- Construction fails if trimming parameters are equal.
◆ operator const occ::handle< Geom_TrimmedCurve > &()
Conversion operator returning the constructed object.
- Returns
- resulting object
◆ Value()
Returns the constructed line segment.
- Returns
- resulting line segment
The documentation for this class was generated from the following file: