OCC Main Page | ModelingData | Toolkits | Packages | Class Hierarchy | Data Structures | File List | Data Fields | Globals

ModelingData
TKGeomBase
GC


GC_MakeTrimmedCone Class Reference

Implements construction algorithms for a trimmed
cone limited by two planes orthogonal to its axis. The
result is a Geom_RectangularTrimmedSurface surface.
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.
.

#include <GC_MakeTrimmedCone.hxx>

Inheritance diagram for GC_MakeTrimmedCone:

Inheritance graph
[legend]

Public Member Functions

void * operator new (size_t, void *anAddress)
void * operator new (size_t size)
void operator delete (void *anAddress)
Standard_EXPORT GC_MakeTrimmedCone (const gp_Pnt &P1, const gp_Pnt &P2, const gp_Pnt &P3, const gp_Pnt &P4)
 Make a RectangularTrimmedSurface <thecone> from Geom
It is trimmed by P3 and P4.
Its axis is <p1p2> and the radius of its base is
the distance between <p3> and <p1p2>.
The distance between <p4> and <p1p2> is the radius of
the section passing through <p4>.
An error iss raised if <p1>,<p2>,<p3>,<p4> are
colinear or if <p3p4> is perpendicular to <p1p2> or
<p3p4> is colinear to <p1p2>.
.
Standard_EXPORT GC_MakeTrimmedCone (const gp_Pnt &P1, const gp_Pnt &P2, const Standard_Real R1, const Standard_Real R2)
 Make a RectangularTrimmedSurface from Geom <thecone>
from a cone and trimmed by two points P1 and P2 and
the two radius <r1> and <r2> of the sections passing
through <p1> an <p2>.
Warning
If an error occurs (that is, when IsDone returns
false), the Status function returns:
- gce_ConfusedPoints if points P1 and P2, or P3 and P4, are coincident;
- gce_NullAngle if:
- the lines joining P1 to P2 and P3 to P4 are parallel, or
- R1 and R2 are equal (i.e. their difference is less than gp::Resolution());
- gce_NullRadius if:
- the line joining P1 to P2 is perpendicular to the line joining P3 to P4, or
- the points P1, P2, P3 and P4 are collinear;
- gce_NegativeRadius if R1 or R2 is negative; or
- gce_NullAxis if points P1 and P2 are coincident (2nd syntax only).
.
Standard_EXPORT const Handle_Geom_RectangularTrimmedSurface & Value () const
 Returns the constructed trimmed cone.
StdFail_NotDone if no trimmed cone is constructed.
.
Standard_EXPORT const Handle_Geom_RectangularTrimmedSurface & Operator () const
Standard_EXPORT operator Handle_Geom_RectangularTrimmedSurface () const

Private Attributes

Handle_Geom_RectangularTrimmedSurface TheCone

Constructor & Destructor Documentation

Standard_EXPORT GC_MakeTrimmedCone::GC_MakeTrimmedCone const gp_Pnt &  P1,
const gp_Pnt &  P2,
const gp_Pnt &  P3,
const gp_Pnt &  P4
 

Standard_EXPORT GC_MakeTrimmedCone::GC_MakeTrimmedCone const gp_Pnt &  P1,
const gp_Pnt &  P2,
const Standard_Real  R1,
const Standard_Real  R2
 


Member Function Documentation

Standard_EXPORT const Handle_Geom_RectangularTrimmedSurface& GC_MakeTrimmedCone::Operator  )  const
 

void GC_MakeTrimmedCone::operator delete void *  anAddress  )  [inline]
 

Reimplemented from GC_Root.

Standard_EXPORT GC_MakeTrimmedCone::operator Handle_Geom_RectangularTrimmedSurface  )  const
 

void* GC_MakeTrimmedCone::operator new size_t  size  )  [inline]
 

Reimplemented from GC_Root.

void* GC_MakeTrimmedCone::operator new size_t  ,
void *  anAddress
[inline]
 

Reimplemented from GC_Root.

Standard_EXPORT const Handle_Geom_RectangularTrimmedSurface& GC_MakeTrimmedCone::Value  )  const
 


Field Documentation

Handle_Geom_RectangularTrimmedSurface GC_MakeTrimmedCone::TheCone [private]
 


The documentation for this class was generated from the following file:
Generated on Mon Aug 25 13:22:41 2008 for OpenCASCADE by  doxygen 1.4.1