Open CASCADE Technology Reference Manual 8.0.0
Loading...
Searching...
No Matches
Public Member Functions
GC_MakeTrimmedCylinder Class Reference

Implements construction algorithms for trimmed cylinders. The result is a Geom_RectangularTrimmedSurface. A MakeTrimmedCylinder provides a framework for: More...

#include <GC_MakeTrimmedCylinder.hxx>

Inheritance diagram for GC_MakeTrimmedCylinder:
Inheritance graph
[legend]

Public Member Functions

 GC_MakeTrimmedCylinder (const gp_Pnt &theP1, const gp_Pnt &theP2, const gp_Pnt &theP3)
 Creates a trimmed cylindrical surface from three points.
 
 GC_MakeTrimmedCylinder (const gp_Circ &theCirc, const double theHeight)
 Creates a trimmed cylindrical surface from a base circle and height.
 
 GC_MakeTrimmedCylinder (const gp_Ax1 &theA1, const double theRadius, const double theHeight)
 Creates a trimmed cylindrical surface from axis, radius and height.
 
const occ::handle< Geom_RectangularTrimmedSurface > & Value () const
 Returns the constructed trimmed cylinder. Exceptions StdFail_NotDone if no trimmed cylinder is constructed.
 
 operator const occ::handle< Geom_RectangularTrimmedSurface > & () const
 Conversion operator returning the constructed object.
 
- Public Member Functions inherited from GC_Root
bool IsDone () const
 Returns true if the construction is successful.
 
bool IsError () const
 Returns true if the construction has failed.
 
gce_ErrorType Status () const
 Returns the status of the construction:
 

Additional Inherited Members

- Protected Attributes inherited from GC_Root
gce_ErrorType TheError
 

Detailed Description

Implements construction algorithms for trimmed cylinders. The result is a Geom_RectangularTrimmedSurface. A MakeTrimmedCylinder provides a framework for:

Constructor & Destructor Documentation

◆ GC_MakeTrimmedCylinder() [1/3]

GC_MakeTrimmedCylinder::GC_MakeTrimmedCylinder ( const gp_Pnt & theP1,
const gp_Pnt & theP2,
const gp_Pnt & theP3 )

Creates a trimmed cylindrical surface from three points.

Parameters
[in]theP1first axis point
[in]theP2second axis point
[in]theP3point defining radius
Note
The axis is the line passing through theP1 and theP2.
The radius is the distance from theP3 to that axis.
The height is the distance between theP1 and theP2.

◆ GC_MakeTrimmedCylinder() [2/3]

GC_MakeTrimmedCylinder::GC_MakeTrimmedCylinder ( const gp_Circ & theCirc,
const double theHeight )

Creates a trimmed cylindrical surface from a base circle and height.

Parameters
[in]theCircbase circle
[in]theHeighttrimming height
Note
The axis is the normal to the plane defined by theCirc.
theHeight can be positive or negative.
If theHeight is positive, the V parametric direction of result has the same orientation as the normal to theCirc.
If theHeight is negative, it has the opposite orientation.

◆ GC_MakeTrimmedCylinder() [3/3]

GC_MakeTrimmedCylinder::GC_MakeTrimmedCylinder ( const gp_Ax1 & theA1,
const double theRadius,
const double theHeight )

Creates a trimmed cylindrical surface from axis, radius and height.

Parameters
[in]theA1cylinder axis
[in]theRadiuscylinder radius
[in]theHeighttrimming height
Note
Status is gce_NegativeRadius if theRadius is less than zero.
theHeight can be positive or negative.
If theHeight is positive, the V parametric direction of result has the same orientation as theA1.
If theHeight is negative, it has the opposite orientation.

Member Function Documentation

◆ operator const occ::handle< Geom_RectangularTrimmedSurface > &()

GC_MakeTrimmedCylinder::operator const occ::handle< Geom_RectangularTrimmedSurface > & ( ) const
inline

Conversion operator returning the constructed object.

Returns
resulting object

◆ Value()

const occ::handle< Geom_RectangularTrimmedSurface > & GC_MakeTrimmedCylinder::Value ( ) const

Returns the constructed trimmed cylinder. Exceptions StdFail_NotDone if no trimmed cylinder is constructed.

Returns
resulting trimmed cylindrical surface

The documentation for this class was generated from the following file: