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

ModelingAlgorithms
TKOffset
BiTgte


BiTgte_Blend Class Reference

#include <BiTgte_Blend.hxx>


Public Member Functions

void * operator new (size_t, void *anAddress)
void * operator new (size_t size)
void operator delete (void *anAddress)
Standard_EXPORT BiTgte_Blend ()
Standard_EXPORT BiTgte_Blend (const TopoDS_Shape &S, const Standard_Real Radius, const Standard_Real Tol, const Standard_Boolean NUBS)
 <s>: Shape to be rounded
<radius>: radius of the fillet
<tol>: Tol3d used in approximations
<nubs>: if true, generate only NUBS surfaces,
if false, generate analytical surfaces if possible


Standard_EXPORT void Init (const TopoDS_Shape &S, const Standard_Real Radius, const Standard_Real Tol, const Standard_Boolean NUBS)
Standard_EXPORT void Clear ()
 Clear all the Fields.
.
Standard_EXPORT void SetFaces (const TopoDS_Face &F1, const TopoDS_Face &F2)
 Set two faces of <myshape> on which the Sphere
must roll.
.
Standard_EXPORT void SetEdge (const TopoDS_Edge &Edge)
 Set an edge of <myshape> to be rounded.
.
Standard_EXPORT void SetStoppingFace (const TopoDS_Face &Face)
 Set a face on which the fillet must stop.
.
Standard_EXPORT void Perform (const Standard_Boolean BuildShape=Standard_True)
 Compute the generated surfaces.
If <buildshape> is true, compute the resulting Shape.
If false, only the blending surfaces are computed.
.
Standard_EXPORT Standard_Boolean IsDone () const
Standard_EXPORT const TopoDS_Shape & Shape () const
 returns the result

Standard_EXPORT Standard_Integer NbSurfaces () const
 returns the Number of generated surfaces.

Standard_EXPORT Handle_Geom_Surface Surface (const Standard_Integer Index) const
 returns the surface of range Index

Standard_EXPORT const TopoDS_Face & Face (const Standard_Integer Index) const
 returns the surface of range Index

Standard_EXPORT void CenterLines (TopTools_ListOfShape &LC) const
 set in <lc> all the center lines

Standard_EXPORT Handle_Geom_Surface Surface (const TopoDS_Shape &CenterLine) const
 returns the surface generated by the centerline.
<centerline> may be
- an edge : generate a pipe.
- a vertex : generate a sphere.
Warning: returns a Null Handle if <centerline> generates
no surface.

Standard_EXPORT const TopoDS_Face & Face (const TopoDS_Shape &CenterLine) const
 returns the face generated by the centerline.
<centerline> may be
- an edge : generate a pipe.
- a vertex : generate a sphere.
Warning: returns a Null Shape if <centerline> generates
no surface.

Standard_EXPORT BiTgte_ContactType ContactType (const Standard_Integer Index) const
 returns the type of contact

Standard_EXPORT const TopoDS_Shape & SupportShape1 (const Standard_Integer Index) const
 gives the first support shape relative to
SurfaceFillet(Index);

Standard_EXPORT const TopoDS_Shape & SupportShape2 (const Standard_Integer Index) const
 gives the second support shape relative to
SurfaceFillet(Index);

Standard_EXPORT Handle_Geom_Curve CurveOnShape1 (const Standard_Integer Index) const
 gives the 3d curve of SurfaceFillet(Index)
on SupportShape1(Index)

Standard_EXPORT Handle_Geom_Curve CurveOnShape2 (const Standard_Integer Index) const
 gives the 3d curve of SurfaceFillet(Index)
on SupportShape2(Index)

Standard_EXPORT Handle_Geom2d_Curve PCurveOnFace1 (const Standard_Integer Index) const
 gives the PCurve associated to CurvOnShape1(Index)
on the support face
Warning: returns a Null Handle if SupportShape1 is not a Face

Standard_EXPORT Handle_Geom2d_Curve PCurve1OnFillet (const Standard_Integer Index) const
 gives the PCurve associated to CurveOnShape1(Index)
on the Fillet

Standard_EXPORT Handle_Geom2d_Curve PCurveOnFace2 (const Standard_Integer Index) const
 gives the PCurve associated to CurveOnShape2(Index)
on the support face
Warning: returns a Null Handle if SupportShape2 is not a Face

Standard_EXPORT Handle_Geom2d_Curve PCurve2OnFillet (const Standard_Integer Index) const
 gives the PCurve associated to CurveOnShape2(Index)
on the fillet

Standard_EXPORT Standard_Integer NbBranches ()
Standard_EXPORT void IndicesOfBranche (const Standard_Integer Index, Standard_Integer &From, Standard_Integer &To) const
 Set in <from>,<to> the indices of the faces of
the branche <index>.

i.e: Branche<Index> = Face(From) + Face(From+1) + ..+ Face(To)
.
Standard_EXPORT void ComputeCenters ()
 Computes the center lines
.

Private Member Functions

Standard_EXPORT void ComputeSurfaces ()
 Perform the generated surfaces.
.
Standard_EXPORT void ComputeShape ()
 Build the resulting shape
All the faces must be computed
.
Standard_EXPORT Standard_Boolean Intersect (const TopoDS_Shape &Init, const TopoDS_Face &Face, const BiTgte_DataMapOfShapeBox &MapSBox, const BRepOffset_Offset &OF1, BRepOffset_Inter3d &Inter)
 Computes the intersections with <face> and all the
OffsetFaces stored in <mymapsf>. Returns <true>
if an intersections ends on a boundary of a Face.
.

Private Attributes

Standard_Real myRadius
Standard_Real myTol
Standard_Boolean myNubs
TopoDS_Shape myShape
TopoDS_Shape myResult
Standard_Boolean myBuildShape
TopTools_IndexedDataMapOfShapeListOfShape myAncestors
BRepFill_DataMapOfShapeDataMapOfShapeListOfShape myCreated
TopTools_DataMapOfShapeListOfShape myCutEdges
TopTools_MapOfShape myFaces
TopTools_MapOfShape myEdges
TopTools_MapOfShape myStopFaces
BRepOffset_Analyse myAnalyse
TopTools_IndexedMapOfShape myCenters
BRepOffset_DataMapOfShapeOffset myMapSF
BRepAlgo_Image myInitOffsetFace
BRepAlgo_Image myImage
BRepAlgo_Image myImageOffset
Handle_BRepAlgo_AsDes myAsDes
Standard_Integer myNbBranches
Handle_TColStd_HArray1OfInteger myIndices
Standard_Boolean myDone


Constructor & Destructor Documentation

Standard_EXPORT BiTgte_Blend::BiTgte_Blend  ) 
 

Standard_EXPORT BiTgte_Blend::BiTgte_Blend const TopoDS_Shape &  S,
const Standard_Real  Radius,
const Standard_Real  Tol,
const Standard_Boolean  NUBS
 


Member Function Documentation

Standard_EXPORT void BiTgte_Blend::CenterLines TopTools_ListOfShape &  LC  )  const
 

Standard_EXPORT void BiTgte_Blend::Clear  ) 
 

Standard_EXPORT void BiTgte_Blend::ComputeCenters  ) 
 

Standard_EXPORT void BiTgte_Blend::ComputeShape  )  [private]
 

Standard_EXPORT void BiTgte_Blend::ComputeSurfaces  )  [private]
 

Standard_EXPORT BiTgte_ContactType BiTgte_Blend::ContactType const Standard_Integer  Index  )  const
 

Standard_EXPORT Handle_Geom_Curve BiTgte_Blend::CurveOnShape1 const Standard_Integer  Index  )  const
 

Standard_EXPORT Handle_Geom_Curve BiTgte_Blend::CurveOnShape2 const Standard_Integer  Index  )  const
 

Standard_EXPORT const TopoDS_Face& BiTgte_Blend::Face const TopoDS_Shape &  CenterLine  )  const
 

Standard_EXPORT const TopoDS_Face& BiTgte_Blend::Face const Standard_Integer  Index  )  const
 

Standard_EXPORT void BiTgte_Blend::IndicesOfBranche const Standard_Integer  Index,
Standard_Integer &  From,
Standard_Integer &  To
const
 

Standard_EXPORT void BiTgte_Blend::Init const TopoDS_Shape &  S,
const Standard_Real  Radius,
const Standard_Real  Tol,
const Standard_Boolean  NUBS
 

Standard_EXPORT Standard_Boolean BiTgte_Blend::Intersect const TopoDS_Shape &  Init,
const TopoDS_Face &  Face,
const BiTgte_DataMapOfShapeBox MapSBox,
const BRepOffset_Offset OF1,
BRepOffset_Inter3d Inter
[private]
 

Standard_EXPORT Standard_Boolean BiTgte_Blend::IsDone  )  const
 

Standard_EXPORT Standard_Integer BiTgte_Blend::NbBranches  ) 
 

Standard_EXPORT Standard_Integer BiTgte_Blend::NbSurfaces  )  const
 

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

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

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

Standard_EXPORT Handle_Geom2d_Curve BiTgte_Blend::PCurve1OnFillet const Standard_Integer  Index  )  const
 

Standard_EXPORT Handle_Geom2d_Curve BiTgte_Blend::PCurve2OnFillet const Standard_Integer  Index  )  const
 

Standard_EXPORT Handle_Geom2d_Curve BiTgte_Blend::PCurveOnFace1 const Standard_Integer  Index  )  const
 

Standard_EXPORT Handle_Geom2d_Curve BiTgte_Blend::PCurveOnFace2 const Standard_Integer  Index  )  const
 

Standard_EXPORT void BiTgte_Blend::Perform const Standard_Boolean  BuildShape = Standard_True  ) 
 

Standard_EXPORT void BiTgte_Blend::SetEdge const TopoDS_Edge &  Edge  ) 
 

Standard_EXPORT void BiTgte_Blend::SetFaces const TopoDS_Face &  F1,
const TopoDS_Face &  F2
 

Standard_EXPORT void BiTgte_Blend::SetStoppingFace const TopoDS_Face &  Face  ) 
 

Standard_EXPORT const TopoDS_Shape& BiTgte_Blend::Shape  )  const
 

Standard_EXPORT const TopoDS_Shape& BiTgte_Blend::SupportShape1 const Standard_Integer  Index  )  const
 

Standard_EXPORT const TopoDS_Shape& BiTgte_Blend::SupportShape2 const Standard_Integer  Index  )  const
 

Standard_EXPORT Handle_Geom_Surface BiTgte_Blend::Surface const TopoDS_Shape &  CenterLine  )  const
 

Standard_EXPORT Handle_Geom_Surface BiTgte_Blend::Surface const Standard_Integer  Index  )  const
 


Field Documentation

BRepOffset_Analyse BiTgte_Blend::myAnalyse [private]
 

TopTools_IndexedDataMapOfShapeListOfShape BiTgte_Blend::myAncestors [private]
 

Handle_BRepAlgo_AsDes BiTgte_Blend::myAsDes [private]
 

Standard_Boolean BiTgte_Blend::myBuildShape [private]
 

TopTools_IndexedMapOfShape BiTgte_Blend::myCenters [private]
 

BRepFill_DataMapOfShapeDataMapOfShapeListOfShape BiTgte_Blend::myCreated [private]
 

TopTools_DataMapOfShapeListOfShape BiTgte_Blend::myCutEdges [private]
 

Standard_Boolean BiTgte_Blend::myDone [private]
 

TopTools_MapOfShape BiTgte_Blend::myEdges [private]
 

TopTools_MapOfShape BiTgte_Blend::myFaces [private]
 

BRepAlgo_Image BiTgte_Blend::myImage [private]
 

BRepAlgo_Image BiTgte_Blend::myImageOffset [private]
 

Handle_TColStd_HArray1OfInteger BiTgte_Blend::myIndices [private]
 

BRepAlgo_Image BiTgte_Blend::myInitOffsetFace [private]
 

BRepOffset_DataMapOfShapeOffset BiTgte_Blend::myMapSF [private]
 

Standard_Integer BiTgte_Blend::myNbBranches [private]
 

Standard_Boolean BiTgte_Blend::myNubs [private]
 

Standard_Real BiTgte_Blend::myRadius [private]
 

TopoDS_Shape BiTgte_Blend::myResult [private]
 

TopoDS_Shape BiTgte_Blend::myShape [private]
 

TopTools_MapOfShape BiTgte_Blend::myStopFaces [private]
 

Standard_Real BiTgte_Blend::myTol [private]
 


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