Implements construction algorithms for trimmed cones. The result is a Geom_RectangularTrimmedSurface. A MakeTrimmedCone provides a framework for:
More...
#include <GC_MakeTrimmedCone.hxx>
Implements construction algorithms for trimmed cones. The result is a Geom_RectangularTrimmedSurface. A MakeTrimmedCone provides a framework for:
- defining the construction of the trimmed cone,
- implementing the construction algorithm, and
- consulting the results. In particular, the Value function returns the constructed trimmed cone.
◆ GC_MakeTrimmedCone() [1/2]
| GC_MakeTrimmedCone::GC_MakeTrimmedCone |
( |
const gp_Pnt & | theP1, |
|
|
const gp_Pnt & | theP2, |
|
|
const gp_Pnt & | theP3, |
|
|
const gp_Pnt & | theP4 ) |
Creates a rectangular trimmed conical surface from four points.
- Parameters
-
| [in] | theP1 | first axis point |
| [in] | theP2 | second axis point |
| [in] | theP3 | point defining first trimming section |
| [in] | theP4 | point defining second trimming section |
- Note
- The surface is trimmed by points P3 and P4.
-
The axis is defined by points P1 and P2; the base radius is the distance from point P3 to that axis.
-
The distance from point P4 to that axis is the radius of the section passing through P4.
-
Construction fails if points P1, P2, P3 and P4 are collinear, or if vector P3P4 is perpendicular/collinear to vector P1P2.
◆ GC_MakeTrimmedCone() [2/2]
| GC_MakeTrimmedCone::GC_MakeTrimmedCone |
( |
const gp_Pnt & | theP1, |
|
|
const gp_Pnt & | theP2, |
|
|
const double | theR1, |
|
|
const double | theR2 ) |
Creates a rectangular trimmed conical surface from two points and two radii.
- Parameters
-
| [in] | theP1 | first axis point |
| [in] | theP2 | second axis point |
| [in] | theR1 | radius at P1 |
| [in] | theR2 | radius at P2 |
- Note
- The two radii correspond to sections passing through the two axis points.
-
On failure, status is propagated from
GC_MakeConicalSurface(theP1, theP2, theR1, theR2).
◆ operator const occ::handle< Geom_RectangularTrimmedSurface > &()
Conversion operator returning the constructed object.
- Returns
- resulting object
◆ Value()
Returns the constructed trimmed cone. StdFail_NotDone if no trimmed cone is constructed.
- Returns
- resulting trimmed conical surface
The documentation for this class was generated from the following file: