This class implements construction algorithms for gp_Cylinder. Supported constructions include:
More...
#include <gce_MakeCylinder.hxx>
This class implements construction algorithms for gp_Cylinder. Supported constructions include:
- cylinder from axis placement and radius;
- cylinder coaxial to another, through point or at signed offset;
- cylinder from three points;
- cylinder from axis and radius;
- cylinder from circular base.
◆ gce_MakeCylinder() [1/6]
| gce_MakeCylinder::gce_MakeCylinder |
( |
const gp_Ax2 & | A2, |
|
|
const double | Radius ) |
Creates a cylinder from axis placement and radius.
- Note
- Construction fails with
gce_NegativeRadius if Radius is negative.
- Parameters
-
| [in] | A2 | local coordinate system |
| [in] | Radius | radius value |
◆ gce_MakeCylinder() [2/6]
Creates a cylinder coaxial to input cylinder and passing through a point.
- Parameters
-
| [in] | Cyl | source cylinder |
| [in] | Point | reference point |
◆ gce_MakeCylinder() [3/6]
Creates a cylinder coaxial to input cylinder at signed distance.
- Note
- Construction fails with
gce_NegativeRadius if resulting radius is negative.
- Parameters
-
| [in] | Cyl | source cylinder |
| [in] | Dist | signed distance |
◆ gce_MakeCylinder() [4/6]
| gce_MakeCylinder::gce_MakeCylinder |
( |
const gp_Pnt & | P1, |
|
|
const gp_Pnt & | P2, |
|
|
const gp_Pnt & | P3 ) |
Creates a cylinder from three points.
- Note
- Axis is defined by points
P1 and P2.
-
Radius is the distance from
P3 to that axis.
- Parameters
-
| [in] | P1 | first point |
| [in] | P2 | second point |
| [in] | P3 | third point |
◆ gce_MakeCylinder() [5/6]
| gce_MakeCylinder::gce_MakeCylinder |
( |
const gp_Ax1 & | Axis, |
|
|
const double | Radius ) |
Makes a Cylinder by its axis <Axis> and radius <Radius>.
- Parameters
-
| [in] | Axis | axis definition |
| [in] | Radius | radius value |
◆ gce_MakeCylinder() [6/6]
| gce_MakeCylinder::gce_MakeCylinder |
( |
const gp_Circ & | Circ | ) |
|
Creates a cylinder from circular base.
- Note
- The resulting cylinder axis equals the circle axis.
-
This constructor succeeds for any valid
Circ.
- Parameters
-
◆ Operator()
Alias for Value() returning a copy.
- Returns
- resulting object
◆ operator gp_Cylinder()
Conversion operator returning the constructed object.
- Returns
- resulting object
◆ Value()
Returns the constructed cylinder. Exceptions StdFail_NotDone if no cylinder is constructed.
- Returns
- resulting cylinder
The documentation for this class was generated from the following file: