This class implements construction algorithms for lines in the plane. The result is a Geom2d_Line. A GC_MakeLine2d object provides a framework for:
More...
#include <GC_MakeLine2d.hxx>
This class implements construction algorithms for lines in the plane. The result is a Geom2d_Line. A GC_MakeLine2d object provides a framework for:
- defining the construction parameters;
- running the construction algorithm;
- querying the construction status and the resulting line via
Value(). Supported constructions include:
- line from axis placement;
- line from existing
gp_Lin2d;
- line from point and direction;
- line parallel to input line through a point;
- line parallel to input line at signed distance;
- line through two points.
◆ GC_MakeLine2d() [1/6]
| GC_MakeLine2d::GC_MakeLine2d |
( |
const gp_Ax2d & | theAxis | ) |
|
Creates a line from an axis placement.
- Parameters
-
| [in] | theAxis | axis placement |
- Note
- The location of
theAxis is the line origin.
◆ GC_MakeLine2d() [2/6]
| GC_MakeLine2d::GC_MakeLine2d |
( |
const gp_Lin2d & | theLine | ) |
|
Creates a line from a non-persistent line from package gp.
- Parameters
-
◆ GC_MakeLine2d() [3/6]
| GC_MakeLine2d::GC_MakeLine2d |
( |
const gp_Pnt2d & | thePoint, |
|
|
const gp_Dir2d & | theDir ) |
Constructs a line from origin and direction.
- Parameters
-
| [in] | thePoint | point on line |
| [in] | theDir | direction |
◆ GC_MakeLine2d() [4/6]
| GC_MakeLine2d::GC_MakeLine2d |
( |
const gp_Lin2d & | theLine, |
|
|
const gp_Pnt2d & | thePoint ) |
Constructs a line parallel to input line and passing through a point.
- Parameters
-
| [in] | theLine | source line |
| [in] | thePoint | point on resulting line |
◆ GC_MakeLine2d() [5/6]
| GC_MakeLine2d::GC_MakeLine2d |
( |
const gp_Lin2d & | theLine, |
|
|
const double | theDist ) |
Constructs a line parallel to input line at signed distance.
- Parameters
-
| [in] | theLine | source line |
| [in] | theDist | signed distance |
◆ GC_MakeLine2d() [6/6]
Constructs a line passing through two points.
- Parameters
-
| [in] | theP1 | first point |
| [in] | theP2 | second point |
- Note
- Status is
gce_ConfusedPoints if points are coincident.
◆ operator const occ::handle< Geom2d_Line > &()
Conversion operator returning the constructed object.
- Returns
- resulting line
◆ Value()
Returns the constructed line. Exceptions StdFail_NotDone if no line is constructed.
- Returns
- resulting line
The documentation for this class was generated from the following file: