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

ModelingAlgorithms
TKBool
BRepFill


BRepFill_PipeShell Class Reference

Perform general sweeping construction
.

#include <BRepFill_PipeShell.hxx>


Public Member Functions

Standard_EXPORT BRepFill_PipeShell (const TopoDS_Wire &Spine)
 Set an sweep's mode
If no mode are setted, the mode use in MakePipe is used
.
Standard_EXPORT void Set (const Standard_Boolean Frenet=Standard_False)
 Set an Frenet or an CorrectedFrenet trihedron
to perform the sweeping
.
Standard_EXPORT void Set (const gp_Ax2 &Axe)
 Set an fixed trihedron to perform the sweeping
all sections will be parallel.
.
Standard_EXPORT void Set (const gp_Dir &BiNormal)
 Set an fixed BiNormal direction to perform
the sweeping
.
Standard_EXPORT Standard_Boolean Set (const TopoDS_Shape &SpineSupport)
 Set support to the spine to define the BiNormal
at the spine, like the normal the surfaces.
Warning: To be effective, Each edge of the <spine> must
have an representaion on one face of<SpineSupport>
.
Standard_EXPORT void Set (const TopoDS_Wire &AuxiliarySpine, const Standard_Boolean CurvilinearEquivalence=Standard_True, const Standard_Boolean KeepContact=Standard_False)
 Set an auxiliary spine to define the Normal
For each Point of the Spine P, an Point Q is evalued
on <auxiliaryspine>
If <curvilinearequivalence>
Q split <auxiliaryspine> with the same length ratio
than P split <spline>.
Else the plan define by P and the tangent to the <spine>
intersect <auxiliaryspine> in Q.
If <keepcontact> the Normal is defined to assume like the sweeped
section is in contact to the <auxiliaryspine>
Else the Normal is defined by the vector PQ.
//! Give section to sweep.
Possibilities are :
- Give one or sevral profile
- Give one profile and an homotetic law.
- Automatic compute of correspondance beetween profile, and section
on the sweeped shape
- correspondance beetween profile, and section on the sweeped shape
defined by a vertex of the spine
.
Standard_EXPORT void Add (const TopoDS_Shape &Profile, const Standard_Boolean WithContact=Standard_False, const Standard_Boolean WithCorrection=Standard_False)
 Set an section. The corespondance with the spine, will
be automaticaly performed.
.
Standard_EXPORT void Add (const TopoDS_Shape &Profile, const TopoDS_Vertex &Location, const Standard_Boolean WithContact=Standard_False, const Standard_Boolean WithCorrection=Standard_False)
 Set an section. The corespondance with the spine, is
given by <location>
.
Standard_EXPORT void SetLaw (const TopoDS_Shape &Profile, const Handle(Law_Function)&L, const Standard_Boolean WithContact=Standard_False, const Standard_Boolean WithCorrection=Standard_False)
 Set an section and an homotetic law.
The homotetie's centers is given by point on the <spine>.
.
Standard_EXPORT void SetLaw (const TopoDS_Shape &Profile, const Handle(Law_Function)&L, const TopoDS_Vertex &Location, const Standard_Boolean WithContact=Standard_False, const Standard_Boolean WithCorrection=Standard_False)
 Set an section and an homotetic law.
The homotetie center is given by point on the <spine>
.
Standard_EXPORT void Delete (const TopoDS_Shape &Profile)
 Delete an section.
.
Standard_EXPORT Standard_Boolean IsReady () const
 Say if <me> is ready to build the shape
return False if <me> do not have section definition
.
Standard_EXPORT GeomFill_PipeError GetStatus () const
 Get a status, when Simulate or Build failed.
.
Standard_EXPORT void SetTolerance (const Standard_Real Tol3d=1.0e-4, const Standard_Real BoundTol=1.0e-4, const Standard_Real TolAngular=1.0e-2)
Standard_EXPORT void SetTransition (const BRepFill_TransitionStyle Mode=BRepFill_Modified, const Standard_Real Angmin=1.0e-2, const Standard_Real Angmax=6.0)
 Set the Transition Mode to manage discontinuities
on the sweep.
.
Standard_EXPORT void Simulate (const Standard_Integer NumberOfSection, TopTools_ListOfShape &Sections)
 Perform simulation of the sweep :
Somes Section are returned.
.
Standard_EXPORT Standard_Boolean Build ()
 Builds the resulting shape (redefined from MakeShape).
.
Standard_EXPORT Standard_Boolean MakeSolid ()
 Transform the sweeping Shell in Solid.
If the section are not closed returns False
.
Standard_EXPORT const TopoDS_Shape & Shape () const
 Returns the result Shape.
.
Standard_EXPORT const TopoDS_Shape & FirstShape () const
 Returns the TopoDS Shape of the bottom of the sweep.
.
Standard_EXPORT const TopoDS_Shape & LastShape () const
 Returns the TopoDS Shape of the top of the sweep.
.
Standard_EXPORT void Generated (const TopoDS_Shape &S, TopTools_ListOfShape &L)
 Returns the list of shapes generated from the
shape <s>.
.
Standard_EXPORT const Handle (Standard_Type)&DynamicType() const

Private Member Functions

Standard_EXPORT void Prepare ()
Standard_EXPORT void Place (const BRepFill_Section &Sec, TopoDS_Wire &W, Standard_Real &param)
Standard_EXPORT void ResetLoc ()
Standard_EXPORT void BuildHistory (const BRepFill_Sweep &theSweep)

Private Attributes

TopoDS_Wire mySpine
TopoDS_Shape myFirst
TopoDS_Shape myLast
TopoDS_Shape myShape
BRepFill_SequenceOfSection mySeq
TopTools_DataMapOfShapeListOfShape myGenMap
Standard_Real myTol3d
Standard_Real myBoundTol
Standard_Real myTolAngular
Standard_Real angmin
Standard_Real angmax
Handle_Law_Function myLaw
Handle_BRepFill_LocationLaw myLocation
Handle_BRepFill_SectionLaw mySection
Handle_TopTools_HArray2OfShape myFaces
GeomFill_Trihedron myTrihedron
BRepFill_TransitionStyle myTransition
GeomFill_PipeError myStatus


Constructor & Destructor Documentation

Standard_EXPORT BRepFill_PipeShell::BRepFill_PipeShell const TopoDS_Wire &  Spine  ) 
 


Member Function Documentation

Standard_EXPORT void BRepFill_PipeShell::Add const TopoDS_Shape &  Profile,
const TopoDS_Vertex &  Location,
const Standard_Boolean  WithContact = Standard_False,
const Standard_Boolean  WithCorrection = Standard_False
 

Standard_EXPORT void BRepFill_PipeShell::Add const TopoDS_Shape &  Profile,
const Standard_Boolean  WithContact = Standard_False,
const Standard_Boolean  WithCorrection = Standard_False
 

Standard_EXPORT Standard_Boolean BRepFill_PipeShell::Build  ) 
 

Standard_EXPORT void BRepFill_PipeShell::BuildHistory const BRepFill_Sweep theSweep  )  [private]
 

Standard_EXPORT void BRepFill_PipeShell::Delete const TopoDS_Shape &  Profile  ) 
 

Standard_EXPORT const TopoDS_Shape& BRepFill_PipeShell::FirstShape  )  const
 

Standard_EXPORT void BRepFill_PipeShell::Generated const TopoDS_Shape &  S,
TopTools_ListOfShape &  L
 

Standard_EXPORT GeomFill_PipeError BRepFill_PipeShell::GetStatus  )  const
 

Standard_EXPORT const BRepFill_PipeShell::Handle Standard_Type   )  const
 

Standard_EXPORT Standard_Boolean BRepFill_PipeShell::IsReady  )  const
 

Standard_EXPORT const TopoDS_Shape& BRepFill_PipeShell::LastShape  )  const
 

Standard_EXPORT Standard_Boolean BRepFill_PipeShell::MakeSolid  ) 
 

Standard_EXPORT void BRepFill_PipeShell::Place const BRepFill_Section Sec,
TopoDS_Wire &  W,
Standard_Real &  param
[private]
 

Standard_EXPORT void BRepFill_PipeShell::Prepare  )  [private]
 

Standard_EXPORT void BRepFill_PipeShell::ResetLoc  )  [private]
 

Standard_EXPORT void BRepFill_PipeShell::Set const TopoDS_Wire &  AuxiliarySpine,
const Standard_Boolean  CurvilinearEquivalence = Standard_True,
const Standard_Boolean  KeepContact = Standard_False
 

Standard_EXPORT Standard_Boolean BRepFill_PipeShell::Set const TopoDS_Shape &  SpineSupport  ) 
 

Standard_EXPORT void BRepFill_PipeShell::Set const gp_Dir &  BiNormal  ) 
 

Standard_EXPORT void BRepFill_PipeShell::Set const gp_Ax2 &  Axe  ) 
 

Standard_EXPORT void BRepFill_PipeShell::Set const Standard_Boolean  Frenet = Standard_False  ) 
 

Standard_EXPORT void BRepFill_PipeShell::SetLaw const TopoDS_Shape &  Profile,
const Handle(Law_Function)&  L,
const TopoDS_Vertex &  Location,
const Standard_Boolean  WithContact = Standard_False,
const Standard_Boolean  WithCorrection = Standard_False
 

Standard_EXPORT void BRepFill_PipeShell::SetLaw const TopoDS_Shape &  Profile,
const Handle(Law_Function)&  L,
const Standard_Boolean  WithContact = Standard_False,
const Standard_Boolean  WithCorrection = Standard_False
 

Standard_EXPORT void BRepFill_PipeShell::SetTolerance const Standard_Real  Tol3d = 1.0e-4,
const Standard_Real  BoundTol = 1.0e-4,
const Standard_Real  TolAngular = 1.0e-2
 

Standard_EXPORT void BRepFill_PipeShell::SetTransition const BRepFill_TransitionStyle  Mode = BRepFill_Modified,
const Standard_Real  Angmin = 1.0e-2,
const Standard_Real  Angmax = 6.0
 

Standard_EXPORT const TopoDS_Shape& BRepFill_PipeShell::Shape  )  const
 

Standard_EXPORT void BRepFill_PipeShell::Simulate const Standard_Integer  NumberOfSection,
TopTools_ListOfShape &  Sections
 


Field Documentation

Standard_Real BRepFill_PipeShell::angmax [private]
 

Standard_Real BRepFill_PipeShell::angmin [private]
 

Standard_Real BRepFill_PipeShell::myBoundTol [private]
 

Handle_TopTools_HArray2OfShape BRepFill_PipeShell::myFaces [private]
 

TopoDS_Shape BRepFill_PipeShell::myFirst [private]
 

TopTools_DataMapOfShapeListOfShape BRepFill_PipeShell::myGenMap [private]
 

TopoDS_Shape BRepFill_PipeShell::myLast [private]
 

Handle_Law_Function BRepFill_PipeShell::myLaw [private]
 

Handle_BRepFill_LocationLaw BRepFill_PipeShell::myLocation [private]
 

Handle_BRepFill_SectionLaw BRepFill_PipeShell::mySection [private]
 

BRepFill_SequenceOfSection BRepFill_PipeShell::mySeq [private]
 

TopoDS_Shape BRepFill_PipeShell::myShape [private]
 

TopoDS_Wire BRepFill_PipeShell::mySpine [private]
 

GeomFill_PipeError BRepFill_PipeShell::myStatus [private]
 

Standard_Real BRepFill_PipeShell::myTol3d [private]
 

Standard_Real BRepFill_PipeShell::myTolAngular [private]
 

BRepFill_TransitionStyle BRepFill_PipeShell::myTransition [private]
 

GeomFill_Trihedron BRepFill_PipeShell::myTrihedron [private]
 


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