Open CASCADE Technology
6.9.1
|
Geometrical Sweep Algorithm. More...
#include <GeomFill_Sweep.hxx>
Public Member Functions | |
GeomFill_Sweep (const Handle< GeomFill_LocationLaw > &Location, const Standard_Boolean WithKpart=Standard_True) | |
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> More... | |
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. More... | |
void | SetForceApproxC1 (const Standard_Boolean ForceApproxC1) |
Set the flag that indicates attempt to approximate a C1-continuous surface if a swept surface proved to be C0. More... | |
Standard_Boolean | ExchangeUV () const |
returns true if sections are U-Iso This can be produce in some cases when <WithKpart> is True. More... | |
Standard_Boolean | UReversed () const |
returns true if Parametrisation sens in U is inverse of parametrisation sens of section (or of path if ExchangeUV) More... | |
Standard_Boolean | VReversed () const |
returns true if Parametrisation sens in V is inverse of parametrisation sens of path (or of section if ExchangeUV) More... | |
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. More... | |
Standard_Boolean | IsDone () const |
Tells if the Surface is Buildt. More... | |
Standard_Real | ErrorOnSurface () const |
Gets the Approximation error. More... | |
void | ErrorOnRestriction (const Standard_Boolean IsFirst, Standard_Real &UError, Standard_Real &VError) const |
Gets the Approximation error. More... | |
void | ErrorOnTrace (const Standard_Integer IndexOfTrace, Standard_Real &UError, Standard_Real &VError) const |
Gets the Approximation error. More... | |
Handle< Geom_Surface > | Surface () const |
Handle< Geom2d_Curve > | Restriction (const Standard_Boolean IsFirst) const |
Standard_Integer | NumberOfTrace () const |
Handle< Geom2d_Curve > | Trace (const Standard_Integer IndexOfTrace) const |
Geometrical Sweep Algorithm.
GeomFill_Sweep::GeomFill_Sweep | ( | const Handle< GeomFill_LocationLaw > & | Location, |
const Standard_Boolean | WithKpart = Standard_True |
||
) |
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 |
||
) |
Build the Sweeep Surface ApproxStyle defines Approximation Strategy.
raise If Domain are infinite or Profile not Setted.
void GeomFill_Sweep::ErrorOnRestriction | ( | const Standard_Boolean | IsFirst, |
Standard_Real & | UError, | ||
Standard_Real & | VError | ||
) | const |
Gets the Approximation error.
Standard_Real GeomFill_Sweep::ErrorOnSurface | ( | ) | const |
Gets the Approximation error.
void GeomFill_Sweep::ErrorOnTrace | ( | const Standard_Integer | IndexOfTrace, |
Standard_Real & | UError, | ||
Standard_Real & | VError | ||
) | const |
Gets the Approximation error.
Standard_Boolean GeomFill_Sweep::ExchangeUV | ( | ) | const |
returns true if sections are U-Iso This can be produce in some cases when <WithKpart> is True.
Standard_Boolean GeomFill_Sweep::IsDone | ( | ) | const |
Tells if the Surface is Buildt.
Standard_Integer GeomFill_Sweep::NumberOfTrace | ( | ) | const |
Handle< Geom2d_Curve > GeomFill_Sweep::Restriction | ( | const Standard_Boolean | IsFirst | ) | const |
void GeomFill_Sweep::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)
By default w = v, and First and Last are given by First and Last parameter stored in LocationLaw.
void GeomFill_Sweep::SetForceApproxC1 | ( | const Standard_Boolean | ForceApproxC1 | ) |
Set the flag that indicates attempt to approximate a C1-continuous surface if a swept surface proved to be C0.
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 |
||
) |
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.
Handle< Geom_Surface > GeomFill_Sweep::Surface | ( | ) | const |
Handle< Geom2d_Curve > GeomFill_Sweep::Trace | ( | const Standard_Integer | IndexOfTrace | ) | const |
Standard_Boolean GeomFill_Sweep::UReversed | ( | ) | const |
returns true if Parametrisation sens in U is inverse of parametrisation sens of section (or of path if ExchangeUV)
Standard_Boolean GeomFill_Sweep::VReversed | ( | ) | const |
returns true if Parametrisation sens in V is inverse of parametrisation sens of path (or of section if ExchangeUV)