Open CASCADE Technology Reference Manual 8.0.0
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Protected Attributes
BOPAlgo_CheckerSI Class Reference

Checks the shape on self-interference. More...

#include <BOPAlgo_CheckerSI.hxx>

Inheritance diagram for BOPAlgo_CheckerSI:
Inheritance graph
[legend]

Public Member Functions

 BOPAlgo_CheckerSI ()
 
 ~BOPAlgo_CheckerSI () override
 
void Perform (const Message_ProgressRange &theRange=Message_ProgressRange()) override
 The main method to implement the operation Providing the range allows to enable Progress indicator User break functionalities.
 
void SetLevelOfCheck (const int theLevel)
 Sets the level of checking shape on self-interference. It defines which interferences will be checked: 0 - only V/V; 1 - V/V and V/E; 2 - V/V, V/E and E/E; 3 - V/V, V/E, E/E and V/F; 4 - V/V, V/E, E/E, V/F and E/F; 5 - V/V, V/E, E/E, V/F, E/F and F/F; 6 - V/V, V/E, E/E, V/F, E/F, F/F and V/S; 7 - V/V, V/E, E/E, V/F, E/F, F/F, V/S and E/S; 8 - V/V, V/E, E/E, V/F, E/F, F/F, V/S, E/S and F/S; 9 - V/V, V/E, E/E, V/F, E/F, F/F, V/S, E/S, F/S and S/S - all interferences (Default value)
 
- Public Member Functions inherited from BOPAlgo_PaveFiller
 BOPAlgo_PaveFiller ()
 
 ~BOPAlgo_PaveFiller () override
 
 BOPAlgo_PaveFiller (const occ::handle< NCollection_BaseAllocator > &theAllocator)
 
const BOPDS_DSDS ()
 
BOPDS_PDS PDS ()
 
const BOPDS_PIteratorIterator ()
 
void SetArguments (const NCollection_List< TopoDS_Shape > &theLS)
 Sets the arguments for operation.
 
void SetArguments (NCollection_List< TopoDS_Shape > &&theLS)
 Sets the arguments for operation (move semantics)
 
void AddArgument (const TopoDS_Shape &theShape)
 Adds the argument for operation.
 
const NCollection_List< TopoDS_Shape > & Arguments () const
 Returns the list of arguments.
 
const occ::handle< IntTools_Context > & Context ()
 
void SetSectionAttribute (const BOPAlgo_SectionAttribute &theSecAttr)
 
void SetNonDestructive (const bool theFlag)
 Sets the flag that defines the mode of treatment. In non-destructive mode the argument shapes are not modified. Instead a copy of a sub-shape is created in the result if it is needed to be updated.
 
bool NonDestructive () const
 Returns the flag that defines the mode of treatment. In non-destructive mode the argument shapes are not modified. Instead a copy of a sub-shape is created in the result if it is needed to be updated.
 
void Perform (const Message_ProgressRange &theRange=Message_ProgressRange()) override
 The main method to implement the operation Providing the range allows to enable Progress indicator User break functionalities.
 
void SetGlue (const BOPAlgo_GlueEnum theGlue)
 Sets the glue option for the algorithm.
 
BOPAlgo_GlueEnum Glue () const
 Returns the glue option of the algorithm.
 
void SetAvoidBuildPCurve (const bool theValue)
 Sets the flag to avoid building of p-curves of edges on faces.
 
bool IsAvoidBuildPCurve () const
 Returns the flag to avoid building of p-curves of edges on faces.
 
- Public Member Functions inherited from BOPAlgo_Options
 BOPAlgo_Options ()
 Empty constructor.
 
 BOPAlgo_Options (const occ::handle< NCollection_BaseAllocator > &theAllocator)
 Constructor with allocator.
 
virtual ~BOPAlgo_Options ()
 Destructor.
 
const occ::handle< NCollection_BaseAllocator > & Allocator () const
 Returns allocator.
 
void AddError (const occ::handle< Message_Alert > &theAlert)
 Adds the alert as error (fail)
 
void AddWarning (const occ::handle< Message_Alert > &theAlert)
 Adds the alert as warning.
 
bool HasErrors () const
 Returns true if algorithm has failed.
 
bool HasError (const occ::handle< Standard_Type > &theType) const
 Returns true if algorithm has generated error of specified type.
 
bool HasWarnings () const
 Returns true if algorithm has generated some warning alerts.
 
bool HasWarning (const occ::handle< Standard_Type > &theType) const
 Returns true if algorithm has generated warning of specified type.
 
const occ::handle< Message_Report > & GetReport () const
 Returns report collecting all errors and warnings.
 
void DumpErrors (Standard_OStream &theOS) const
 Dumps the error status into the given stream.
 
void DumpWarnings (Standard_OStream &theOS) const
 Dumps the warning statuses into the given stream.
 
void ClearWarnings ()
 Clears the warnings of the algorithm.
 
void SetFuzzyValue (const double theFuzz)
 Sets the additional tolerance.
 
double FuzzyValue () const
 Returns the additional tolerance.
 
void SetUseOBB (const bool theUseOBB)
 Enables/Disables the usage of OBB.
 
bool UseOBB () const
 Returns the flag defining usage of OBB.
 
void SetRunParallel (const bool theFlag)
 Set the flag of parallel processing if <theFlag> is true the parallel processing is switched on if <theFlag> is false the parallel processing is switched off.
 
bool RunParallel () const
 Returns the flag of parallel processing.
 

Protected Member Functions

void Init (const Message_ProgressRange &theRange) override
 
void PostTreat ()
 Treats the intersection results.
 
void CheckFaceSelfIntersection (const Message_ProgressRange &theRange)
 
virtual void PerformVZ (const Message_ProgressRange &theRange)
 Methods for intersection with solids.
 
virtual void PerformEZ (const Message_ProgressRange &theRange)
 Edge/Solid intersection.
 
virtual void PerformFZ (const Message_ProgressRange &theRange)
 Face/Solid intersection.
 
virtual void PerformZZ (const Message_ProgressRange &theRange)
 Solid/Solid intersection.
 
virtual void PerformSZ (const TopAbs_ShapeEnum aTS, const Message_ProgressRange &theRange)
 Used for intersection of edges and faces with solids.
 
- Protected Member Functions inherited from BOPAlgo_PaveFiller
void SetNonDestructive ()
 Sets non-destructive mode automatically if an argument contains a locked sub-shape (see TopoDS_Shape::Locked()).
 
void SetIsPrimary (const bool theFlag)
 
bool IsPrimary () const
 
virtual void PerformInternal (const Message_ProgressRange &theRange)
 
void Clear () override
 Clears all warnings and errors, and any data cached by the algorithm. User defined options are not cleared.
 
void Prepare (const Message_ProgressRange &theRange)
 
virtual void PerformVV (const Message_ProgressRange &theRange)
 
virtual void PerformVE (const Message_ProgressRange &theRange)
 
void IntersectVE (const NCollection_IndexedDataMap< occ::handle< BOPDS_PaveBlock >, NCollection_List< int > > &theVEPairs, const Message_ProgressRange &theRange, const bool bAddInterfs=true)
 Performs the intersection of the vertices with edges.
 
void SplitPaveBlocks (const NCollection_Map< int > &theMEdges, const bool theAddInterfs)
 Splits the Pave Blocks of the given edges with the extra paves. The method also builds the shrunk data for the new pave blocks and in case there is no valid range on the pave block, the vertices of this pave block will be united making SD vertex. Parameter <theAddInterfs> defines whether this interference will be added into common table of interferences or not. If some of the Pave Blocks are forming the Common Blocks, the splits of the Pave Blocks will also form a Common Block.
 
virtual void PerformVF (const Message_ProgressRange &theRange)
 
virtual void PerformEE (const Message_ProgressRange &theRange)
 
virtual void PerformEF (const Message_ProgressRange &theRange)
 
virtual void PerformFF (const Message_ProgressRange &theRange)
 
void TreatVerticesEE ()
 
void MakeSDVerticesFF (const NCollection_DataMap< int, NCollection_List< int > > &aDMVLV, NCollection_DataMap< int, int > &theDMNewSD)
 
void MakeSplitEdges (const Message_ProgressRange &theRange)
 
void MakeBlocks (const Message_ProgressRange &theRange)
 
void MakePCurves (const Message_ProgressRange &theRange)
 
int MakeSDVertices (const NCollection_List< int > &theVertIndices, const bool theAddInterfs=true)
 
void ProcessDE (const Message_ProgressRange &theRange)
 
void FillShrunkData (occ::handle< BOPDS_PaveBlock > &thePB)
 
void FillShrunkData (const TopAbs_ShapeEnum theType1, const TopAbs_ShapeEnum theType2)
 
void AnalyzeShrunkData (const occ::handle< BOPDS_PaveBlock > &thePB, const IntTools_ShrunkRange &theSR)
 Analyzes the results of computation of the valid range for the pave block and in case of error adds the warning status, otherwise saves the valid range in the pave block.
 
void PerformNewVertices (NCollection_IndexedDataMap< TopoDS_Shape, BOPDS_CoupleOfPaveBlocks, TopTools_ShapeMapHasher > &theMVCPB, const occ::handle< NCollection_BaseAllocator > &theAllocator, const Message_ProgressRange &theRange, const bool theIsEEIntersection=true)
 Performs intersection of new vertices, obtained in E/E and E/F intersections.
 
bool CheckFacePaves (const TopoDS_Vertex &theVnew, const NCollection_Map< int > &theMIF)
 
bool IsExistingVertex (const gp_Pnt &theP, const double theTol, const NCollection_Map< int > &theMVOn) const
 
void PutPavesOnCurve (const NCollection_Map< int > &theMVOnIn, const NCollection_Map< int > &theMVCommon, BOPDS_Curve &theNC, const NCollection_Map< int > &theMI, const NCollection_Map< int > &theMVEF, NCollection_DataMap< int, double > &theMVTol, NCollection_DataMap< int, NCollection_List< int > > &theDMVLV)
 Checks and puts paves from <theMVOnIn> on the curve <theNC>. At that, common (from theMVCommon) and not common vertices are processed differently.
 
void FilterPavesOnCurves (const NCollection_DynamicArray< BOPDS_Curve > &theVNC, NCollection_DataMap< int, double > &theMVTol)
 
bool ExtendedTolerance (const int nV, const NCollection_Map< int > &aMI, double &aTolVExt, const int aType=0)
 Depending on the parameter aType it checks whether the vertex nV was created in EE or EF intersections. If so, it increases aTolVExt from tolerance value of vertex to the max distance from vertex nV to the ends of the range of common part. Possible values of aType: 1 - checks only EE; 2 - checks only EF; other - checks both types of intersections.
 
void PutBoundPaveOnCurve (const TopoDS_Face &theF1, const TopoDS_Face &theF2, BOPDS_Curve &theNC, NCollection_List< int > &theLBV)
 
bool IsExistingPaveBlock (const occ::handle< BOPDS_PaveBlock > &thePB, const BOPDS_Curve &theNC, const double theTolR3D, const NCollection_IndexedMap< occ::handle< BOPDS_PaveBlock > > &theMPB, BOPTools_BoxTree &thePBTree, const NCollection_Map< occ::handle< BOPDS_PaveBlock > > &theMPBCommon, occ::handle< BOPDS_PaveBlock > &thePBOut, double &theTolNew)
 Checks if the given pave block (created on section curve) coincides with any of the pave blocks of the faces created the section curve.
 
bool IsExistingPaveBlock (const occ::handle< BOPDS_PaveBlock > &thePB, const BOPDS_Curve &theNC, const NCollection_List< int > &theLSE, int &theNEOut, double &theTolNew)
 Checks if the given pave block (created on section curve) coincides with any of the edges shared between the faces created the section curve.
 
void PostTreatFF (NCollection_IndexedDataMap< TopoDS_Shape, BOPDS_CoupleOfPaveBlocks, TopTools_ShapeMapHasher > &theMSCPB, NCollection_DataMap< occ::handle< BOPDS_PaveBlock >, NCollection_List< occ::handle< BOPDS_PaveBlock > > > &theDMExEdges, NCollection_DataMap< int, int > &theDMNewSD, const NCollection_IndexedMap< occ::handle< BOPDS_PaveBlock > > &theMicroPB, const NCollection_IndexedMap< TopoDS_Shape, TopTools_ShapeMapHasher > &theVertsOnRejectedPB, const occ::handle< NCollection_BaseAllocator > &theAllocator, const Message_ProgressRange &theRange)
 Treatment of section edges.
 
void FindPaveBlocks (const int theV, const int theF, NCollection_List< occ::handle< BOPDS_PaveBlock > > &theLPB)
 
void FillPaves (const int theV, const int theE, const int theF, const NCollection_List< occ::handle< BOPDS_PaveBlock > > &theLPB, const occ::handle< BOPDS_PaveBlock > &thePB)
 
void MakeSplitEdge (const int theV, const int theF)
 
void GetEFPnts (const int nF1, const int nF2, NCollection_List< IntSurf_PntOn2S > &aListOfPnts)
 
void PutEFPavesOnCurve (const NCollection_DynamicArray< BOPDS_Curve > &theVC, const int theIndex, const NCollection_Map< int > &theMI, const NCollection_Map< int > &theMVEF, NCollection_DataMap< int, double > &theMVTol, NCollection_DataMap< int, NCollection_List< int > > &aDMVLV)
 Checks and puts paves created in EF intersections on the curve <theNC>.
 
void PutStickPavesOnCurve (const TopoDS_Face &aF1, const TopoDS_Face &aF2, const NCollection_Map< int > &theMI, const NCollection_DynamicArray< BOPDS_Curve > &theVC, const int theIndex, const NCollection_Map< int > &theMVStick, NCollection_DataMap< int, double > &theMVTol, NCollection_DataMap< int, NCollection_List< int > > &aDMVLV)
 Puts stick paves on the curve <theNC>
 
void GetStickVertices (const int nF1, const int nF2, NCollection_Map< int > &theMVStick, NCollection_Map< int > &theMVEF, NCollection_Map< int > &theMI)
 Collects indices of vertices created in all intersections between two faces (<nF1> and <nF2>) to the map <theMVStick>. Also, it collects indices of EF vertices to the <theMVEF> map and indices of all subshapes of these two faces to the <theMI> map.
 
void GetFullShapeMap (const int nF, NCollection_Map< int > &theMI)
 Collects index nF and indices of all subshapes of the shape with index <nF> to the map <theMI>.
 
void RemoveUsedVertices (const NCollection_DynamicArray< BOPDS_Curve > &theVC, NCollection_Map< int > &theMV)
 Removes indices of vertices that are already on the curve <theNC> from the map <theMV>. It is used in PutEFPavesOnCurve and PutStickPavesOnCurve methods.
 
void PutPaveOnCurve (const int nV, const double theTolR3D, const BOPDS_Curve &theNC, const NCollection_Map< int > &theMI, NCollection_DataMap< int, double > &theMVTol, NCollection_DataMap< int, NCollection_List< int > > &aDMVLV, const int aType=0)
 Puts the pave nV on the curve theNC. Parameter aType defines whether to check the pave with extended tolerance: 0 - do not perform the check; other - perform the check (aType goes to ExtendedTolerance).
 
void ProcessExistingPaveBlocks (const int theInt, const int theCur, const int nF1, const int nF2, const TopoDS_Edge &theES, const NCollection_IndexedMap< occ::handle< BOPDS_PaveBlock > > &theMPBOnIn, BOPTools_BoxTree &thePBTree, NCollection_IndexedDataMap< TopoDS_Shape, BOPDS_CoupleOfPaveBlocks, TopTools_ShapeMapHasher > &theMSCPB, NCollection_DataMap< TopoDS_Shape, int, TopTools_ShapeMapHasher > &theMVI, NCollection_List< occ::handle< BOPDS_PaveBlock > > &theLPBC, BOPAlgo_DataMapOfPaveBlockListOfInteger &thePBFacesMap, NCollection_Map< occ::handle< BOPDS_PaveBlock > > &theMPB)
 Adds the existing edges for intersection with section edges by checking the possible intersection with the faces comparing pre-saved E-F distances with new tolerances.
 
void ProcessExistingPaveBlocks (const int theInt, const int nF1, const int nF2, const NCollection_IndexedMap< occ::handle< BOPDS_PaveBlock > > &theMPBOnIn, BOPTools_BoxTree &thePBTree, const NCollection_DataMap< int, NCollection_List< int > > &theDMBV, NCollection_IndexedDataMap< TopoDS_Shape, BOPDS_CoupleOfPaveBlocks, TopTools_ShapeMapHasher > &theMSCPB, NCollection_DataMap< TopoDS_Shape, int, TopTools_ShapeMapHasher > &theMVI, BOPAlgo_DataMapOfPaveBlockListOfInteger &thePBFacesMap, NCollection_Map< occ::handle< BOPDS_PaveBlock > > &theMPB)
 Adds the existing edges from the map <theMPBOnIn> which interfere with the vertices from <theMVB> map to the post treatment of section edges.
 
void UpdateExistingPaveBlocks (const occ::handle< BOPDS_PaveBlock > &thePB, NCollection_List< occ::handle< BOPDS_PaveBlock > > &theLPB, const BOPAlgo_DataMapOfPaveBlockListOfInteger &thePBFacesMap)
 Replaces existing pave block <thePB> with new pave blocks <theLPB>. The list <theLPB> contains images of <thePB> which were created in the post treatment of section edges. Tries to project the new edges on the faces contained in the <thePBFacesMap>.
 
void TreatNewVertices (const NCollection_IndexedDataMap< TopoDS_Shape, BOPDS_CoupleOfPaveBlocks, TopTools_ShapeMapHasher > &theMVCPB, NCollection_IndexedDataMap< TopoDS_Shape, NCollection_List< TopoDS_Shape >, TopTools_ShapeMapHasher > &theImages)
 Treatment of vertices that were created in EE intersections.
 
void PutClosingPaveOnCurve (BOPDS_Curve &aNC)
 Put paves on the curve <aBC> in case when <aBC> is closed 3D-curve.
 
void PreparePostTreatFF (const int aInt, const int aCur, const occ::handle< BOPDS_PaveBlock > &aPB, NCollection_IndexedDataMap< TopoDS_Shape, BOPDS_CoupleOfPaveBlocks, TopTools_ShapeMapHasher > &aMSCPB, NCollection_DataMap< TopoDS_Shape, int, TopTools_ShapeMapHasher > &aMVI, NCollection_List< occ::handle< BOPDS_PaveBlock > > &aLPB)
 Keeps data for post treatment.
 
void UpdateFaceInfo (NCollection_DataMap< occ::handle< BOPDS_PaveBlock >, NCollection_List< occ::handle< BOPDS_PaveBlock > > > &theDME, const NCollection_DataMap< int, int > &theDMV, const BOPAlgo_DataMapOfPaveBlockListOfInteger &thePBFacesMap)
 Updates the information about faces.
 
bool ForceInterfVE (const int nV, occ::handle< BOPDS_PaveBlock > &aPB, NCollection_Map< int > &theMEdges)
 Updates tolerance of vertex with index <nV> to make it interfere with edge. Returns TRUE if intersection happened.
 
bool ForceInterfVF (const int nV, const int nF)
 Updates tolerance of vertex with index <nV> to make it interfere with face with index <nF>
 
bool CheckPlanes (const int nF1, const int nF2) const
 Checks if there are any common or intersecting sub shapes between two planar faces.
 
int SplitEdge (const int nE, const int nV1, const double aT1, const int nV2, const double aT2)
 Creates new edge from the edge nE with vertices nV1 and nV2 and returns the index of that new edge in the DS.
 
void UpdatePaveBlocks (const NCollection_DataMap< int, int > &aDMNewSD)
 Updates pave blocks which have the paves with indices contained in the map <aDMNewSD>.
 
int UpdateVertex (const int nV, const double aTolNew)
 Updates tolerance vertex nV due to V/E interference. It always creates new vertex if nV is from arguments.
 
void UpdatePaveBlocksWithSDVertices ()
 
void UpdateCommonBlocksWithSDVertices ()
 
void UpdateBlocksWithSharedVertices ()
 
void UpdateInterfsWithSDVertices ()
 
bool EstimatePaveOnCurve (const int nV, const BOPDS_Curve &theNC, const double theTolR3D)
 
void UpdateEdgeTolerance (const int nE, const double aTolNew)
 
void RemovePaveBlocks (const NCollection_Map< int > &theEdges)
 
void CorrectToleranceOfSE ()
 
void ReduceIntersectionRange (const int theV1, const int theV2, const int theE, const int theF, double &theTS1, double &theTS2)
 Reduce the intersection range using the common ranges of Edge/Edge interferences to avoid creation of close intersection vertices.
 
bool GetPBBox (const TopoDS_Edge &theE, const occ::handle< BOPDS_PaveBlock > &thePB, BOPAlgo_DataMapOfPaveBlockBndBox &thePBBox, double &theFirst, double &theLast, double &theSFirst, double &theSLast, Bnd_Box &theBox)
 Gets the bounding box for the given Pave Block. If Pave Block has shrunk data it will be used to get the box, and the Shrunk Range (<theSFirst>, <theSLast>). Otherwise the box will be computed using BndLib_Add3dCurve method, and the Shrunk Range will be equal to the PB's range. To avoid re-computation of the bounding box for the same Pave Block it will be saved in the map <thePBBox>. Returns FALSE in case the PB's range is less than the Precision::PConfusion(), otherwise returns TRUE.
 
void PutSEInOtherFaces (const Message_ProgressRange &theRange)
 Treatment of the possible common zones, not detected by the Face/Face intersection algorithm, by intersection of each section edge with all faces not participated in creation of that section edge. If the intersection says that the section edge is lying on the face it will be added into FaceInfo structure of the face as IN edge and will be used for splitting.
 
void CheckSelfInterference ()
 Analyzes the results of interferences of sub-shapes of the shapes looking for self-interfering entities by the following rules:
 
void AddIntersectionFailedWarning (const TopoDS_Shape &theS1, const TopoDS_Shape &theS2)
 Adds the warning about failed intersection of pair of sub-shapes.
 
void RepeatIntersection (const Message_ProgressRange &theRange)
 Repeat intersection of sub-shapes with increased vertices.
 
void UpdateVerticesOfCB ()
 Updates vertices of CommonBlocks with real tolerance of CB.
 
void ForceInterfEE (const Message_ProgressRange &theRange)
 The method looks for the additional common blocks among pairs of edges with the same bounding vertices.
 
void ForceInterfEF (const Message_ProgressRange &theRange)
 The method looks for the additional edge/face common blocks among pairs of edge/face having the same vertices.
 
void ForceInterfEF (const NCollection_IndexedMap< occ::handle< BOPDS_PaveBlock > > &theMPB, const Message_ProgressRange &theRange, const bool theAddInterf)
 Performs intersection of given pave blocks with all faces from arguments.
 
void RemoveMicroSectionEdges (NCollection_IndexedDataMap< TopoDS_Shape, BOPDS_CoupleOfPaveBlocks, TopTools_ShapeMapHasher > &theMSCPB, NCollection_IndexedMap< occ::handle< BOPDS_PaveBlock > > &theMicroPB)
 When all section edges are created and no increase of the tolerance of vertices put on the section edges is expected, make sure that the created sections have valid range. If any of the section edges do not have valid range, remove them from Face/Face intersection info and from the input <theMSCPB> map. Put such edges into <MicroPB> map for further unification of their vertices in the PostTreatFF method.
 
void RemoveMicroEdges ()
 Check all edges on the micro status and remove the positive ones.
 
void fillPIConstants (const double theWhole, BOPAlgo_PISteps &theSteps) const override
 Analyzing Progress steps Filling steps for constant operations.
 
void fillPISteps (BOPAlgo_PISteps &theSteps) const override
 Filling steps for all other operations.
 
- Protected Member Functions inherited from BOPAlgo_Algo
 BOPAlgo_Algo ()
 Default constructor.
 
 ~BOPAlgo_Algo () override
 
 BOPAlgo_Algo (const occ::handle< NCollection_BaseAllocator > &theAllocator)
 
virtual void CheckData ()
 Checks input data.
 
virtual void CheckResult ()
 Checks the obtained result.
 
void analyzeProgress (const double theWhole, BOPAlgo_PISteps &theSteps) const
 Fills the values for constant operations - the operations having constant relative running time.
 
- Protected Member Functions inherited from BOPAlgo_Options
bool UserBreak (const Message_ProgressScope &thePS)
 Adds error to the report if the break signal was caught. Returns true in this case, false otherwise.
 

Protected Attributes

int myLevelOfCheck
 
- Protected Attributes inherited from BOPAlgo_PaveFiller
NCollection_List< TopoDS_ShapemyArguments
 Fields.
 
BOPDS_PDS myDS
 
BOPDS_PIterator myIterator
 
occ::handle< IntTools_ContextmyContext
 
BOPAlgo_SectionAttribute mySectionAttribute
 
bool myNonDestructive
 
bool myIsPrimary
 
bool myAvoidBuildPCurve
 
BOPAlgo_GlueEnum myGlue
 
BOPAlgo_DataMapOfIntegerMapOfPaveBlock myFPBDone
 Fence map of intersected faces and pave blocks.
 
NCollection_Map< intmyIncreasedSS
 Sub-shapes with increased tolerance during the operation.
 
NCollection_Map< intmyVertsToAvoidExtension
 Vertices located close to E/E or E/F intersection points which has already been extended to cover the real intersection points, and should not be extended any longer to be put on a section curve.
 
NCollection_DataMap< BOPDS_Pair, NCollection_List< EdgeRangeDistance > > myDistances
 Map to store minimal distances between shapes which have no real intersections.
 
- Protected Attributes inherited from BOPAlgo_Options
occ::handle< NCollection_BaseAllocatormyAllocator
 Enables/Disables the usage of OBB.
 
occ::handle< Message_ReportmyReport
 Enables/Disables the usage of OBB.
 
bool myRunParallel
 Enables/Disables the usage of OBB.
 
double myFuzzyValue
 Enables/Disables the usage of OBB.
 
bool myUseOBB
 Enables/Disables the usage of OBB.
 

Additional Inherited Members

- Static Public Member Functions inherited from BOPAlgo_Options
static bool GetParallelMode ()
 Gets the global parallel mode.
 
static void SetParallelMode (const bool theNewMode)
 Sets the global parallel mode.
 
- Protected Types inherited from BOPAlgo_PaveFiller
typedef NCollection_DataMap< occ::handle< BOPDS_PaveBlock >, Bnd_BoxBOPAlgo_DataMapOfPaveBlockBndBox
 
typedef NCollection_DataMap< occ::handle< BOPDS_PaveBlock >, NCollection_List< int > > BOPAlgo_DataMapOfPaveBlockListOfInteger
 
typedef NCollection_DataMap< int, NCollection_Map< occ::handle< BOPDS_PaveBlock > > > BOPAlgo_DataMapOfIntegerMapOfPaveBlock
 
- Static Protected Member Functions inherited from BOPAlgo_PaveFiller
static bool CheckFacePaves (const int theN, const NCollection_Map< int > &theMIFOn, const NCollection_Map< int > &theMIFIn)
 

Detailed Description

Checks the shape on self-interference.

The algorithm can set the following errors:

Constructor & Destructor Documentation

◆ BOPAlgo_CheckerSI()

BOPAlgo_CheckerSI::BOPAlgo_CheckerSI ( )

◆ ~BOPAlgo_CheckerSI()

BOPAlgo_CheckerSI::~BOPAlgo_CheckerSI ( )
override

Member Function Documentation

◆ CheckFaceSelfIntersection()

void BOPAlgo_CheckerSI::CheckFaceSelfIntersection ( const Message_ProgressRange & theRange)
protected

◆ Init()

void BOPAlgo_CheckerSI::Init ( const Message_ProgressRange & theRange)
overrideprotectedvirtual

Reimplemented from BOPAlgo_PaveFiller.

◆ Perform()

void BOPAlgo_CheckerSI::Perform ( const Message_ProgressRange & theRange = Message_ProgressRange())
overridevirtual

The main method to implement the operation Providing the range allows to enable Progress indicator User break functionalities.

Implements BOPAlgo_Algo.

◆ PerformEZ()

virtual void BOPAlgo_CheckerSI::PerformEZ ( const Message_ProgressRange & theRange)
protectedvirtual

Edge/Solid intersection.

◆ PerformFZ()

virtual void BOPAlgo_CheckerSI::PerformFZ ( const Message_ProgressRange & theRange)
protectedvirtual

Face/Solid intersection.

◆ PerformSZ()

virtual void BOPAlgo_CheckerSI::PerformSZ ( const TopAbs_ShapeEnum aTS,
const Message_ProgressRange & theRange )
protectedvirtual

Used for intersection of edges and faces with solids.

◆ PerformVZ()

virtual void BOPAlgo_CheckerSI::PerformVZ ( const Message_ProgressRange & theRange)
protectedvirtual

Methods for intersection with solids.

Vertex/Solid intersection

◆ PerformZZ()

virtual void BOPAlgo_CheckerSI::PerformZZ ( const Message_ProgressRange & theRange)
protectedvirtual

Solid/Solid intersection.

◆ PostTreat()

void BOPAlgo_CheckerSI::PostTreat ( )
protected

Treats the intersection results.

◆ SetLevelOfCheck()

void BOPAlgo_CheckerSI::SetLevelOfCheck ( const int theLevel)

Sets the level of checking shape on self-interference. It defines which interferences will be checked: 0 - only V/V; 1 - V/V and V/E; 2 - V/V, V/E and E/E; 3 - V/V, V/E, E/E and V/F; 4 - V/V, V/E, E/E, V/F and E/F; 5 - V/V, V/E, E/E, V/F, E/F and F/F; 6 - V/V, V/E, E/E, V/F, E/F, F/F and V/S; 7 - V/V, V/E, E/E, V/F, E/F, F/F, V/S and E/S; 8 - V/V, V/E, E/E, V/F, E/F, F/F, V/S, E/S and F/S; 9 - V/V, V/E, E/E, V/F, E/F, F/F, V/S, E/S, F/S and S/S - all interferences (Default value)

Field Documentation

◆ myLevelOfCheck

int BOPAlgo_CheckerSI::myLevelOfCheck
protected

The documentation for this class was generated from the following file: