Version: 8.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
AdvancedEngine_PipeTShapeDriver.cxx File Reference
#include "AdvancedEngine_PipeTShapeDriver.hxx"
#include "AdvancedEngine_IPipeTShape.hxx"
#include "AdvancedEngine_Types.hxx"
#include "AdvancedEngine_IOperations.hxx"
#include "GEOMImpl_Block6Explorer.hxx"
#include "GEOM_Function.hxx"
#include "GEOM_IOperations.hxx"
#include "GEOMUtils.hxx"
#include "GEOMAlgo_FinderShapeOn2.hxx"
#include "GEOMAlgo_ClsfBox.hxx"
#include "GEOMAlgo_ClsfSurf.hxx"
#include "GEOMAlgo_Splitter.hxx"
#include "Geom_CylindricalSurface.hxx"
#include <gp_Pnt.hxx>
#include <gp_Vec.hxx>
#include <gp_Ax2.hxx>
#include <gp_Pln.hxx>
#include <gp_Dir.hxx>
#include <gp_Trsf.hxx>
#include <StdFail_NotDone.hxx>
#include <BRepPrimAPI_MakeCone.hxx>
#include <BRepPrimAPI_MakeCylinder.hxx>
#include <BRepAlgoAPI_Fuse.hxx>
#include <BRepAlgoAPI_Cut.hxx>
#include <BRepPrimAPI_MakeBox.hxx>
#include <BRepBuilderAPI_MakeEdge.hxx>
#include <BRepBuilderAPI_MakeFace.hxx>
#include <BRepBuilderAPI_MakeWire.hxx>
#include <BRepBuilderAPI_Transform.hxx>
#include <BRepFilletAPI_MakeFillet.hxx>
#include <BRepFilletAPI_MakeChamfer.hxx>
#include <BRep_Builder.hxx>
#include <TopoDS_Compound.hxx>
#include <TopExp.hxx>
#include <TopExp_Explorer.hxx>
#include <BRep_Tool.hxx>
#include <BRepTools.hxx>
#include <TopoDS.hxx>
#include <TopTools_IndexedMapOfShape.hxx>
#include <TopTools_ListIteratorOfListOfShape.hxx>
#include <vector>

Macros

#define FIX_CURVES_TOLERANCES
 

Functions

Handle(TColStd_HSequenceOfInteger)
AdvancedEngine_PipeTShapeDriver 
if (!GEOMUtils::CheckTriangulation(aShape))
 Find IDs of sub-shapes complying with given status about surface. More...
 
 Handle (GEOMAlgo_ClsfBox) aClsfBox
 
aClsfBox SetBox (aBox)
 
aFinder SetShape (aShape)
 
aFinder SetTolerance (aTol)
 
aFinder SetClsf (aClsfBox)
 
aFinder SetShapeType ((TopAbs_ShapeEnum) theShapeType)
 
aFinder SetState (theState)
 
aFinder Perform ()
 
 if (iErr)
 
 if (listSS.Extent()< 1)
 
TopTools_ListIteratorOfListOfShape itSub (listSS)
 
 for (int index=1;itSub.More();itSub.Next(),++index)
 
Handle(TColStd_HSequenceOfInteger)
AdvancedEngine_PipeTShapeDriver 
if (!GEOMUtils::CheckTriangulation(theShape))
 Find IDs of sub-shapes complying with given status about surface. More...
 
 Handle (GEOMAlgo_ClsfSurf) aClsfSurf
 
aClsfSurf SetSurface (theSurface)
 
aFinder SetShape (theShape)
 
aFinder SetClsf (aClsfSurf)
 
aFinder SetShapeType (theShapeType)
 
aFinder SetNbPntsMin (3)
 
aFinder SetNbPntsMax (0)
 
 OCCT_IMPLEMENT_STANDARD_RTTIEXT (AdvancedEngine_PipeTShapeDriver, GEOM_BaseDriver)
 

Variables

GEOMAlgo_FinderShapeOn2 aFinder
 
Standard_Real aTol = 0.0001
 
Standard_Integer iErr = aFinder.ErrorStatus()
 
const TopTools_ListOfShape & listSS = aFinder.Shapes()
 
 aSeqOfIDs = new TColStd_HSequenceOfInteger
 
TopTools_IndexedMapOfShape anIndices
 

Macro Definition Documentation

#define FIX_CURVES_TOLERANCES

Function Documentation

for ( int  index = 1; itSub.More(); itSub.Next(),
++  index 
)

References aSeqOfIDs, and itSub().

Handle ( GEOMAlgo_ClsfBox  )
Handle ( GEOMAlgo_ClsfSurf  )
Handle (TColStd_HSequenceOfInteger) AdvancedEngine_PipeTShapeDriver if ( !GEOMUtils::  CheckTriangulationaShape)
Parameters
theBox- the box to check state of sub-shapes against
theShape- the shape to explore
theShapeType- type of sub-shape of theShape
theState- required state
Return values
Handle(TColStd_HSequenceOfInteger)- IDs of found sub-shapes

References aSeqOfIDs.

if ( iErr  )

References aSeqOfIDs.

if ( )

References aSeqOfIDs, and NOT_FOUND_ANY.

Handle (TColStd_HSequenceOfInteger) AdvancedEngine_PipeTShapeDriver if ( !GEOMUtils::  CheckTriangulationtheShape)
Parameters
theSurface- the surface to check state of sub-shapes against
theShape- the shape to explore
theShapeType- type of sub-shape of theShape
theState- required state
Return values
Handle(TColStd_HSequenceOfInteger)- IDs of found sub-shapes

References aSeqOfIDs.

TopTools_ListIteratorOfListOfShape itSub ( listSS  )
OCCT_IMPLEMENT_STANDARD_RTTIEXT ( AdvancedEngine_PipeTShapeDriver  ,
GEOM_BaseDriver   
)
aFinder Perform ( )
aClsfBox SetBox ( aBox  )
aFinder SetClsf ( aClsfBox  )
aFinder SetClsf ( aClsfSurf  )
aFinder SetNbPntsMax ( )
aFinder SetNbPntsMin ( )
aFinder SetShape ( aShape  )
aFinder SetShape ( theShape  )
aFinder SetShapeType ( (TopAbs_ShapeEnum)  theShapeType)
aFinder SetShapeType ( theShapeType  )
aFinder SetState ( theState  )
aClsfSurf SetSurface ( theSurface  )
aFinder SetTolerance ( aTol  )

Variable Documentation

TopTools_IndexedMapOfShape anIndices
return aSeqOfIDs = new TColStd_HSequenceOfInteger
Standard_Real aTol = 0.0001
Standard_Integer iErr = aFinder.ErrorStatus()
const TopTools_ListOfShape & listSS = aFinder.Shapes()