Open CASCADE Technology 6.6.0
Public Member Functions
BRepFill_Sweep Class Reference

Topological Sweep Algorithm

#include <BRepFill_Sweep.hxx>

Public Member Functions

 BRepFill_Sweep (const Handle< BRepFill_SectionLaw > &Section, const Handle< BRepFill_LocationLaw > &Location, const Standard_Boolean WithKPart)
void SetBounds (const TopoDS_Wire &FirstShape, const TopoDS_Wire &LastShape)
void SetTolerance (const Standard_Real Tol3d, const Standard_Real BoundTol=1.0, const Standard_Real Tol2d=1.0e-5, const Standard_Real TolAngular=1.0e-2)
 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 on support surfaces,
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

void SetAngularControl (const Standard_Real AngleMin=0.01, const Standard_Real AngleMax=6.0)
 Tolerance To controle Corner management.

If the discontinuity is lesser than <AngleMin> in radian The
Transition Performed will be alway "Modified"


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.

void Build (const BRepFill_TransitionStyle Transition=BRepFill_Modified, const GeomAbs_Shape Continuity=GeomAbs_C2, const GeomFill_ApproxStyle Approx=GeomFill_Location, const Standard_Integer Degmax=11, const Standard_Integer Segmax=30)
 Build the Sweeep Surface
Transition define Transition strategy
Approx define Approximation Strategy

Standard_Boolean IsDone () const
 Say if the Shape is Build.

TopoDS_Shape Shape () const
 returns the Sweeping Shape

Standard_Real ErrorOnSurface () const
 Get the Approximation error.

Handle_TopTools_HArray2OfShape SubShape () const
Handle_TopTools_HArray2OfShape InterFaces () const
Handle_TopTools_HArray2OfShape Sections () const

Constructor & Destructor Documentation

BRepFill_Sweep::BRepFill_Sweep ( const Handle< BRepFill_SectionLaw > &  Section,
const Handle< BRepFill_LocationLaw > &  Location,
const Standard_Boolean  WithKPart 
)

Member Function Documentation

void BRepFill_Sweep::Build ( const BRepFill_TransitionStyle  Transition = BRepFill_Modified,
const GeomAbs_Shape  Continuity = GeomAbs_C2,
const GeomFill_ApproxStyle  Approx = GeomFill_Location,
const Standard_Integer  Degmax = 11,
const Standard_Integer  Segmax = 30 
)
  • GeomFill_Section : The composed Function Location X Section
    is directly approximed.
  • GeomFill_Location : The location law is approximed, and the
    SweepSurface is bulid 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.
Standard_Real BRepFill_Sweep::ErrorOnSurface ( ) const
Handle_TopTools_HArray2OfShape BRepFill_Sweep::InterFaces ( ) const
Standard_Boolean BRepFill_Sweep::IsDone ( ) const
Handle_TopTools_HArray2OfShape BRepFill_Sweep::Sections ( ) const
void BRepFill_Sweep::SetAngularControl ( const Standard_Real  AngleMin = 0.01,
const Standard_Real  AngleMax = 6.0 
)
void BRepFill_Sweep::SetBounds ( const TopoDS_Wire FirstShape,
const TopoDS_Wire LastShape 
)
void BRepFill_Sweep::SetForceApproxC1 ( const Standard_Boolean  ForceApproxC1)
void BRepFill_Sweep::SetTolerance ( const Standard_Real  Tol3d,
const Standard_Real  BoundTol = 1.0,
const Standard_Real  Tol2d = 1.0e-5,
const Standard_Real  TolAngular = 1.0e-2 
)
TopoDS_Shape BRepFill_Sweep::Shape ( ) const
Handle_TopTools_HArray2OfShape BRepFill_Sweep::SubShape ( ) const

The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines