mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-01-22 18:50:33 +05:00
0021355: [CEA] Problem of partition
Additional modification to the OCCT bug 0022723.
This commit is contained in:
parent
71086b8e0b
commit
76e1dd5e4d
@ -1,4 +1,4 @@
|
|||||||
-- Copyright (C) 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
|
-- Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
|
||||||
--
|
--
|
||||||
-- Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
|
-- Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
|
||||||
-- CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
|
-- CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
|
||||||
@ -497,7 +497,6 @@ is
|
|||||||
aPB2 : PaveBlock from BOPTools)
|
aPB2 : PaveBlock from BOPTools)
|
||||||
returns Boolean from Standard;
|
returns Boolean from Standard;
|
||||||
|
|
||||||
--modified by NIZNHY-PKV Wed Feb 09 10:10:48 2011f
|
|
||||||
FillFaceInfo (me:out)
|
FillFaceInfo (me:out)
|
||||||
is protected;
|
is protected;
|
||||||
|
|
||||||
@ -506,7 +505,12 @@ is
|
|||||||
aMVStick: MapOfInteger from TColStd;
|
aMVStick: MapOfInteger from TColStd;
|
||||||
aTolR3D: out Real from Standard)
|
aTolR3D: out Real from Standard)
|
||||||
is protected;
|
is protected;
|
||||||
--modified by NIZNHY-PKV Wed Feb 09 10:11:52 2011t
|
|
||||||
|
--modified by NIZNHY-PKV Thu Sep 15 08:15:08 2011f
|
||||||
|
PutClosingPaveOnCurve (me:out;
|
||||||
|
aBC :out Curve from BOPTools;
|
||||||
|
aFF :out SSInterference from BOPTools);
|
||||||
|
--modified by NIZNHY-PKV Thu Sep 15 08:15:12 2011t
|
||||||
|
|
||||||
fields
|
fields
|
||||||
myDS : PShapesDataStructure from NMTDS is protected;
|
myDS : PShapesDataStructure from NMTDS is protected;
|
||||||
|
@ -23,6 +23,13 @@
|
|||||||
#ifndef _NMTTools_PaveFiller_HeaderFile
|
#ifndef _NMTTools_PaveFiller_HeaderFile
|
||||||
#define _NMTTools_PaveFiller_HeaderFile
|
#define _NMTTools_PaveFiller_HeaderFile
|
||||||
|
|
||||||
|
#ifndef _Standard_HeaderFile
|
||||||
|
#include <Standard.hxx>
|
||||||
|
#endif
|
||||||
|
#ifndef _Standard_Macro_HeaderFile
|
||||||
|
#include <Standard_Macro.hxx>
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef _NMTDS_PShapesDataStructure_HeaderFile
|
#ifndef _NMTDS_PShapesDataStructure_HeaderFile
|
||||||
#include <NMTDS_PShapesDataStructure.hxx>
|
#include <NMTDS_PShapesDataStructure.hxx>
|
||||||
#endif
|
#endif
|
||||||
@ -99,16 +106,8 @@ class TopTools_DataMapOfShapeShape;
|
|||||||
class TColStd_MapOfInteger;
|
class TColStd_MapOfInteger;
|
||||||
|
|
||||||
|
|
||||||
#ifndef _Standard_HeaderFile
|
|
||||||
#include <Standard.hxx>
|
|
||||||
#endif
|
|
||||||
#ifndef _Standard_Macro_HeaderFile
|
|
||||||
#include <Standard_Macro.hxx>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
class NMTTools_PaveFiller {
|
class NMTTools_PaveFiller {
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
void* operator new(size_t,void* anAddress)
|
void* operator new(size_t,void* anAddress)
|
||||||
@ -123,298 +122,203 @@ public:
|
|||||||
{
|
{
|
||||||
if (anAddress) Standard::Free((Standard_Address&)anAddress);
|
if (anAddress) Standard::Free((Standard_Address&)anAddress);
|
||||||
}
|
}
|
||||||
// Methods PUBLIC
|
|
||||||
//
|
|
||||||
|
|
||||||
|
|
||||||
Standard_EXPORT NMTTools_PaveFiller();
|
Standard_EXPORT NMTTools_PaveFiller();
|
||||||
Standard_EXPORT virtual ~NMTTools_PaveFiller();
|
Standard_EXPORT virtual ~NMTTools_PaveFiller();
|
||||||
|
|
||||||
|
|
||||||
Standard_EXPORT void SetCompositeShape(const TopoDS_Shape& aS) ;
|
Standard_EXPORT void SetCompositeShape(const TopoDS_Shape& aS) ;
|
||||||
|
|
||||||
|
|
||||||
Standard_EXPORT const TopoDS_Shape& CompositeShape() const;
|
Standard_EXPORT const TopoDS_Shape& CompositeShape() const;
|
||||||
|
|
||||||
|
|
||||||
Standard_EXPORT NMTDS_PShapesDataStructure DS() ;
|
Standard_EXPORT NMTDS_PShapesDataStructure DS() ;
|
||||||
|
|
||||||
|
|
||||||
Standard_EXPORT NMTDS_PIterator DSIt() ;
|
Standard_EXPORT NMTDS_PIterator DSIt() ;
|
||||||
|
|
||||||
|
|
||||||
Standard_EXPORT NMTDS_PInterfPool IP() ;
|
Standard_EXPORT NMTDS_PInterfPool IP() ;
|
||||||
|
|
||||||
|
|
||||||
Standard_EXPORT virtual void Perform() ;
|
Standard_EXPORT virtual void Perform() ;
|
||||||
|
|
||||||
|
|
||||||
Standard_EXPORT Standard_Boolean IsDone() const;
|
Standard_EXPORT Standard_Boolean IsDone() const;
|
||||||
|
|
||||||
|
|
||||||
Standard_EXPORT const IntTools_Context& Context() const;
|
Standard_EXPORT const IntTools_Context& Context() const;
|
||||||
|
|
||||||
|
|
||||||
Standard_EXPORT IntTools_Context& ChangeContext() ;
|
Standard_EXPORT IntTools_Context& ChangeContext() ;
|
||||||
|
|
||||||
|
|
||||||
Standard_EXPORT const BOPTools_PavePool& PavePool() const;
|
Standard_EXPORT const BOPTools_PavePool& PavePool() const;
|
||||||
|
|
||||||
|
|
||||||
Standard_EXPORT BOPTools_PavePool& ChangePavePool() ;
|
Standard_EXPORT BOPTools_PavePool& ChangePavePool() ;
|
||||||
|
|
||||||
|
|
||||||
Standard_EXPORT const NMTTools_CommonBlockPool& CommonBlockPool() const;
|
Standard_EXPORT const NMTTools_CommonBlockPool& CommonBlockPool() const;
|
||||||
|
|
||||||
|
|
||||||
Standard_EXPORT NMTTools_CommonBlockPool& ChangeCommonBlockPool() ;
|
Standard_EXPORT NMTTools_CommonBlockPool& ChangeCommonBlockPool() ;
|
||||||
|
|
||||||
|
|
||||||
Standard_EXPORT const BOPTools_SplitShapesPool& SplitShapesPool() const;
|
Standard_EXPORT const BOPTools_SplitShapesPool& SplitShapesPool() const;
|
||||||
|
|
||||||
|
|
||||||
Standard_EXPORT BOPTools_SplitShapesPool& ChangeSplitShapesPool() ;
|
Standard_EXPORT BOPTools_SplitShapesPool& ChangeSplitShapesPool() ;
|
||||||
|
|
||||||
|
|
||||||
Standard_EXPORT Standard_Integer FindSDVertex(const Standard_Integer nV) const;
|
Standard_EXPORT Standard_Integer FindSDVertex(const Standard_Integer nV) const;
|
||||||
|
|
||||||
|
|
||||||
Standard_EXPORT Standard_Integer SplitsInFace(const Standard_Integer aBid,const Standard_Integer nF1,const Standard_Integer nF2,TColStd_ListOfInteger& aLs) ;
|
Standard_EXPORT Standard_Integer SplitsInFace(const Standard_Integer aBid,const Standard_Integer nF1,const Standard_Integer nF2,TColStd_ListOfInteger& aLs) ;
|
||||||
|
|
||||||
|
|
||||||
Standard_EXPORT Standard_Integer SplitsInFace(const Standard_Integer nE1,const Standard_Integer nF2,TColStd_ListOfInteger& aLs) ;
|
Standard_EXPORT Standard_Integer SplitsInFace(const Standard_Integer nE1,const Standard_Integer nF2,TColStd_ListOfInteger& aLs) ;
|
||||||
|
|
||||||
|
|
||||||
Standard_EXPORT Standard_Integer SplitsOnEdge(const Standard_Integer nE1,const Standard_Integer nE2,TColStd_ListOfInteger& aLs) ;
|
Standard_EXPORT Standard_Integer SplitsOnEdge(const Standard_Integer nE1,const Standard_Integer nE2,TColStd_ListOfInteger& aLs) ;
|
||||||
|
|
||||||
|
|
||||||
Standard_EXPORT Standard_Integer SplitsOnFace(const Standard_Integer nE1,const Standard_Integer nF2,TColStd_ListOfInteger& aLs) ;
|
Standard_EXPORT Standard_Integer SplitsOnFace(const Standard_Integer nE1,const Standard_Integer nF2,TColStd_ListOfInteger& aLs) ;
|
||||||
|
|
||||||
|
|
||||||
Standard_EXPORT Standard_Integer SplitsOnFace(const Standard_Integer aBid,const Standard_Integer nF1,const Standard_Integer nF2,TColStd_ListOfInteger& aLs) ;
|
Standard_EXPORT Standard_Integer SplitsOnFace(const Standard_Integer aBid,const Standard_Integer nF1,const Standard_Integer nF2,TColStd_ListOfInteger& aLs) ;
|
||||||
|
|
||||||
|
|
||||||
Standard_EXPORT Standard_Integer SplitsInFace(const Standard_Integer aBid,const Standard_Integer nF1,const Standard_Integer nF2,BOPTools_ListOfPaveBlock& aLs) ;
|
Standard_EXPORT Standard_Integer SplitsInFace(const Standard_Integer aBid,const Standard_Integer nF1,const Standard_Integer nF2,BOPTools_ListOfPaveBlock& aLs) ;
|
||||||
|
|
||||||
|
|
||||||
Standard_EXPORT Standard_Integer SplitsInFace(const Standard_Integer nE1,const Standard_Integer nF2,BOPTools_ListOfPaveBlock& aLs) ;
|
Standard_EXPORT Standard_Integer SplitsInFace(const Standard_Integer nE1,const Standard_Integer nF2,BOPTools_ListOfPaveBlock& aLs) ;
|
||||||
|
|
||||||
|
|
||||||
Standard_EXPORT Standard_Integer SplitsOnEdge(const Standard_Integer nE1,const Standard_Integer nE2,BOPTools_ListOfPaveBlock& aLs) ;
|
Standard_EXPORT Standard_Integer SplitsOnEdge(const Standard_Integer nE1,const Standard_Integer nE2,BOPTools_ListOfPaveBlock& aLs) ;
|
||||||
|
|
||||||
|
|
||||||
Standard_EXPORT Standard_Integer SplitsOnFace(const Standard_Integer nE1,const Standard_Integer nF2,BOPTools_ListOfPaveBlock& aLs) ;
|
Standard_EXPORT Standard_Integer SplitsOnFace(const Standard_Integer nE1,const Standard_Integer nF2,BOPTools_ListOfPaveBlock& aLs) ;
|
||||||
|
|
||||||
|
|
||||||
Standard_EXPORT Standard_Integer SplitsOnFace(const Standard_Integer aBid,const Standard_Integer nF1,const Standard_Integer nF2,BOPTools_ListOfPaveBlock& aLs) ;
|
Standard_EXPORT Standard_Integer SplitsOnFace(const Standard_Integer aBid,const Standard_Integer nF1,const Standard_Integer nF2,BOPTools_ListOfPaveBlock& aLs) ;
|
||||||
|
|
||||||
|
|
||||||
Standard_EXPORT Standard_Integer SplitsFace(const Standard_Integer nF2,BOPTools_ListOfPaveBlock& aLs) ;
|
Standard_EXPORT Standard_Integer SplitsFace(const Standard_Integer nF2,BOPTools_ListOfPaveBlock& aLs) ;
|
||||||
|
|
||||||
|
|
||||||
Standard_EXPORT Standard_Integer SplitsFace(const Standard_Integer nF2,TColStd_ListOfInteger& aLs) ;
|
Standard_EXPORT Standard_Integer SplitsFace(const Standard_Integer nF2,TColStd_ListOfInteger& aLs) ;
|
||||||
|
|
||||||
|
|
||||||
Standard_EXPORT Standard_Integer CommonBlocksFace(const Standard_Integer nF,NMTTools_ListOfCommonBlock& aLCB) ;
|
Standard_EXPORT Standard_Integer CommonBlocksFace(const Standard_Integer nF,NMTTools_ListOfCommonBlock& aLCB) ;
|
||||||
|
|
||||||
|
|
||||||
Standard_EXPORT void PrepareFace(const Standard_Integer nF,TopoDS_Face& aF) ;
|
Standard_EXPORT void PrepareFace(const Standard_Integer nF,TopoDS_Face& aF) ;
|
||||||
|
|
||||||
|
|
||||||
Standard_EXPORT const BOPTools_PaveBlock& RealPaveBlock(const BOPTools_PaveBlock& aPB) ;
|
Standard_EXPORT const BOPTools_PaveBlock& RealPaveBlock(const BOPTools_PaveBlock& aPB) ;
|
||||||
|
|
||||||
|
|
||||||
Standard_EXPORT const BOPTools_PaveBlock& RealPaveBlock(const BOPTools_PaveBlock& aPB,TColStd_ListOfInteger& aLB,Standard_Integer& aIsCommonBlock) ;
|
Standard_EXPORT const BOPTools_PaveBlock& RealPaveBlock(const BOPTools_PaveBlock& aPB,TColStd_ListOfInteger& aLB,Standard_Integer& aIsCommonBlock) ;
|
||||||
|
|
||||||
|
|
||||||
Standard_EXPORT void RealSplitsFace(const Standard_Integer nF2,BOPTools_ListOfPaveBlock& aLs) ;
|
Standard_EXPORT void RealSplitsFace(const Standard_Integer nF2,BOPTools_ListOfPaveBlock& aLs) ;
|
||||||
|
|
||||||
|
|
||||||
Standard_EXPORT Standard_Boolean HasRealSplitsInOnFace(const Standard_Integer nF1,const Standard_Integer nF2) ;
|
Standard_EXPORT Standard_Boolean HasRealSplitsInOnFace(const Standard_Integer nF1,const Standard_Integer nF2) ;
|
||||||
|
|
||||||
|
|
||||||
Standard_EXPORT void RealSplitsInFace(const Standard_Integer aBid,const Standard_Integer nF1,const Standard_Integer nF2,BOPTools_ListOfPaveBlock& aLs) ;
|
Standard_EXPORT void RealSplitsInFace(const Standard_Integer aBid,const Standard_Integer nF1,const Standard_Integer nF2,BOPTools_ListOfPaveBlock& aLs) ;
|
||||||
|
|
||||||
|
|
||||||
Standard_EXPORT void RealSplitsInFace(const Standard_Integer nE1,const Standard_Integer nF2,BOPTools_ListOfPaveBlock& aLs) ;
|
Standard_EXPORT void RealSplitsInFace(const Standard_Integer nE1,const Standard_Integer nF2,BOPTools_ListOfPaveBlock& aLs) ;
|
||||||
|
|
||||||
|
|
||||||
Standard_EXPORT void RealSplitsOnEdge(const Standard_Integer nE1,const Standard_Integer nE2,BOPTools_ListOfPaveBlock& aLs) ;
|
Standard_EXPORT void RealSplitsOnEdge(const Standard_Integer nE1,const Standard_Integer nE2,BOPTools_ListOfPaveBlock& aLs) ;
|
||||||
|
|
||||||
|
|
||||||
Standard_EXPORT void RealSplitsOnFace(const Standard_Integer nE1,const Standard_Integer nF2,BOPTools_ListOfPaveBlock& aLs) ;
|
Standard_EXPORT void RealSplitsOnFace(const Standard_Integer nE1,const Standard_Integer nF2,BOPTools_ListOfPaveBlock& aLs) ;
|
||||||
|
|
||||||
|
|
||||||
Standard_EXPORT void RealSplitsOnFace(const Standard_Integer aBid,const Standard_Integer nF1,const Standard_Integer nF2,BOPTools_ListOfPaveBlock& aLs) ;
|
Standard_EXPORT void RealSplitsOnFace(const Standard_Integer aBid,const Standard_Integer nF1,const Standard_Integer nF2,BOPTools_ListOfPaveBlock& aLs) ;
|
||||||
|
|
||||||
|
|
||||||
Standard_EXPORT void PrepareSetForFace(const Standard_Integer nF1,const Standard_Integer nF2,const BOPTools_ListOfPaveBlock& aLPB,BOPTools_PaveSet& aPSF) ;
|
Standard_EXPORT void PrepareSetForFace(const Standard_Integer nF1,const Standard_Integer nF2,const BOPTools_ListOfPaveBlock& aLPB,BOPTools_PaveSet& aPSF) ;
|
||||||
|
|
||||||
|
|
||||||
Standard_EXPORT void PutPaveOnCurve(const BOPTools_PaveSet& aPSF,const Standard_Real aTol,BOPTools_Curve& aBC) ;
|
Standard_EXPORT void PutPaveOnCurve(const BOPTools_PaveSet& aPSF,const Standard_Real aTol,BOPTools_Curve& aBC) ;
|
||||||
|
|
||||||
|
|
||||||
Standard_EXPORT void PutBoundPaveOnCurve(BOPTools_Curve& aBC,BOPTools_SSInterference& aFF) ;
|
Standard_EXPORT void PutBoundPaveOnCurve(BOPTools_Curve& aBC,BOPTools_SSInterference& aFF) ;
|
||||||
|
|
||||||
|
|
||||||
Standard_EXPORT void PutBoundPaveOnCurve(const gp_Pnt& aP,const Standard_Real aT,BOPTools_Curve& aBC,BOPTools_SSInterference& aFF) ;
|
Standard_EXPORT void PutBoundPaveOnCurve(const gp_Pnt& aP,const Standard_Real aT,BOPTools_Curve& aBC,BOPTools_SSInterference& aFF) ;
|
||||||
|
|
||||||
|
|
||||||
Standard_EXPORT Standard_Boolean FindPave(const gp_Pnt& aP,const Standard_Real aTpV,const BOPTools_PaveSet& aPS,BOPTools_Pave& aPV) ;
|
Standard_EXPORT Standard_Boolean FindPave(const gp_Pnt& aP,const Standard_Real aTpV,const BOPTools_PaveSet& aPS,BOPTools_Pave& aPV) ;
|
||||||
|
|
||||||
|
|
||||||
Standard_EXPORT Standard_Integer CheckIntermediatePoint(const BOPTools_PaveBlock& aPB,const BOPTools_PaveBlock& aPBR,const Standard_Real aTol) ;
|
Standard_EXPORT Standard_Integer CheckIntermediatePoint(const BOPTools_PaveBlock& aPB,const BOPTools_PaveBlock& aPBR,const Standard_Real aTol) ;
|
||||||
|
|
||||||
|
|
||||||
Standard_EXPORT Standard_Boolean IsExistingPaveBlock(const BOPTools_PaveBlock& aPB,const BOPTools_ListOfPaveBlock& aLPB,const Standard_Real aTol) ;
|
Standard_EXPORT Standard_Boolean IsExistingPaveBlock(const BOPTools_PaveBlock& aPB,const BOPTools_ListOfPaveBlock& aLPB,const Standard_Real aTol) ;
|
||||||
|
|
||||||
|
|
||||||
Standard_EXPORT void MakePCurves() ;
|
Standard_EXPORT void MakePCurves() ;
|
||||||
|
|
||||||
|
|
||||||
Standard_EXPORT const NMTTools_IndexedDataMapOfIndexedMapOfInteger& AloneVertices() const;
|
Standard_EXPORT const NMTTools_IndexedDataMapOfIndexedMapOfInteger& AloneVertices() const;
|
||||||
|
|
||||||
|
|
||||||
Standard_EXPORT Standard_Boolean IsExistingPaveBlock(const BOPTools_PaveBlock& aPB,const TopTools_ListOfShape& aLPB,const Standard_Real aTol) ;
|
Standard_EXPORT Standard_Boolean IsExistingPaveBlock(const BOPTools_PaveBlock& aPB,const TopTools_ListOfShape& aLPB,const Standard_Real aTol) ;
|
||||||
|
|
||||||
|
|
||||||
Standard_EXPORT Standard_Boolean CheckCoincidence(const BOPTools_PaveBlock& aPB,const BOPTools_ListOfPaveBlock& aLPB) ;
|
Standard_EXPORT Standard_Boolean CheckCoincidence(const BOPTools_PaveBlock& aPB,const BOPTools_ListOfPaveBlock& aLPB) ;
|
||||||
|
|
||||||
|
|
||||||
Standard_EXPORT Standard_Integer CheckIntermediatePoint(const BOPTools_PaveBlock& aPB,const TopoDS_Edge& aE,const Standard_Real aTol) ;
|
Standard_EXPORT Standard_Integer CheckIntermediatePoint(const BOPTools_PaveBlock& aPB,const TopoDS_Edge& aE,const Standard_Real aTol) ;
|
||||||
|
|
||||||
|
|
||||||
Standard_EXPORT void SharedEdges(const Standard_Integer nF1,const Standard_Integer nF2,TColStd_ListOfInteger& aLNE,TopTools_ListOfShape& aLSE) ;
|
Standard_EXPORT void SharedEdges(const Standard_Integer nF1,const Standard_Integer nF2,TColStd_ListOfInteger& aLNE,TopTools_ListOfShape& aLSE) ;
|
||||||
|
|
||||||
|
|
||||||
Standard_EXPORT void FuseVertices(const TopoDS_Shape& aC,TopTools_DataMapOfShapeShape& aDMVV) const;
|
Standard_EXPORT void FuseVertices(const TopoDS_Shape& aC,TopTools_DataMapOfShapeShape& aDMVV) const;
|
||||||
|
|
||||||
|
|
||||||
Standard_EXPORT void TreatPaveBlocks(NMTTools_ListOfCommonBlock& theLCB) ;
|
Standard_EXPORT void TreatPaveBlocks(NMTTools_ListOfCommonBlock& theLCB) ;
|
||||||
|
|
||||||
|
|
||||||
Standard_EXPORT BOPTools_PavePool& ChangePavePoolNew() ;
|
Standard_EXPORT BOPTools_PavePool& ChangePavePoolNew() ;
|
||||||
|
|
||||||
|
|
||||||
Standard_EXPORT Standard_Boolean CheckCoincidence(const BOPTools_PaveBlock& aPB1,const BOPTools_PaveBlock& aPB2) ;
|
Standard_EXPORT Standard_Boolean CheckCoincidence(const BOPTools_PaveBlock& aPB1,const BOPTools_PaveBlock& aPB2) ;
|
||||||
|
|
||||||
|
Standard_EXPORT void PutClosingPaveOnCurve(BOPTools_Curve& aBC,BOPTools_SSInterference& aFF) ;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
// Methods PROTECTED
|
|
||||||
//
|
|
||||||
|
|
||||||
|
|
||||||
Standard_EXPORT virtual void Init() ;
|
Standard_EXPORT virtual void Init() ;
|
||||||
|
|
||||||
|
|
||||||
Standard_EXPORT virtual void Clear() ;
|
Standard_EXPORT virtual void Clear() ;
|
||||||
|
|
||||||
|
|
||||||
Standard_EXPORT virtual void PerformVV() ;
|
Standard_EXPORT virtual void PerformVV() ;
|
||||||
|
|
||||||
|
|
||||||
Standard_EXPORT virtual void PerformVE() ;
|
Standard_EXPORT virtual void PerformVE() ;
|
||||||
|
|
||||||
|
|
||||||
Standard_EXPORT virtual void PerformVF() ;
|
Standard_EXPORT virtual void PerformVF() ;
|
||||||
|
|
||||||
|
|
||||||
Standard_EXPORT virtual void PerformEE() ;
|
Standard_EXPORT virtual void PerformEE() ;
|
||||||
|
|
||||||
|
|
||||||
Standard_EXPORT virtual void PerformEF() ;
|
Standard_EXPORT virtual void PerformEF() ;
|
||||||
|
|
||||||
|
|
||||||
Standard_EXPORT virtual void PerformFF() ;
|
Standard_EXPORT virtual void PerformFF() ;
|
||||||
|
|
||||||
|
|
||||||
Standard_EXPORT void MakeSplitEdges() ;
|
Standard_EXPORT void MakeSplitEdges() ;
|
||||||
|
|
||||||
|
|
||||||
Standard_EXPORT virtual void PreparePaveBlocks(const TopAbs_ShapeEnum aType1,const TopAbs_ShapeEnum aType2) ;
|
Standard_EXPORT virtual void PreparePaveBlocks(const TopAbs_ShapeEnum aType1,const TopAbs_ShapeEnum aType2) ;
|
||||||
|
|
||||||
|
|
||||||
Standard_EXPORT void CorrectShrunkRanges(const Standard_Integer aSide,const BOPTools_Pave& aPave,IntTools_ShrunkRange& aSR) ;
|
Standard_EXPORT void CorrectShrunkRanges(const Standard_Integer aSide,const BOPTools_Pave& aPave,IntTools_ShrunkRange& aSR) ;
|
||||||
|
|
||||||
|
|
||||||
Standard_EXPORT virtual void PreparePaveBlocks(const Standard_Integer anE) ;
|
Standard_EXPORT virtual void PreparePaveBlocks(const Standard_Integer anE) ;
|
||||||
|
|
||||||
|
|
||||||
Standard_EXPORT virtual void PrepareEdges() ;
|
Standard_EXPORT virtual void PrepareEdges() ;
|
||||||
|
|
||||||
|
|
||||||
Standard_EXPORT Standard_Boolean IsSuccessorsComputed(const Standard_Integer iF1,const Standard_Integer iF2) const;
|
Standard_EXPORT Standard_Boolean IsSuccessorsComputed(const Standard_Integer iF1,const Standard_Integer iF2) const;
|
||||||
|
|
||||||
|
|
||||||
Standard_EXPORT Standard_Boolean IsBlocksCoinside(const BOPTools_PaveBlock& aPB1,const BOPTools_PaveBlock& aPB2) const;
|
Standard_EXPORT Standard_Boolean IsBlocksCoinside(const BOPTools_PaveBlock& aPB1,const BOPTools_PaveBlock& aPB2) const;
|
||||||
|
|
||||||
|
|
||||||
Standard_EXPORT void RefinePavePool() ;
|
Standard_EXPORT void RefinePavePool() ;
|
||||||
|
|
||||||
|
|
||||||
Standard_EXPORT Standard_Integer CheckFacePaves(const TopoDS_Vertex& aV,const Standard_Integer nF) ;
|
Standard_EXPORT Standard_Integer CheckFacePaves(const TopoDS_Vertex& aV,const Standard_Integer nF) ;
|
||||||
|
|
||||||
|
|
||||||
Standard_EXPORT void ReplaceCommonBlocks(const NMTTools_ListOfCommonBlock& aLCB) ;
|
Standard_EXPORT void ReplaceCommonBlocks(const NMTTools_ListOfCommonBlock& aLCB) ;
|
||||||
|
|
||||||
|
|
||||||
Standard_EXPORT void RemoveCommonBlocks(const NMTTools_ListOfCommonBlock& aLCB) ;
|
Standard_EXPORT void RemoveCommonBlocks(const NMTTools_ListOfCommonBlock& aLCB) ;
|
||||||
|
|
||||||
|
|
||||||
Standard_EXPORT void SplitCommonBlocks(const NMTTools_ListOfCommonBlock& aLCB) ;
|
Standard_EXPORT void SplitCommonBlocks(const NMTTools_ListOfCommonBlock& aLCB) ;
|
||||||
|
|
||||||
|
|
||||||
Standard_EXPORT void SplitCommonBlock(const NMTTools_CommonBlock& aCB,NMTTools_ListOfCommonBlock& aLCB) ;
|
Standard_EXPORT void SplitCommonBlock(const NMTTools_CommonBlock& aCB,NMTTools_ListOfCommonBlock& aLCB) ;
|
||||||
|
|
||||||
|
|
||||||
Standard_EXPORT void EECommonBlocks(const BOPTools_IDMapOfPaveBlockIMapOfPaveBlock& aM) ;
|
Standard_EXPORT void EECommonBlocks(const BOPTools_IDMapOfPaveBlockIMapOfPaveBlock& aM) ;
|
||||||
|
|
||||||
|
|
||||||
Standard_EXPORT void EFCommonBlocks(const BOPTools_IDMapOfPaveBlockIMapOfInteger& aMapCB) ;
|
Standard_EXPORT void EFCommonBlocks(const BOPTools_IDMapOfPaveBlockIMapOfInteger& aMapCB) ;
|
||||||
|
|
||||||
|
|
||||||
Standard_EXPORT void EENewVertices(const BooleanOperations_IndexedDataMapOfShapeInteger& aM) ;
|
Standard_EXPORT void EENewVertices(const BooleanOperations_IndexedDataMapOfShapeInteger& aM) ;
|
||||||
|
|
||||||
|
|
||||||
Standard_EXPORT void EENewVertices(const TopoDS_Vertex& aV,const BooleanOperations_IndexedDataMapOfShapeInteger& aM) ;
|
Standard_EXPORT void EENewVertices(const TopoDS_Vertex& aV,const BooleanOperations_IndexedDataMapOfShapeInteger& aM) ;
|
||||||
|
|
||||||
|
|
||||||
Standard_EXPORT void EFNewVertices(const BooleanOperations_IndexedDataMapOfShapeInteger& aM) ;
|
Standard_EXPORT void EFNewVertices(const BooleanOperations_IndexedDataMapOfShapeInteger& aM) ;
|
||||||
|
|
||||||
|
|
||||||
Standard_EXPORT void EFNewVertices(const TopoDS_Vertex& aV,const BooleanOperations_IndexedDataMapOfShapeInteger& aM) ;
|
Standard_EXPORT void EFNewVertices(const TopoDS_Vertex& aV,const BooleanOperations_IndexedDataMapOfShapeInteger& aM) ;
|
||||||
|
|
||||||
|
|
||||||
Standard_EXPORT void UpdateCommonBlocks() ;
|
Standard_EXPORT void UpdateCommonBlocks() ;
|
||||||
|
|
||||||
|
|
||||||
Standard_EXPORT void UpdatePaveBlocks() ;
|
Standard_EXPORT void UpdatePaveBlocks() ;
|
||||||
|
|
||||||
|
|
||||||
Standard_EXPORT Standard_Integer SplitIndex(const BOPTools_PaveBlock& aPB) const;
|
Standard_EXPORT Standard_Integer SplitIndex(const BOPTools_PaveBlock& aPB) const;
|
||||||
|
|
||||||
|
|
||||||
Standard_EXPORT void MakeBlocks() ;
|
Standard_EXPORT void MakeBlocks() ;
|
||||||
|
|
||||||
|
|
||||||
Standard_EXPORT void PerformVF1() ;
|
Standard_EXPORT void PerformVF1() ;
|
||||||
|
|
||||||
|
|
||||||
Standard_EXPORT void MakeAloneVertices() ;
|
Standard_EXPORT void MakeAloneVertices() ;
|
||||||
|
|
||||||
|
|
||||||
Standard_EXPORT void FillFaceInfo() ;
|
Standard_EXPORT void FillFaceInfo() ;
|
||||||
|
|
||||||
|
|
||||||
Standard_EXPORT void CorrectTolR3D(const BOPTools_SSInterference& aFF,const TColStd_MapOfInteger& aMVStick,Standard_Real& aTolR3D) ;
|
Standard_EXPORT void CorrectTolR3D(const BOPTools_SSInterference& aFF,const TColStd_MapOfInteger& aMVStick,Standard_Real& aTolR3D) ;
|
||||||
|
|
||||||
|
|
||||||
// Fields PROTECTED
|
|
||||||
//
|
|
||||||
NMTDS_PShapesDataStructure myDS;
|
NMTDS_PShapesDataStructure myDS;
|
||||||
Standard_Boolean myIsDone;
|
Standard_Boolean myIsDone;
|
||||||
Standard_Integer myNbSources;
|
Standard_Integer myNbSources;
|
||||||
@ -435,12 +339,8 @@ NMTTools_DataMapOfIntegerFaceInfo myFaceInfo;
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
// Methods PRIVATE
|
|
||||||
//
|
|
||||||
|
|
||||||
|
|
||||||
// Fields PRIVATE
|
|
||||||
//
|
|
||||||
|
|
||||||
|
|
||||||
};
|
};
|
||||||
@ -450,7 +350,6 @@ private:
|
|||||||
|
|
||||||
|
|
||||||
// other Inline functions and methods (like "C++: function call" methods)
|
// other Inline functions and methods (like "C++: function call" methods)
|
||||||
//
|
|
||||||
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -25,6 +25,8 @@
|
|||||||
|
|
||||||
#include <NMTTools_PaveFiller.ixx>
|
#include <NMTTools_PaveFiller.ixx>
|
||||||
|
|
||||||
|
#include <Basics_OCCTVersion.hxx>
|
||||||
|
|
||||||
#include <Precision.hxx>
|
#include <Precision.hxx>
|
||||||
|
|
||||||
#include <TColStd_IndexedMapOfInteger.hxx>
|
#include <TColStd_IndexedMapOfInteger.hxx>
|
||||||
@ -122,7 +124,7 @@ static
|
|||||||
myIsDone=Standard_False;
|
myIsDone=Standard_False;
|
||||||
//
|
//
|
||||||
Standard_Boolean bToApproxC3d, bToApproxC2dOnS1, bToApproxC2dOnS2, bIsDone;
|
Standard_Boolean bToApproxC3d, bToApproxC2dOnS1, bToApproxC2dOnS2, bIsDone;
|
||||||
Standard_Boolean bJustAdd;
|
Standard_Boolean bJustAdd, bToSplit;
|
||||||
Standard_Integer n1, n2, anIndexIn, nF1, nF2, aBlockLength, aNbFFs;
|
Standard_Integer n1, n2, anIndexIn, nF1, nF2, aBlockLength, aNbFFs;
|
||||||
Standard_Integer aNbCurves, aNbPoints;
|
Standard_Integer aNbCurves, aNbPoints;
|
||||||
Standard_Real anApproxTol, aTolR3D, aTolR2D;
|
Standard_Real anApproxTol, aTolR3D, aTolR2D;
|
||||||
@ -142,6 +144,10 @@ static
|
|||||||
aFFs.SetBlockLength(aNbFFs);
|
aFFs.SetBlockLength(aNbFFs);
|
||||||
}
|
}
|
||||||
//
|
//
|
||||||
|
//modified by NIZNHY-PKV Thu Sep 15 08:02:52 2011f
|
||||||
|
bToSplit=Standard_False;
|
||||||
|
//modified by NIZNHY-PKV Thu Sep 15 08:02:55 2011t
|
||||||
|
//
|
||||||
for (; myDSIt->More(); myDSIt->Next()) {
|
for (; myDSIt->More(); myDSIt->Next()) {
|
||||||
myDSIt->Current(n1, n2, bJustAdd);
|
myDSIt->Current(n1, n2, bJustAdd);
|
||||||
//
|
//
|
||||||
@ -186,7 +192,13 @@ static
|
|||||||
aTolR3D=1.e-7;
|
aTolR3D=1.e-7;
|
||||||
}
|
}
|
||||||
//
|
//
|
||||||
|
//modified by NIZNHY-PKV Thu Sep 15 08:03:02 2011f
|
||||||
|
#if OCC_VERSION_LARGE > 0x06050100 // For OCCT6.5.2 and higher
|
||||||
|
aFF.PrepareLines3D(bToSplit);
|
||||||
|
#else
|
||||||
aFF.PrepareLines3D();
|
aFF.PrepareLines3D();
|
||||||
|
#endif // OCC_VERSION_LARGE > 0x06050100 // For OCCT6.5.2 and higher
|
||||||
|
//modified by NIZNHY-PKV Thu Sep 15 08:03:04 2011t
|
||||||
//
|
//
|
||||||
const IntTools_SequenceOfCurves& aCvsX=aFF.Lines();
|
const IntTools_SequenceOfCurves& aCvsX=aFF.Lines();
|
||||||
const IntTools_SequenceOfPntOn2Faces& aPntsX=aFF.Points();
|
const IntTools_SequenceOfPntOn2Faces& aPntsX=aFF.Points();
|
||||||
@ -349,6 +361,16 @@ void NMTTools_PaveFiller::MakeBlocks()
|
|||||||
BOPTools_Curve& aBC=aSCvs(j);
|
BOPTools_Curve& aBC=aSCvs(j);
|
||||||
PutBoundPaveOnCurve (aBC, aFFi);
|
PutBoundPaveOnCurve (aBC, aFFi);
|
||||||
}
|
}
|
||||||
|
//modified by NIZNHY-PKV Wed Sep 14 13:12:14 2011f
|
||||||
|
#if OCC_VERSION_LARGE > 0x06050100 // For OCCT6.5.2 and higher
|
||||||
|
//
|
||||||
|
// Put closing pave if needded
|
||||||
|
for (j=1; j<=aNbCurves; ++j) {
|
||||||
|
BOPTools_Curve& aBC=aSCvs(j);
|
||||||
|
PutClosingPaveOnCurve (aBC, aFFi);
|
||||||
|
}
|
||||||
|
#endif // OCC_VERSION_LARGE > 0x06050100 // For OCCT6.5.2 and higher
|
||||||
|
//modified by NIZNHY-PKV Wed Sep 14 13:12:17 2011t
|
||||||
//
|
//
|
||||||
// Pave Blocks on Curves
|
// Pave Blocks on Curves
|
||||||
bHasES=Standard_False;
|
bHasES=Standard_False;
|
||||||
@ -1260,13 +1282,9 @@ void NMTTools_PaveFiller::PutPaveOnCurve(const BOPTools_PaveSet& aPaveSet,
|
|||||||
BOPTools_PaveSet& aPS=aBC.Set();
|
BOPTools_PaveSet& aPS=aBC.Set();
|
||||||
aPS.Append(aPaveNew);
|
aPS.Append(aPaveNew);
|
||||||
//<-B
|
//<-B
|
||||||
//modified by NIZNHY-PKV Thu Apr 22 10:36:45 2010f
|
|
||||||
//BOPTools_Tools::UpdateVertex (aC, aT, aV);
|
|
||||||
//modified by NIZNHY-PKV Thu Apr 22 10:36:48 2010t
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//modified by NIZNHY-PKV Tue Feb 08 12:24:35 2011f
|
|
||||||
//
|
//
|
||||||
//=======================================================================
|
//=======================================================================
|
||||||
//function : FillFaceInfo
|
//function : FillFaceInfo
|
||||||
@ -1518,4 +1536,69 @@ void NMTTools_PaveFiller::CorrectTolR3D(const BOPTools_SSInterference& aFF,
|
|||||||
aTolR3D=aTolR;
|
aTolR3D=aTolR;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//modified by NIZNHY-PKV Tue Feb 08 12:24:56 2011t
|
|
||||||
|
//modified by NIZNHY-PKV Wed Sep 14 13:21:13 2011f
|
||||||
|
#if OCC_VERSION_LARGE > 0x06050100 // For OCCT6.5.2 and higher
|
||||||
|
//=======================================================================
|
||||||
|
// function: PutClosingPaveOnCurve
|
||||||
|
// purpose:
|
||||||
|
//=======================================================================
|
||||||
|
void NMTTools_PaveFiller::PutClosingPaveOnCurve(BOPTools_Curve& aBC,
|
||||||
|
BOPTools_SSInterference& aFFi)
|
||||||
|
{
|
||||||
|
Standard_Boolean bIsClosed, bHasBounds, bAdded;
|
||||||
|
Standard_Integer nVC, j;
|
||||||
|
Standard_Real aT[2], aTolR3D, aTC, dT, aTx;
|
||||||
|
gp_Pnt aP[2] ;
|
||||||
|
BOPTools_Pave aPVx;
|
||||||
|
BOPTools_ListIteratorOfListOfPave aItLP;
|
||||||
|
//
|
||||||
|
const IntTools_Curve& aIC=aBC.Curve();
|
||||||
|
const Handle (Geom_Curve)& aC3D=aIC.Curve();
|
||||||
|
if(aC3D.IsNull()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
//
|
||||||
|
bIsClosed=IntTools_Tools::IsClosed(aC3D);
|
||||||
|
if (!bIsClosed) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
//
|
||||||
|
bHasBounds=aIC.HasBounds ();
|
||||||
|
if (!bHasBounds){
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
//
|
||||||
|
bAdded=Standard_False;
|
||||||
|
dT=Precision::PConfusion();
|
||||||
|
aTolR3D=aFFi.TolR3D();
|
||||||
|
aIC.Bounds (aT[0], aT[1], aP[0], aP[1]);
|
||||||
|
//
|
||||||
|
BOPTools_PaveSet& aFFiPS=aFFi.NewPaveSet();
|
||||||
|
BOPTools_PaveSet& aCPS=aBC.Set();
|
||||||
|
//
|
||||||
|
const BOPTools_ListOfPave& aLP=aCPS.Set();
|
||||||
|
aItLP.Initialize(aLP);
|
||||||
|
for (; aItLP.More() && !bAdded; aItLP.Next()) {
|
||||||
|
const BOPTools_Pave& aPC=aItLP.Value();
|
||||||
|
nVC=aPC.Index();
|
||||||
|
const TopoDS_Vertex aVC=TopoDS::Vertex(myDS->Shape(nVC));
|
||||||
|
aTC=aPC.Param();
|
||||||
|
//
|
||||||
|
for (j=0; j<2; ++j) {
|
||||||
|
if (fabs(aTC-aT[j]) < dT) {
|
||||||
|
aTx=(!j) ? aT[1] : aT[0];
|
||||||
|
aPVx.SetIndex(nVC);
|
||||||
|
aPVx.SetParam(aTx);
|
||||||
|
//
|
||||||
|
aCPS.Append(aPVx);
|
||||||
|
aFFiPS.Append(aPVx);
|
||||||
|
//
|
||||||
|
bAdded=Standard_True;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif // OCC_VERSION_LARGE > 0x06050100 // For OCCT6.5.2 and higher
|
||||||
|
//modified by NIZNHY-PKV Wed Sep 14 13:21:17 2011t
|
||||||
|
Loading…
Reference in New Issue
Block a user