Salome HOME
projects
/
modules
/
geom.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Mantis issue 0021772: EDF 2336 GEOM: Non valid face created from two circles
[modules/geom.git]
/
src
/
NMTTools
/
NMTTools_PaveFiller.cxx
diff --git
a/src/NMTTools/NMTTools_PaveFiller.cxx
b/src/NMTTools/NMTTools_PaveFiller.cxx
index 8abecf34014c4eb528f4d3cdf532240c68dc8c2d..b98bc4fa6b4fa273d9d1b1006b8e19e7e6682de9 100644
(file)
--- a/
src/NMTTools/NMTTools_PaveFiller.cxx
+++ b/
src/NMTTools/NMTTools_PaveFiller.cxx
@@
-1,4
+1,4
@@
-// Copyright (C) 2007-201
1
CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-201
2
CEA/DEN, EDF R&D, OPEN CASCADE
//
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
//
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
@@
-18,26
+18,25
@@
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
//
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
//
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+//
// File: NMTTools_PaveFiller.cxx
// Created: Fri Dec 5 14:58:54 2003
// Author: Peter KURNEV
// File: NMTTools_PaveFiller.cxx
// Created: Fri Dec 5 14:58:54 2003
// Author: Peter KURNEV
-
-#include <NMTTools_PaveFiller.ixx>
-
-#include <Basics_OCCTVersion.hxx>
-
-#include <NMTTools_DEProcessor.hxx>
-
+// <pkv@irinox>
+//
+#include <NMTTools_PaveFiller.hxx>
+//
+#include <BOPTColStd_Failure.hxx>
+#include <IntTools_Context.hxx>
#include <NMTDS_ShapesDataStructure.hxx>
#include <NMTDS_ShapesDataStructure.hxx>
+#include <NMTTools_DEProcessor.hxx>
#include <NMTDS_Iterator.hxx>
#include <NMTDS_InterfPool.hxx>
#include <NMTDS_Iterator.hxx>
#include <NMTDS_InterfPool.hxx>
-#include <BOPTColStd_Failure.hxx>
-
//=======================================================================
// function: NMTTools_PaveFiller::NMTTools_PaveFiller
//=======================================================================
// function: NMTTools_PaveFiller::NMTTools_PaveFiller
-// purpose:
+// purpose:
//=======================================================================
NMTTools_PaveFiller::NMTTools_PaveFiller()
{
//=======================================================================
NMTTools_PaveFiller::NMTTools_PaveFiller()
{
@@
-50,7
+49,7
@@
}
//=======================================================================
// function: ~
}
//=======================================================================
// function: ~
-// purpose:
+// purpose:
//=======================================================================
NMTTools_PaveFiller::~NMTTools_PaveFiller()
{
//=======================================================================
NMTTools_PaveFiller::~NMTTools_PaveFiller()
{
@@
-58,19
+57,19
@@
}
//=======================================================================
// function: Clear
}
//=======================================================================
// function: Clear
-// purpose:
+// purpose:
//=======================================================================
void NMTTools_PaveFiller::Clear()
{
if (myDSIt) {
delete myDSIt;
//=======================================================================
void NMTTools_PaveFiller::Clear()
{
if (myDSIt) {
delete myDSIt;
- }
+ }
if (myDS) {
delete myDS;
}
myDSIt=NULL;
myDS=NULL;
if (myDS) {
delete myDS;
}
myDSIt=NULL;
myDS=NULL;
-
+
if (myIP) {
delete myIP;
}
if (myIP) {
delete myIP;
}
@@
-78,7
+77,7
@@
}
//=======================================================================
// function: SetCompositeShape
}
//=======================================================================
// function: SetCompositeShape
-// purpose:
+// purpose:
//=======================================================================
void NMTTools_PaveFiller::SetCompositeShape(const TopoDS_Shape& aS)
{
//=======================================================================
void NMTTools_PaveFiller::SetCompositeShape(const TopoDS_Shape& aS)
{
@@
-86,7
+85,7
@@
}
//=======================================================================
// function: CompositeShape
}
//=======================================================================
// function: CompositeShape
-// purpose:
+// purpose:
//=======================================================================
const TopoDS_Shape& NMTTools_PaveFiller::CompositeShape()const
{
//=======================================================================
const TopoDS_Shape& NMTTools_PaveFiller::CompositeShape()const
{
@@
-94,7
+93,7
@@
}
//=======================================================================
// function: DS
}
//=======================================================================
// function: DS
-// purpose:
+// purpose:
//=======================================================================
NMTDS_PShapesDataStructure NMTTools_PaveFiller::DS()
{
//=======================================================================
NMTDS_PShapesDataStructure NMTTools_PaveFiller::DS()
{
@@
-102,7
+101,7
@@
}
//=======================================================================
// function: DSIt
}
//=======================================================================
// function: DSIt
-// purpose:
+// purpose:
//=======================================================================
NMTDS_PIterator NMTTools_PaveFiller::DSIt()
{
//=======================================================================
NMTDS_PIterator NMTTools_PaveFiller::DSIt()
{
@@
-110,7
+109,7
@@
}
//=======================================================================
// function: IP
}
//=======================================================================
// function: IP
-// purpose:
+// purpose:
//=======================================================================
NMTDS_PInterfPool NMTTools_PaveFiller::IP()
{
//=======================================================================
NMTDS_PInterfPool NMTTools_PaveFiller::IP()
{
@@
-118,7
+117,7
@@
}
//=======================================================================
// function:IsDone
}
//=======================================================================
// function:IsDone
-// purpose:
+// purpose:
//=======================================================================
Standard_Boolean NMTTools_PaveFiller::IsDone() const
{
//=======================================================================
Standard_Boolean NMTTools_PaveFiller::IsDone() const
{
@@
-126,31
+125,15
@@
}
//=======================================================================
// function: Context
}
//=======================================================================
// function: Context
-// purpose:
+// purpose:
//=======================================================================
//=======================================================================
-#if OCC_VERSION_LARGE > 0x06050200
-const Handle(IntTools_Context)& NMTTools_PaveFiller::Context() const
-#else
-const IntTools_Context& NMTTools_PaveFiller::Context() const
-#endif
+ const Handle(IntTools_Context)& NMTTools_PaveFiller::Context() const
{
return myContext;
}
{
return myContext;
}
-
-#if OCC_VERSION_LARGE <= 0x06050200
-//=======================================================================
-// function: ChangeContext
-// purpose:
-//=======================================================================
-IntTools_Context& NMTTools_PaveFiller::ChangeContext()
-{
- return myContext;
-}
-#endif
-
//=======================================================================
// function: PavePool
//=======================================================================
// function: PavePool
-// purpose:
+// purpose:
//=======================================================================
const BOPTools_PavePool& NMTTools_PaveFiller::PavePool() const
{
//=======================================================================
const BOPTools_PavePool& NMTTools_PaveFiller::PavePool() const
{
@@
-158,7
+141,7
@@
IntTools_Context& NMTTools_PaveFiller::ChangeContext()
}
//=======================================================================
// function: ChangePavePool
}
//=======================================================================
// function: ChangePavePool
-// purpose:
+// purpose:
//=======================================================================
BOPTools_PavePool& NMTTools_PaveFiller::ChangePavePool()
{
//=======================================================================
BOPTools_PavePool& NMTTools_PaveFiller::ChangePavePool()
{
@@
-166,7
+149,7
@@
IntTools_Context& NMTTools_PaveFiller::ChangeContext()
}
//=======================================================================
// function: ChangePavePoolNew
}
//=======================================================================
// function: ChangePavePoolNew
-// purpose:
+// purpose:
//=======================================================================
BOPTools_PavePool& NMTTools_PaveFiller::ChangePavePoolNew()
{
//=======================================================================
BOPTools_PavePool& NMTTools_PaveFiller::ChangePavePoolNew()
{
@@
-174,7
+157,7
@@
IntTools_Context& NMTTools_PaveFiller::ChangeContext()
}
//=======================================================================
// function: CommonBlockPool
}
//=======================================================================
// function: CommonBlockPool
-// purpose:
+// purpose:
//=======================================================================
const NMTTools_CommonBlockPool& NMTTools_PaveFiller::CommonBlockPool() const
{
//=======================================================================
const NMTTools_CommonBlockPool& NMTTools_PaveFiller::CommonBlockPool() const
{
@@
-182,7
+165,7
@@
IntTools_Context& NMTTools_PaveFiller::ChangeContext()
}
//=======================================================================
// function: ChangeCommonBlockPool
}
//=======================================================================
// function: ChangeCommonBlockPool
-// purpose:
+// purpose:
//=======================================================================
NMTTools_CommonBlockPool& NMTTools_PaveFiller::ChangeCommonBlockPool()
{
//=======================================================================
NMTTools_CommonBlockPool& NMTTools_PaveFiller::ChangeCommonBlockPool()
{
@@
-190,7
+173,7
@@
IntTools_Context& NMTTools_PaveFiller::ChangeContext()
}
//=======================================================================
// function: SplitShapesPool
}
//=======================================================================
// function: SplitShapesPool
-// purpose:
+// purpose:
//=======================================================================
const BOPTools_SplitShapesPool& NMTTools_PaveFiller::SplitShapesPool() const
{
//=======================================================================
const BOPTools_SplitShapesPool& NMTTools_PaveFiller::SplitShapesPool() const
{
@@
-198,7
+181,7
@@
IntTools_Context& NMTTools_PaveFiller::ChangeContext()
}
//=======================================================================
// function: ChangeSplitShapesPool
}
//=======================================================================
// function: ChangeSplitShapesPool
-// purpose:
+// purpose:
//=======================================================================
BOPTools_SplitShapesPool& NMTTools_PaveFiller::ChangeSplitShapesPool()
{
//=======================================================================
BOPTools_SplitShapesPool& NMTTools_PaveFiller::ChangeSplitShapesPool()
{
@@
-206,7
+189,7
@@
IntTools_Context& NMTTools_PaveFiller::ChangeContext()
}
//=======================================================================
// function: Init
}
//=======================================================================
// function: Init
-// purpose:
+// purpose:
//=======================================================================
void NMTTools_PaveFiller::Init()
{
//=======================================================================
void NMTTools_PaveFiller::Init()
{
@@
-231,18
+214,16
@@
IntTools_Context& NMTTools_PaveFiller::ChangeContext()
myDS->NumberOfShapesOfTheTool();
myNbEdges=myDS->NbEdges();
//
myDS->NumberOfShapesOfTheTool();
myNbEdges=myDS->NbEdges();
//
- // 4
.
+ // 4
myIP=new NMTDS_InterfPool;
myIP=new NMTDS_InterfPool;
-#if OCC_VERSION_LARGE > 0x06050200
//
//
- // 5
.
+ // 5
myContext=new IntTools_Context;
myContext=new IntTools_Context;
-#endif
}
//=======================================================================
// function: Perform
}
//=======================================================================
// function: Perform
-// purpose:
+// purpose:
//=======================================================================
void NMTTools_PaveFiller::Perform()
{
//=======================================================================
void NMTTools_PaveFiller::Perform()
{
@@
-258,7
+239,7
@@
IntTools_Context& NMTTools_PaveFiller::ChangeContext()
//
// 2.VE
myPavePool.Resize (myNbEdges);
//
// 2.VE
myPavePool.Resize (myNbEdges);
-
+
PrepareEdges();
PerformVE();
PrepareEdges();
PerformVE();
@@
-292,7
+273,7
@@
IntTools_Context& NMTTools_PaveFiller::ChangeContext()
RefinePavePool();
//
myPavePoolNew.Destroy();
RefinePavePool();
//
myPavePoolNew.Destroy();
-
+
MakeSplitEdges();
UpdateCommonBlocks();
MakeSplitEdges();
UpdateCommonBlocks();
@@
-304,7
+285,7
@@
IntTools_Context& NMTTools_PaveFiller::ChangeContext()
//
MakePCurves();
//
//
MakePCurves();
//
- // 7.Postprocessing
+ // 7.Postprocessing
UpdatePaveBlocks();
//
NMTTools_DEProcessor aDEP(*this);
UpdatePaveBlocks();
//
NMTTools_DEProcessor aDEP(*this);