This class implements the following algorithms used to create a Line from Geom.
More...
#include <GC_MakeLine.hxx>
This class implements the following algorithms used to create a Line from Geom.
- Create a Line parallel to another and passing through a point.
- Create a Line passing through 2 points. A MakeLine object provides a framework for:
- defining the construction of the line,
- implementing the construction algorithm, and
- consulting the results. In particular, the Value function returns the constructed line.
◆ GC_MakeLine() [1/5]
| GC_MakeLine::GC_MakeLine |
( |
const gp_Ax1 & | theA1 | ) |
|
Creates a line located in 3D space with the axis placement A1.
- Parameters
-
| [in] | theA1 | line axis placement |
- Note
- The location of
theA1 is the origin of the line.
◆ GC_MakeLine() [2/5]
| GC_MakeLine::GC_MakeLine |
( |
const gp_Lin & | theL | ) |
|
Creates a line from a non-persistent line from package gp.
- Parameters
-
◆ GC_MakeLine() [3/5]
| GC_MakeLine::GC_MakeLine |
( |
const gp_Pnt & | theP, |
|
|
const gp_Dir & | theV ) |
Creates a line from point and direction.
- Parameters
-
| [in] | theP | line origin |
| [in] | theV | line direction |
◆ GC_MakeLine() [4/5]
| GC_MakeLine::GC_MakeLine |
( |
const gp_Lin & | theLin, |
|
|
const gp_Pnt & | thePoint ) |
Creates a line parallel to the input line and passing through the input point.
- Parameters
-
| [in] | theLin | source line |
| [in] | thePoint | point on resulting line |
◆ GC_MakeLine() [5/5]
| GC_MakeLine::GC_MakeLine |
( |
const gp_Pnt & | theP1, |
|
|
const gp_Pnt & | theP2 ) |
Creates a line passing through two points.
- Parameters
-
| [in] | theP1 | first point |
| [in] | theP2 | second point |
- Note
- Construction fails with
gce_ConfusedPoints if the two points are coincident.
◆ operator const occ::handle< Geom_Line > &()
Conversion operator returning the constructed object.
- Returns
- resulting object
◆ 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: