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

ModelingData
TKGeomBase
GC


GC_MakeConicalSurface Class Reference

This class implements the following algorithms used
to create a ConicalSurface from Geom.
* Create a ConicalSurface parallel to another and passing
through a point.
* Create a ConicalSurface parallel to another at a distance
<dist>.
* Create a ConicalSurface by 4 points.
* Create a ConicalSurface by its axis and 2 points.
* Create a ConicalSurface by 2 points and 2 radius.
The local coordinate system of the ConicalSurface is defined
with an axis placement (see class ElementarySurface).

The "ZAxis" is the symmetry axis of the ConicalSurface,
it gives the direction of increasing parametric value V.
The apex of the surface is on the negative side of this axis.

The parametrization range is :
U [0, 2*PI], V ]-infinite, + infinite[

The "XAxis" and the "YAxis" define the placement plane of the
surface (Z = 0, and parametric value V = 0) perpendicular to
the symmetry axis. The "XAxis" defines the origin of the
parameter U = 0. The trigonometric sense gives the positive
orientation for the parameter U.

When you create a ConicalSurface the U and V directions of
parametrization are such that at each point of the surface the
normal is oriented towards the "outside region".
.

#include <GC_MakeConicalSurface.hxx>

Inheritance diagram for GC_MakeConicalSurface:

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_MakeConicalSurface (const gp_Ax2 &A2, const Standard_Real Ang, const Standard_Real Radius)
 A2 defines the local coordinate system of the conical surface.
Ang is the conical surface semi-angle ]0, PI/2[.
Radius is the radius of the circle Viso in the placement plane
of the conical surface defined with "XAxis" and "YAxis".
The "ZDirection" of A2 defines the direction of the surface's
axis of symmetry.
If the location point of A2 is the apex of the surface
Radius = 0 .
At the creation the parametrization of the surface is defined
such that the normal Vector (N = D1U ^ D1V) is oriented towards
the "outside region" of the surface.
Status is "NegativeRadius" if Radius < 0.0 or "BadAngle" if
Ang < Resolution from gp or Ang >= PI/ - Resolution
.
Standard_EXPORT GC_MakeConicalSurface (const gp_Cone &C)
 Creates a ConicalSurface from a non persistent Cone from package gp.
.
Standard_EXPORT GC_MakeConicalSurface (const gp_Cone &Cone, const gp_Pnt &Point)
 Make a ConicalSurface from Geom <thecone> parallel to another
ConicalSurface <cone> and passing through a Pnt <point>.
.
Standard_EXPORT GC_MakeConicalSurface (const gp_Cone &Cone, const Standard_Real Dist)
 Make a ConicalSurface from Geom <thecone> parallel to another
ConicalSurface <cone> at the distance <dist> which can
be greater or lower than zero.
.
Standard_EXPORT GC_MakeConicalSurface (const gp_Pnt &P1, const gp_Pnt &P2, const gp_Pnt &P3, const gp_Pnt &P4)
 Make a ConicalSurface from Geom <thecone> passing through 3
Pnt <p1>,<p2>,<p3>.
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_MakeConicalSurface (const gp_Ax1 &Axis, const gp_Pnt &P1, const gp_Pnt &P2)
 Make a ConicalSurface by its axis <axis> and and two points.
.
Standard_EXPORT GC_MakeConicalSurface (const gp_Lin &Axis, const gp_Pnt &P1, const gp_Pnt &P2)
 Make a ConicalSurface by its axis <axis> and and two points.
.
Standard_EXPORT GC_MakeConicalSurface (const gp_Pnt &P1, const gp_Pnt &P2, const Standard_Real R1, const Standard_Real R2)
 Make a ConicalSurface with two points and two radius.
The axis of the solution is the line passing through
<p1> and <p2>.
<r1> is the radius of the section passing through <p1>
and <r2> the radius of the section passing through <p2>.
.
Standard_EXPORT const Handle_Geom_ConicalSurface & Value () const
 Returns the constructed cone.
Exceptions
StdFail_NotDone if no cone is constructed.
.
Standard_EXPORT const Handle_Geom_ConicalSurface & Operator () const
Standard_EXPORT operator Handle_Geom_ConicalSurface () const

Private Attributes

Handle_Geom_ConicalSurface TheCone

Constructor & Destructor Documentation

Standard_EXPORT GC_MakeConicalSurface::GC_MakeConicalSurface const gp_Ax2 &  A2,
const Standard_Real  Ang,
const Standard_Real  Radius
 

Standard_EXPORT GC_MakeConicalSurface::GC_MakeConicalSurface const gp_Cone &  C  ) 
 

Standard_EXPORT GC_MakeConicalSurface::GC_MakeConicalSurface const gp_Cone &  Cone,
const gp_Pnt &  Point
 

Standard_EXPORT GC_MakeConicalSurface::GC_MakeConicalSurface const gp_Cone &  Cone,
const Standard_Real  Dist
 

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

Standard_EXPORT GC_MakeConicalSurface::GC_MakeConicalSurface const gp_Ax1 &  Axis,
const gp_Pnt &  P1,
const gp_Pnt &  P2
 

Standard_EXPORT GC_MakeConicalSurface::GC_MakeConicalSurface const gp_Lin &  Axis,
const gp_Pnt &  P1,
const gp_Pnt &  P2
 

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


Member Function Documentation

Standard_EXPORT const Handle_Geom_ConicalSurface& GC_MakeConicalSurface::Operator  )  const
 

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

Reimplemented from GC_Root.

Standard_EXPORT GC_MakeConicalSurface::operator Handle_Geom_ConicalSurface  )  const
 

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

Reimplemented from GC_Root.

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

Reimplemented from GC_Root.

Standard_EXPORT const Handle_Geom_ConicalSurface& GC_MakeConicalSurface::Value  )  const
 


Field Documentation

Handle_Geom_ConicalSurface GC_MakeConicalSurface::TheCone [private]
 


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