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

ModelingAlgorithms
TKGeomAlgo
GeomFill


GeomFill_Sweep Class Reference

Geometrical Sweep Algorithm
.

#include <GeomFill_Sweep.hxx>


Public Member Functions

void * operator new (size_t, void *anAddress)
void * operator new (size_t size)
void operator delete (void *anAddress)
Standard_EXPORT GeomFill_Sweep (const Handle(GeomFill_LocationLaw)&Location, const Standard_Boolean WithKpart=Standard_True)
Standard_EXPORT void SetDomain (const Standard_Real First, const Standard_Real Last, const Standard_Real SectionFirst, const Standard_Real SectionLast)
 Set parametric information
[<first>, <last>] Sets the parametric bound of the
sweeping surface to build.
<sectionfirst>, <sectionlast> gives coresponding
bounds parameter on the section law of <first> and <last>

V-Iso on Sweeping Surface S(u,v) is defined by
Location(v) and Section(w) where
w = SectionFirst + (v - First) / (Last-First)
* (SectionLast - SectionFirst)
.
Standard_EXPORT void SetTolerance (const Standard_Real Tol3d, const Standard_Real BoundTol=1.0, const Standard_Real Tol2d=1.0e-5, const Standard_Real TolAngular=1.0)
 Set Approximation Tolerance
Tol3d : Tolerance to surface approximation
Tol2d : Tolerance used to perform curve approximation
Normaly the 2d curve are approximated with a
tolerance given by the resolution method define in
<locationlaw> but if this tolerance is too large Tol2d
is used.
TolAngular : Tolerance (in radian) to control the angle
beetween tangents on the section law and
tangent of iso-v on approximed surface
.
Standard_EXPORT Standard_Boolean ExchangeUV () const
 returns true if sections are U-Iso
This can be produce in some cases when <withkpart> is True.

Standard_EXPORT Standard_Boolean UReversed () const
 returns true if Parametrisation sens in U is inverse of
parametrisation sens of section (or of path if ExchangeUV)

Standard_EXPORT Standard_Boolean VReversed () const
 returns true if Parametrisation sens in V is inverse of
parametrisation sens of path (or of section if ExchangeUV)

Standard_EXPORT void Build (const Handle(GeomFill_SectionLaw)&Section, const GeomFill_ApproxStyle Methode=GeomFill_Location, const GeomAbs_Shape Continuity=GeomAbs_C2, const Standard_Integer Degmax=10, const Standard_Integer Segmax=30)
 Build the Sweeep Surface
ApproxStyle defines Approximation Strategy
- GeomFill_Section : The composed Function : Location X Section
is directly approximed.
- GeomFill_Location : The location law is approximed, and the
SweepSurface is build algebric composition
of approximed location law and section law
This option is Ok, if Section.Surface() methode
is effective.
Continuity : The continuity in v waiting on the surface
Degmax : The maximum degree in v requiered on the surface
Segmax : The maximum number of span in v requiered on
the surface

raise If Domain are infinite or Profile not Setted.
.
Standard_EXPORT Standard_Boolean IsDone () const
 Tells if the Surface is Buildt.
.
Standard_EXPORT Standard_Real ErrorOnSurface () const
 Gets the Approximation error.
.
Standard_EXPORT void ErrorOnRestriction (const Standard_Boolean IsFirst, Standard_Real &UError, Standard_Real &VError) const
 Gets the Approximation error.
.
Standard_EXPORT void ErrorOnTrace (const Standard_Integer IndexOfTrace, Standard_Real &UError, Standard_Real &VError) const
 Gets the Approximation error.
.
Standard_EXPORT Handle_Geom_Surface Surface () const
Standard_EXPORT Handle_Geom2d_Curve Restriction (const Standard_Boolean IsFirst) const
Standard_EXPORT Standard_Integer NumberOfTrace () const
Standard_EXPORT Handle_Geom2d_Curve Trace (const Standard_Integer IndexOfTrace) const

Private Member Functions

Standard_EXPORT Standard_Boolean Build2d (const GeomAbs_Shape Continuity, const Standard_Integer Degmax, const Standard_Integer Segmax)
Standard_EXPORT Standard_Boolean BuildAll (const GeomAbs_Shape Continuity, const Standard_Integer Degmax, const Standard_Integer Segmax)
Standard_EXPORT Standard_Boolean BuildProduct (const GeomAbs_Shape Continuity, const Standard_Integer Degmax, const Standard_Integer Segmax)
Standard_EXPORT Standard_Boolean BuildKPart ()

Private Attributes

Standard_Real First
Standard_Real Last
Standard_Real SFirst
Standard_Real SLast
Standard_Real Tol3d
Standard_Real BoundTol
Standard_Real Tol2d
Standard_Real TolAngular
Standard_Real SError
Handle_GeomFill_LocationLaw myLoc
Handle_GeomFill_SectionLaw mySec
Handle_Geom_Surface mySurface
Handle_TColGeom2d_HArray1OfCurve myCurve2d
Handle_TColStd_HArray2OfReal CError
Standard_Boolean done
Standard_Boolean myExchUV
Standard_Boolean isUReversed
Standard_Boolean isVReversed
Standard_Boolean myKPart


Constructor & Destructor Documentation

Standard_EXPORT GeomFill_Sweep::GeomFill_Sweep const Handle(GeomFill_LocationLaw)&  Location,
const Standard_Boolean  WithKpart = Standard_True
 


Member Function Documentation

Standard_EXPORT void GeomFill_Sweep::Build const Handle(GeomFill_SectionLaw)&  Section,
const GeomFill_ApproxStyle  Methode = GeomFill_Location,
const GeomAbs_Shape  Continuity = GeomAbs_C2,
const Standard_Integer  Degmax = 10,
const Standard_Integer  Segmax = 30
 

Standard_EXPORT Standard_Boolean GeomFill_Sweep::Build2d const GeomAbs_Shape  Continuity,
const Standard_Integer  Degmax,
const Standard_Integer  Segmax
[private]
 

Standard_EXPORT Standard_Boolean GeomFill_Sweep::BuildAll const GeomAbs_Shape  Continuity,
const Standard_Integer  Degmax,
const Standard_Integer  Segmax
[private]
 

Standard_EXPORT Standard_Boolean GeomFill_Sweep::BuildKPart  )  [private]
 

Standard_EXPORT Standard_Boolean GeomFill_Sweep::BuildProduct const GeomAbs_Shape  Continuity,
const Standard_Integer  Degmax,
const Standard_Integer  Segmax
[private]
 

Standard_EXPORT void GeomFill_Sweep::ErrorOnRestriction const Standard_Boolean  IsFirst,
Standard_Real &  UError,
Standard_Real &  VError
const
 

Standard_EXPORT Standard_Real GeomFill_Sweep::ErrorOnSurface  )  const
 

Standard_EXPORT void GeomFill_Sweep::ErrorOnTrace const Standard_Integer  IndexOfTrace,
Standard_Real &  UError,
Standard_Real &  VError
const
 

Standard_EXPORT Standard_Boolean GeomFill_Sweep::ExchangeUV  )  const
 

Standard_EXPORT Standard_Boolean GeomFill_Sweep::IsDone  )  const
 

Standard_EXPORT Standard_Integer GeomFill_Sweep::NumberOfTrace  )  const
 

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

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

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

Standard_EXPORT Handle_Geom2d_Curve GeomFill_Sweep::Restriction const Standard_Boolean  IsFirst  )  const
 

Standard_EXPORT void GeomFill_Sweep::SetDomain const Standard_Real  First,
const Standard_Real  Last,
const Standard_Real  SectionFirst,
const Standard_Real  SectionLast
 

Standard_EXPORT void GeomFill_Sweep::SetTolerance const Standard_Real  Tol3d,
const Standard_Real  BoundTol = 1.0,
const Standard_Real  Tol2d = 1.0e-5,
const Standard_Real  TolAngular = 1.0
 

Standard_EXPORT Handle_Geom_Surface GeomFill_Sweep::Surface  )  const
 

Standard_EXPORT Handle_Geom2d_Curve GeomFill_Sweep::Trace const Standard_Integer  IndexOfTrace  )  const
 

Standard_EXPORT Standard_Boolean GeomFill_Sweep::UReversed  )  const
 

Standard_EXPORT Standard_Boolean GeomFill_Sweep::VReversed  )  const
 


Field Documentation

Standard_Real GeomFill_Sweep::BoundTol [private]
 

Handle_TColStd_HArray2OfReal GeomFill_Sweep::CError [private]
 

Standard_Boolean GeomFill_Sweep::done [private]
 

Standard_Real GeomFill_Sweep::First [private]
 

Standard_Boolean GeomFill_Sweep::isUReversed [private]
 

Standard_Boolean GeomFill_Sweep::isVReversed [private]
 

Standard_Real GeomFill_Sweep::Last [private]
 

Handle_TColGeom2d_HArray1OfCurve GeomFill_Sweep::myCurve2d [private]
 

Standard_Boolean GeomFill_Sweep::myExchUV [private]
 

Standard_Boolean GeomFill_Sweep::myKPart [private]
 

Handle_GeomFill_LocationLaw GeomFill_Sweep::myLoc [private]
 

Handle_GeomFill_SectionLaw GeomFill_Sweep::mySec [private]
 

Handle_Geom_Surface GeomFill_Sweep::mySurface [private]
 

Standard_Real GeomFill_Sweep::SError [private]
 

Standard_Real GeomFill_Sweep::SFirst [private]
 

Standard_Real GeomFill_Sweep::SLast [private]
 

Standard_Real GeomFill_Sweep::Tol2d [private]
 

Standard_Real GeomFill_Sweep::Tol3d [private]
 

Standard_Real GeomFill_Sweep::TolAngular [private]
 


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