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

Geometrical Sweep Algorithm. More...

#include <GeomFill_Sweep.hxx>

Public Member Functions

 GeomFill_Sweep (const occ::handle< GeomFill_LocationLaw > &Location, const bool WithKpart=true)
 
void SetDomain (const double First, const double Last, const double SectionFirst, const double SectionLast)
 Set parametric information [<First>, <Last>] Sets the parametric bound of the sweeping surface to build. <SectionFirst>, <SectionLast> gives corresponding bounds parameter on the section law of <First> and <Last>
 
void SetTolerance (const double Tol3d, const double BoundTol=1.0, const double Tol2d=1.0e-5, const double TolAngular=1.0)
 Set Approximation Tolerance Tol3d : Tolerance to surface approximation Tol2d : Tolerance used to perform curve approximation Normally 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 between tangents on the section law and tangent of iso-v on approximated surface.
 
void SetForceApproxC1 (const bool ForceApproxC1)
 Set the flag that indicates attempt to approximate a C1-continuous surface if a swept surface proved to be C0.
 
bool ExchangeUV () const
 returns true if sections are U-Iso This can be produce in some cases when <WithKpart> is True.
 
bool UReversed () const
 returns true if Parametrisation sens in U is inverse of parametrisation sens of section (or of path if ExchangeUV)
 
bool VReversed () const
 returns true if Parametrisation sens in V is inverse of parametrisation sens of path (or of section if ExchangeUV)
 
void Build (const occ::handle< GeomFill_SectionLaw > &Section, const GeomFill_ApproxStyle Methode=GeomFill_Location, const GeomAbs_Shape Continuity=GeomAbs_C2, const int Degmax=10, const int Segmax=30)
 Build the Sweeep Surface ApproxStyle defines Approximation Strategy.
 
bool IsDone () const
 Tells if the Surface is Built.
 
double ErrorOnSurface () const
 Gets the Approximation error.
 
void ErrorOnRestriction (const bool IsFirst, double &UError, double &VError) const
 Gets the Approximation error.
 
void ErrorOnTrace (const int IndexOfTrace, double &UError, double &VError) const
 Gets the Approximation error.
 
occ::handle< Geom_SurfaceSurface () const
 
occ::handle< Geom2d_CurveRestriction (const bool IsFirst) const
 
int NumberOfTrace () const
 
occ::handle< Geom2d_CurveTrace (const int IndexOfTrace) const
 

Detailed Description

Geometrical Sweep Algorithm.

Constructor & Destructor Documentation

◆ GeomFill_Sweep()

GeomFill_Sweep::GeomFill_Sweep ( const occ::handle< GeomFill_LocationLaw > & Location,
const bool WithKpart = true )

Member Function Documentation

◆ Build()

void GeomFill_Sweep::Build ( const occ::handle< GeomFill_SectionLaw > & Section,
const GeomFill_ApproxStyle Methode = GeomFill_Location,
const GeomAbs_Shape Continuity = GeomAbs_C2,
const int Degmax = 10,
const int Segmax = 30 )

Build the Sweeep Surface ApproxStyle defines Approximation Strategy.

  • GeomFill_Section : The composed Function : Location X Section is directly approximated.
  • GeomFill_Location : The location law is approximated, and the SweepSurface is build algebric composition of approximated 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 required on the surface Segmax : The maximum number of span in v required on the surface

raise If Domain are infinite or Profile not set.

◆ ErrorOnRestriction()

void GeomFill_Sweep::ErrorOnRestriction ( const bool IsFirst,
double & UError,
double & VError ) const

Gets the Approximation error.

◆ ErrorOnSurface()

double GeomFill_Sweep::ErrorOnSurface ( ) const

Gets the Approximation error.

◆ ErrorOnTrace()

void GeomFill_Sweep::ErrorOnTrace ( const int IndexOfTrace,
double & UError,
double & VError ) const

Gets the Approximation error.

◆ ExchangeUV()

bool GeomFill_Sweep::ExchangeUV ( ) const

returns true if sections are U-Iso This can be produce in some cases when <WithKpart> is True.

◆ IsDone()

bool GeomFill_Sweep::IsDone ( ) const

Tells if the Surface is Built.

◆ NumberOfTrace()

int GeomFill_Sweep::NumberOfTrace ( ) const

◆ Restriction()

occ::handle< Geom2d_Curve > GeomFill_Sweep::Restriction ( const bool IsFirst) const

◆ SetDomain()

void GeomFill_Sweep::SetDomain ( const double First,
const double Last,
const double SectionFirst,
const double SectionLast )

Set parametric information [<First>, <Last>] Sets the parametric bound of the sweeping surface to build. <SectionFirst>, <SectionLast> gives corresponding 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)

By default w = v, and First and Last are given by First and Last parameter stored in LocationLaw.

◆ SetForceApproxC1()

void GeomFill_Sweep::SetForceApproxC1 ( const bool ForceApproxC1)

Set the flag that indicates attempt to approximate a C1-continuous surface if a swept surface proved to be C0.

◆ SetTolerance()

void GeomFill_Sweep::SetTolerance ( const double Tol3d,
const double BoundTol = 1.0,
const double Tol2d = 1.0e-5,
const double TolAngular = 1.0 )

Set Approximation Tolerance Tol3d : Tolerance to surface approximation Tol2d : Tolerance used to perform curve approximation Normally 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 between tangents on the section law and tangent of iso-v on approximated surface.

◆ Surface()

occ::handle< Geom_Surface > GeomFill_Sweep::Surface ( ) const

◆ Trace()

occ::handle< Geom2d_Curve > GeomFill_Sweep::Trace ( const int IndexOfTrace) const

◆ UReversed()

bool GeomFill_Sweep::UReversed ( ) const

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

◆ VReversed()

bool GeomFill_Sweep::VReversed ( ) const

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


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