This class implements construction algorithms for line segments in the plane. The result is a Geom2d_TrimmedCurve. A GC_MakeSegment2d object provides a framework for:
More...
#include <GC_MakeSegment2d.hxx>
This class implements construction algorithms for line segments in the plane. The result is a Geom2d_TrimmedCurve. A GC_MakeSegment2d object provides a framework for:
- defining the construction parameters;
- running the construction algorithm;
- querying the construction status and the resulting segment via
Value().
◆ GC_MakeSegment2d() [1/5]
| GC_MakeSegment2d::GC_MakeSegment2d |
( |
const gp_Pnt2d & | theP1, |
|
|
const gp_Pnt2d & | theP2 ) |
Creates a segment between two points.
- Parameters
-
| [in] | theP1 | first point |
| [in] | theP2 | second point |
- Note
- Construction fails with
gce_ConfusedPoints if points are coincident.
◆ GC_MakeSegment2d() [2/5]
Creates a segment on a line defined by point and direction. The segment starts at theP1 and ends at the orthogonal projection of theP2 onto that line.
- Parameters
-
| [in] | theP1 | first point |
| [in] | theV | direction vector |
| [in] | theP2 | second point |
- Note
- Construction fails with
gce_ConfusedPoints if the projected endpoint is coincident with theP1 within resolution.
◆ GC_MakeSegment2d() [3/5]
| GC_MakeSegment2d::GC_MakeSegment2d |
( |
const gp_Lin2d & | theLine, |
|
|
const double | theU1, |
|
|
const double | theU2 ) |
Creates a segment on a line between two parameter values.
- Parameters
-
| [in] | theLine | source line |
| [in] | theU1 | first parameter |
| [in] | theU2 | second parameter |
◆ GC_MakeSegment2d() [4/5]
| GC_MakeSegment2d::GC_MakeSegment2d |
( |
const gp_Lin2d & | theLine, |
|
|
const gp_Pnt2d & | thePoint, |
|
|
const double | theUlast ) |
Creates a segment on a line between point parameter and target parameter.
- Parameters
-
| [in] | theLine | source line |
| [in] | thePoint | first point on segment support line |
| [in] | theUlast | last parameter |
◆ GC_MakeSegment2d() [5/5]
Creates a segment on a line between projections of two points.
- Parameters
-
| [in] | theLine | source line |
| [in] | theP1 | first point |
| [in] | theP2 | second point |
◆ operator const occ::handle< Geom2d_TrimmedCurve > &()
Conversion operator returning the constructed object.
- Returns
- resulting trimmed curve
◆ Value()
Returns the constructed line segment. Exceptions StdFail_NotDone if no line segment is constructed.
- Returns
- resulting trimmed curve
The documentation for this class was generated from the following file: