mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-08-17 00:48:48 +08:00
Coding - Method guard iterative update (#674)
- Standardizes comment formatting by replacing detailed comment blocks with a uniform "//=================================================================================================" separator - Removes redundant "function:" and "purpose:" fields that often contained minimal or no useful information - Maintains code functionality while improving visual consistency across the codebase
This commit is contained in:
@@ -12,10 +12,8 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
//=======================================================================
|
||||
// function : BOPAlgo_MakerVolume
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline BOPAlgo_MakerVolume::BOPAlgo_MakerVolume()
|
||||
: BOPAlgo_Builder(),
|
||||
myIntersect(Standard_True),
|
||||
@@ -23,10 +21,8 @@ inline BOPAlgo_MakerVolume::BOPAlgo_MakerVolume()
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : BOPAlgo_MakerVolume
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline BOPAlgo_MakerVolume::BOPAlgo_MakerVolume(
|
||||
const Handle(NCollection_BaseAllocator)& theAllocator)
|
||||
: BOPAlgo_Builder(theAllocator),
|
||||
@@ -44,10 +40,8 @@ inline BOPAlgo_MakerVolume::~BOPAlgo_MakerVolume()
|
||||
Clear();
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : Clear
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void BOPAlgo_MakerVolume::Clear()
|
||||
{
|
||||
BOPAlgo_Builder::Clear();
|
||||
@@ -58,37 +52,29 @@ inline void BOPAlgo_MakerVolume::Clear()
|
||||
myAvoidInternalShapes = Standard_False;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : SetIntersect
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void BOPAlgo_MakerVolume::SetIntersect(const Standard_Boolean bIntersect)
|
||||
{
|
||||
myIntersect = bIntersect;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : IsIntersect
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Boolean BOPAlgo_MakerVolume::IsIntersect() const
|
||||
{
|
||||
return myIntersect;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : Box
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline const TopoDS_Solid& BOPAlgo_MakerVolume::Box() const
|
||||
{
|
||||
return mySBox;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : Faces
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline const TopTools_ListOfShape& BOPAlgo_MakerVolume::Faces() const
|
||||
{
|
||||
return myFaces;
|
||||
|
||||
@@ -15,16 +15,12 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
//=======================================================================
|
||||
// function :
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline BOPAlgo_WireEdgeSet::BOPAlgo_WireEdgeSet() {}
|
||||
|
||||
//=======================================================================
|
||||
// function :
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline BOPAlgo_WireEdgeSet::BOPAlgo_WireEdgeSet(
|
||||
const Handle(NCollection_BaseAllocator)& theAllocator)
|
||||
: myStartShapes(theAllocator),
|
||||
@@ -38,65 +34,51 @@ inline BOPAlgo_WireEdgeSet::BOPAlgo_WireEdgeSet(
|
||||
//=======================================================================
|
||||
inline BOPAlgo_WireEdgeSet::~BOPAlgo_WireEdgeSet() {}
|
||||
|
||||
//=======================================================================
|
||||
// function : Clear
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void BOPAlgo_WireEdgeSet::Clear()
|
||||
{
|
||||
myStartShapes.Clear();
|
||||
myShapes.Clear();
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : SetFace
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void BOPAlgo_WireEdgeSet::SetFace(const TopoDS_Face& aF)
|
||||
{
|
||||
myFace = aF;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : Face
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline const TopoDS_Face& BOPAlgo_WireEdgeSet::Face() const
|
||||
{
|
||||
return myFace;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : AddStartElement
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void BOPAlgo_WireEdgeSet::AddStartElement(const TopoDS_Shape& aE)
|
||||
{
|
||||
myStartShapes.Append(aE);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : StartElements
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline const TopTools_ListOfShape& BOPAlgo_WireEdgeSet::StartElements() const
|
||||
{
|
||||
return myStartShapes;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : AddShape
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void BOPAlgo_WireEdgeSet::AddShape(const TopoDS_Shape& aW)
|
||||
{
|
||||
myShapes.Append(aW);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : Shapes
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline const TopTools_ListOfShape& BOPAlgo_WireEdgeSet::Shapes() const
|
||||
{
|
||||
return myShapes;
|
||||
|
||||
@@ -17,10 +17,8 @@
|
||||
|
||||
#include <TopoDS_Edge.hxx>
|
||||
|
||||
//=======================================================================
|
||||
// function : BOPAlgo_EdgeInfo
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
class BOPAlgo_EdgeInfo
|
||||
{
|
||||
public:
|
||||
@@ -80,10 +78,8 @@ typedef BOPAlgo_ListOfEdgeInfo::Iterator BOPAlgo_ListIteratorOfListOfEdgeInfo;
|
||||
typedef NCollection_IndexedDataMap<TopoDS_Shape, BOPAlgo_ListOfEdgeInfo, TopTools_ShapeMapHasher>
|
||||
BOPAlgo_IndexedDataMapOfShapeListOfEdgeInfo;
|
||||
|
||||
//=======================================================================
|
||||
// function : MakeWire
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void BOPAlgo_WireSplitter::MakeWire(TopTools_ListOfShape& aLE, TopoDS_Wire& aWire)
|
||||
{
|
||||
BRep_Builder aBB;
|
||||
|
||||
@@ -23,10 +23,9 @@
|
||||
* and some satellite information
|
||||
*
|
||||
*/
|
||||
//=======================================================================
|
||||
// class : BOPDS_CoupleOfPaveBlocks
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
|
||||
//=================================================================================================
|
||||
|
||||
class BOPDS_CoupleOfPaveBlocks
|
||||
{
|
||||
public:
|
||||
|
||||
@@ -14,10 +14,8 @@
|
||||
|
||||
#include <BOPDS_PaveBlock.hxx>
|
||||
|
||||
//=======================================================================
|
||||
// function :
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline BOPDS_Curve::BOPDS_Curve()
|
||||
: myAllocator(NCollection_BaseAllocator::CommonBaseAllocator()),
|
||||
myPaveBlocks(myAllocator),
|
||||
@@ -26,10 +24,8 @@ inline BOPDS_Curve::BOPDS_Curve()
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function :
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline BOPDS_Curve::BOPDS_Curve(const Handle(NCollection_BaseAllocator)& theAllocator)
|
||||
: myAllocator(theAllocator),
|
||||
myPaveBlocks(myAllocator),
|
||||
@@ -38,34 +34,26 @@ inline BOPDS_Curve::BOPDS_Curve(const Handle(NCollection_BaseAllocator)& theAllo
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function :
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline BOPDS_Curve::~BOPDS_Curve() {}
|
||||
|
||||
//=======================================================================
|
||||
// function : SetCurve
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void BOPDS_Curve::SetCurve(const IntTools_Curve& theCurve)
|
||||
{
|
||||
myCurve = theCurve;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : Curve
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline const IntTools_Curve& BOPDS_Curve::Curve() const
|
||||
{
|
||||
return myCurve;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : SetPaveBlocks
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void BOPDS_Curve::SetPaveBlocks(const BOPDS_ListOfPaveBlock& theLPB)
|
||||
{
|
||||
BOPDS_ListIteratorOfListOfPaveBlock aIt;
|
||||
@@ -78,28 +66,22 @@ inline void BOPDS_Curve::SetPaveBlocks(const BOPDS_ListOfPaveBlock& theLPB)
|
||||
}
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : PaveBlocks
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline const BOPDS_ListOfPaveBlock& BOPDS_Curve::PaveBlocks() const
|
||||
{
|
||||
return myPaveBlocks;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : ChangePaveBlocks
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline BOPDS_ListOfPaveBlock& BOPDS_Curve::ChangePaveBlocks()
|
||||
{
|
||||
return myPaveBlocks;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : InitPaveBlock1
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void BOPDS_Curve::InitPaveBlock1()
|
||||
{
|
||||
if (!myPaveBlocks.Extent())
|
||||
@@ -109,65 +91,51 @@ inline void BOPDS_Curve::InitPaveBlock1()
|
||||
}
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : ChangePaveBlock1
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Handle(BOPDS_PaveBlock)& BOPDS_Curve::ChangePaveBlock1()
|
||||
{
|
||||
Handle(BOPDS_PaveBlock)* pPB = (Handle(BOPDS_PaveBlock)*)&myPaveBlocks.First();
|
||||
return *pPB;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : TechnoVertices
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline const TColStd_ListOfInteger& BOPDS_Curve::TechnoVertices() const
|
||||
{
|
||||
return myTechnoVertices;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : ChangeTechnoVertices
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline TColStd_ListOfInteger& BOPDS_Curve::ChangeTechnoVertices()
|
||||
{
|
||||
return myTechnoVertices;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : SetBox
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void BOPDS_Curve::SetBox(const Bnd_Box& theBox)
|
||||
{
|
||||
myBox = theBox;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : Box
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline const Bnd_Box& BOPDS_Curve::Box() const
|
||||
{
|
||||
return myBox;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : ChangeBox
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Bnd_Box& BOPDS_Curve::ChangeBox()
|
||||
{
|
||||
return myBox;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : HasEdge
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Boolean BOPDS_Curve::HasEdge() const
|
||||
{
|
||||
Standard_Boolean bFlag;
|
||||
|
||||
@@ -14,108 +14,83 @@
|
||||
|
||||
#include <BOPDS_Pair.hxx>
|
||||
|
||||
//=======================================================================
|
||||
// function : InterfVV
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline BOPDS_VectorOfInterfVV& BOPDS_DS::InterfVV()
|
||||
{
|
||||
return myInterfVV;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : InterfVE
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline BOPDS_VectorOfInterfVE& BOPDS_DS::InterfVE()
|
||||
{
|
||||
return myInterfVE;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : InterfVF
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline BOPDS_VectorOfInterfVF& BOPDS_DS::InterfVF()
|
||||
{
|
||||
return myInterfVF;
|
||||
} //=======================================================================
|
||||
} //=================================================================================================
|
||||
|
||||
// function : InterfEE
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
inline BOPDS_VectorOfInterfEE& BOPDS_DS::InterfEE()
|
||||
{
|
||||
return myInterfEE;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : InterfEF
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline BOPDS_VectorOfInterfEF& BOPDS_DS::InterfEF()
|
||||
{
|
||||
return myInterfEF;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : InterfFF
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline BOPDS_VectorOfInterfFF& BOPDS_DS::InterfFF()
|
||||
{
|
||||
return myInterfFF;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : InterfVZ
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline BOPDS_VectorOfInterfVZ& BOPDS_DS::InterfVZ()
|
||||
{
|
||||
return myInterfVZ;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : InterfEZ
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline BOPDS_VectorOfInterfEZ& BOPDS_DS::InterfEZ()
|
||||
{
|
||||
return myInterfEZ;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : InterfFZ
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline BOPDS_VectorOfInterfFZ& BOPDS_DS::InterfFZ()
|
||||
{
|
||||
return myInterfFZ;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : InterfZZ
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline BOPDS_VectorOfInterfZZ& BOPDS_DS::InterfZZ()
|
||||
{
|
||||
return myInterfZZ;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : NbInterfTypes
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Integer BOPDS_DS::NbInterfTypes()
|
||||
{
|
||||
return 10;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : AddInterf
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Boolean BOPDS_DS::AddInterf(const Standard_Integer theI1,
|
||||
const Standard_Integer theI2)
|
||||
{
|
||||
@@ -128,19 +103,15 @@ inline Standard_Boolean BOPDS_DS::AddInterf(const Standard_Integer theI1,
|
||||
return Standard_False;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : HasInterf
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Boolean BOPDS_DS::HasInterf(const Standard_Integer theI) const
|
||||
{
|
||||
return myInterfered.Contains(theI);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : HasInterf
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Boolean BOPDS_DS::HasInterf(const Standard_Integer theI1,
|
||||
const Standard_Integer theI2) const
|
||||
{
|
||||
@@ -148,10 +119,8 @@ inline Standard_Boolean BOPDS_DS::HasInterf(const Standard_Integer theI1,
|
||||
return myInterfTB.Contains(aPK);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : Interferences
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline const BOPDS_MapOfPair& BOPDS_DS::Interferences() const
|
||||
{
|
||||
return myInterfTB;
|
||||
|
||||
@@ -15,10 +15,8 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
//=======================================================================
|
||||
// function :
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline BOPDS_FaceInfo::BOPDS_FaceInfo()
|
||||
: myAllocator(NCollection_BaseAllocator::CommonBaseAllocator()),
|
||||
myIndex(-1),
|
||||
@@ -31,10 +29,8 @@ inline BOPDS_FaceInfo::BOPDS_FaceInfo()
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function :
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline BOPDS_FaceInfo::BOPDS_FaceInfo(const Handle(NCollection_BaseAllocator)& theAllocator)
|
||||
: myAllocator(theAllocator),
|
||||
myIndex(-1),
|
||||
@@ -56,10 +52,8 @@ inline BOPDS_FaceInfo::~BOPDS_FaceInfo()
|
||||
Clear();
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : Clear
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void BOPDS_FaceInfo::Clear()
|
||||
{
|
||||
myPaveBlocksIn.Clear();
|
||||
@@ -68,129 +62,101 @@ inline void BOPDS_FaceInfo::Clear()
|
||||
myVerticesOn.Clear();
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : SetIndex
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void BOPDS_FaceInfo::SetIndex(const Standard_Integer theI)
|
||||
{
|
||||
myIndex = theI;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : Index
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Integer BOPDS_FaceInfo::Index() const
|
||||
{
|
||||
return myIndex;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : PaveBlockIn
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline const BOPDS_IndexedMapOfPaveBlock& BOPDS_FaceInfo::PaveBlocksIn() const
|
||||
{
|
||||
return myPaveBlocksIn;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : ChangePaveBlocksIn
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline BOPDS_IndexedMapOfPaveBlock& BOPDS_FaceInfo::ChangePaveBlocksIn()
|
||||
{
|
||||
return myPaveBlocksIn;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : VerticesIn
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline const TColStd_MapOfInteger& BOPDS_FaceInfo::VerticesIn() const
|
||||
{
|
||||
return myVerticesIn;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : ChangeVerticesIn
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline TColStd_MapOfInteger& BOPDS_FaceInfo::ChangeVerticesIn()
|
||||
{
|
||||
return myVerticesIn;
|
||||
}
|
||||
|
||||
// On
|
||||
//=======================================================================
|
||||
// function : PaveBlocksOn
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline const BOPDS_IndexedMapOfPaveBlock& BOPDS_FaceInfo::PaveBlocksOn() const
|
||||
{
|
||||
return myPaveBlocksOn;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : ChangePaveBlocksOn
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline BOPDS_IndexedMapOfPaveBlock& BOPDS_FaceInfo::ChangePaveBlocksOn()
|
||||
{
|
||||
return myPaveBlocksOn;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : VerticesOn
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline const TColStd_MapOfInteger& BOPDS_FaceInfo::VerticesOn() const
|
||||
{
|
||||
return myVerticesOn;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : ChangeVerticesOn
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline TColStd_MapOfInteger& BOPDS_FaceInfo::ChangeVerticesOn()
|
||||
{
|
||||
return myVerticesOn;
|
||||
}
|
||||
|
||||
// Sc
|
||||
//=======================================================================
|
||||
// function : PaveBlocksSc
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline const BOPDS_IndexedMapOfPaveBlock& BOPDS_FaceInfo::PaveBlocksSc() const
|
||||
{
|
||||
return myPaveBlocksSc;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : ChangePaveBlocksSc
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline BOPDS_IndexedMapOfPaveBlock& BOPDS_FaceInfo::ChangePaveBlocksSc()
|
||||
{
|
||||
return myPaveBlocksSc;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : VerticesSc
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline const TColStd_MapOfInteger& BOPDS_FaceInfo::VerticesSc() const
|
||||
{
|
||||
return myVerticesSc;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : ChangeVerticesSc
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline TColStd_MapOfInteger& BOPDS_FaceInfo::ChangeVerticesSc()
|
||||
{
|
||||
return myVerticesSc;
|
||||
|
||||
@@ -12,76 +12,60 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
//=======================================================================
|
||||
// function :
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline BOPDS_IndexRange::BOPDS_IndexRange()
|
||||
: myFirst(0),
|
||||
myLast(0)
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : SetFirst
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void BOPDS_IndexRange::SetFirst(const Standard_Integer aFirst)
|
||||
{
|
||||
myFirst = aFirst;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : First
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Integer BOPDS_IndexRange::First() const
|
||||
{
|
||||
return myFirst;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : SetLast
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void BOPDS_IndexRange::SetLast(const Standard_Integer aLast)
|
||||
{
|
||||
myLast = aLast;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function :Last
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Integer BOPDS_IndexRange::Last() const
|
||||
{
|
||||
return myLast;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : SetIndices
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void BOPDS_IndexRange::SetIndices(const Standard_Integer theI1, const Standard_Integer theI2)
|
||||
{
|
||||
myFirst = theI1;
|
||||
myLast = theI2;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : Indices
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void BOPDS_IndexRange::Indices(Standard_Integer& theI1, Standard_Integer& theI2) const
|
||||
{
|
||||
theI1 = myFirst;
|
||||
theI2 = myLast;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : Contains
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Boolean BOPDS_IndexRange::Contains(const Standard_Integer aIndex) const
|
||||
{
|
||||
return aIndex >= myFirst && aIndex <= myLast;
|
||||
|
||||
@@ -26,10 +26,8 @@
|
||||
* The class BOPDS_Interf is root class
|
||||
*
|
||||
*/
|
||||
//=======================================================================
|
||||
// function : BOPDS_Interf
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
class BOPDS_Interf
|
||||
{
|
||||
public:
|
||||
@@ -203,10 +201,8 @@ protected:
|
||||
* The class BOPDS_InterfVV stores the information about
|
||||
* the interference of the type vertex/vertex.
|
||||
*/
|
||||
//=======================================================================
|
||||
// function : BOPDS_InterfVV
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
class BOPDS_InterfVV : public BOPDS_Interf
|
||||
{
|
||||
public:
|
||||
@@ -243,10 +239,8 @@ public:
|
||||
* The class BOPDS_InterfVE stores the information about
|
||||
* the interference of the type vertex/edge.
|
||||
*/
|
||||
//=======================================================================
|
||||
// function : BOPDS_InterfVE
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
class BOPDS_InterfVE : public BOPDS_Interf
|
||||
{
|
||||
public:
|
||||
@@ -308,10 +302,8 @@ protected:
|
||||
* The class BOPDS_InterfVF stores the information about
|
||||
* the interference of the type vertex/face
|
||||
*/
|
||||
//=======================================================================
|
||||
// function : BOPDS_InterfVF
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
class BOPDS_InterfVF : public BOPDS_Interf
|
||||
{
|
||||
public:
|
||||
@@ -388,10 +380,8 @@ protected:
|
||||
* The class BOPDS_InterfEE stores the information about
|
||||
* the interference of the type edge/edge.
|
||||
*/
|
||||
//=======================================================================
|
||||
// function : BOPDS_InterfEE
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
class BOPDS_InterfEE : public BOPDS_Interf
|
||||
{
|
||||
public:
|
||||
@@ -447,10 +437,8 @@ protected:
|
||||
* The class BOPDS_InterfEF stores the information about
|
||||
* the interference of the type edge/face.
|
||||
*/
|
||||
//=======================================================================
|
||||
// function : BOPDS_InterfEF
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
class BOPDS_InterfEF : public BOPDS_Interf
|
||||
{
|
||||
public:
|
||||
@@ -513,10 +501,8 @@ protected:
|
||||
*/
|
||||
;
|
||||
|
||||
//=======================================================================
|
||||
// function : BOPDS_InterfFF
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
class BOPDS_InterfFF : public BOPDS_Interf
|
||||
{
|
||||
public:
|
||||
@@ -622,10 +608,8 @@ protected:
|
||||
* The class BOPDS_InterfVZ stores the information about
|
||||
* the interference of the type vertex/solid.
|
||||
*/
|
||||
//=======================================================================
|
||||
// function : BOPDS_InterfVZ
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
class BOPDS_InterfVZ : public BOPDS_Interf
|
||||
{
|
||||
public:
|
||||
@@ -655,10 +639,8 @@ public:
|
||||
* The class BOPDS_InterfEZ stores the information about
|
||||
* the interference of the type edge/solid.
|
||||
*/
|
||||
//=======================================================================
|
||||
// function : BOPDS_InterfEZ
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
class BOPDS_InterfEZ : public BOPDS_Interf
|
||||
{
|
||||
public:
|
||||
@@ -688,10 +670,8 @@ public:
|
||||
* The class BOPDS_InterfFZ stores the information about
|
||||
* the interference of the type face/solid.
|
||||
*/
|
||||
//=======================================================================
|
||||
// function : BOPDS_InterfFZ
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
class BOPDS_InterfFZ : public BOPDS_Interf
|
||||
{
|
||||
public:
|
||||
@@ -721,10 +701,8 @@ public:
|
||||
* The class BOPDS_InterfZZ stores the information about
|
||||
* the interference of the type solid/solid.
|
||||
*/
|
||||
//=======================================================================
|
||||
// function : BOPDS_InterfZZ
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
class BOPDS_InterfZZ : public BOPDS_Interf
|
||||
{
|
||||
public:
|
||||
|
||||
@@ -12,75 +12,59 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
//=======================================================================
|
||||
// function :
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline BOPDS_Pave::BOPDS_Pave()
|
||||
{
|
||||
myIndex = -1;
|
||||
myParameter = 99.;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : SetIndex
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void BOPDS_Pave::SetIndex(const Standard_Integer theIndex)
|
||||
{
|
||||
myIndex = theIndex;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : Index
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Integer BOPDS_Pave::Index() const
|
||||
{
|
||||
return myIndex;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : SetParameter
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void BOPDS_Pave::SetParameter(const Standard_Real theParameter)
|
||||
{
|
||||
myParameter = theParameter;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : Parameter
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Real BOPDS_Pave::Parameter() const
|
||||
{
|
||||
return myParameter;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : Contents
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void BOPDS_Pave::Contents(Standard_Integer& theIndex, Standard_Real& theParameter) const
|
||||
{
|
||||
theIndex = myIndex;
|
||||
theParameter = myParameter;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : IsLess
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Boolean BOPDS_Pave::IsLess(const BOPDS_Pave& theOther) const
|
||||
{
|
||||
return myParameter < theOther.myParameter;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : IsEqual
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Boolean BOPDS_Pave::IsEqual(const BOPDS_Pave& theOther) const
|
||||
{
|
||||
Standard_Boolean bFlag;
|
||||
|
||||
@@ -12,10 +12,8 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
//=======================================================================
|
||||
// function :
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline BOPDS_Point::BOPDS_Point()
|
||||
{
|
||||
myPnt.SetCoord(99., 99., 99.);
|
||||
@@ -30,73 +28,57 @@ inline BOPDS_Point::BOPDS_Point()
|
||||
//=======================================================================
|
||||
inline BOPDS_Point::~BOPDS_Point() {}
|
||||
|
||||
//=======================================================================
|
||||
// function : SetIndex
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void BOPDS_Point::SetIndex(const Standard_Integer theIndex)
|
||||
{
|
||||
myIndex = theIndex;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : Index
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Integer BOPDS_Point::Index() const
|
||||
{
|
||||
return myIndex;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : SetPnt
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void BOPDS_Point::SetPnt(const gp_Pnt& thePnt)
|
||||
{
|
||||
myPnt = thePnt;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : Pnt
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline const gp_Pnt& BOPDS_Point::Pnt() const
|
||||
{
|
||||
return myPnt;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : SetPnt2D1
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void BOPDS_Point::SetPnt2D1(const gp_Pnt2d& thePnt)
|
||||
{
|
||||
myPnt2D1 = thePnt;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : Pnt2D1
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline const gp_Pnt2d& BOPDS_Point::Pnt2D1() const
|
||||
{
|
||||
return myPnt2D1;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : SetPnt2D2
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void BOPDS_Point::SetPnt2D2(const gp_Pnt2d& thePnt)
|
||||
{
|
||||
myPnt2D2 = thePnt;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : Pnt2D2
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline const gp_Pnt2d& BOPDS_Point::Pnt2D2() const
|
||||
{
|
||||
return myPnt2D2;
|
||||
|
||||
@@ -14,10 +14,8 @@
|
||||
|
||||
#include <BOPDS_Tools.hxx>
|
||||
|
||||
//=======================================================================
|
||||
// function :
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline BOPDS_ShapeInfo::BOPDS_ShapeInfo()
|
||||
:
|
||||
|
||||
@@ -27,10 +25,8 @@ inline BOPDS_ShapeInfo::BOPDS_ShapeInfo()
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function :
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline BOPDS_ShapeInfo::BOPDS_ShapeInfo(const Handle(NCollection_BaseAllocator)& theAllocator)
|
||||
: myType(TopAbs_SHAPE),
|
||||
mySubShapes(theAllocator),
|
||||
@@ -45,173 +41,135 @@ inline BOPDS_ShapeInfo::BOPDS_ShapeInfo(const Handle(NCollection_BaseAllocator)&
|
||||
//=======================================================================
|
||||
inline BOPDS_ShapeInfo::~BOPDS_ShapeInfo() {}
|
||||
|
||||
//=======================================================================
|
||||
// function : SetShape
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void BOPDS_ShapeInfo::SetShape(const TopoDS_Shape& theS)
|
||||
{
|
||||
myShape = theS;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : Shape
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline const TopoDS_Shape& BOPDS_ShapeInfo::Shape() const
|
||||
{
|
||||
return myShape;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : SetShapeType
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void BOPDS_ShapeInfo::SetShapeType(const TopAbs_ShapeEnum theType)
|
||||
{
|
||||
myType = theType;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : ShapeType
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline TopAbs_ShapeEnum BOPDS_ShapeInfo::ShapeType() const
|
||||
{
|
||||
return myType;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : SetBox
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void BOPDS_ShapeInfo::SetBox(const Bnd_Box& theBox)
|
||||
{
|
||||
myBox = theBox;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : Box
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline const Bnd_Box& BOPDS_ShapeInfo::Box() const
|
||||
{
|
||||
return myBox;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : ChangeBox
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Bnd_Box& BOPDS_ShapeInfo::ChangeBox()
|
||||
{
|
||||
return myBox;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : SubShapes
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline const TColStd_ListOfInteger& BOPDS_ShapeInfo::SubShapes() const
|
||||
{
|
||||
return mySubShapes;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : ChangeSubShapes
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline TColStd_ListOfInteger& BOPDS_ShapeInfo::ChangeSubShapes()
|
||||
{
|
||||
return mySubShapes;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : HasSubShape
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Boolean BOPDS_ShapeInfo::HasSubShape(const Standard_Integer theI) const
|
||||
{
|
||||
return mySubShapes.Contains(theI);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : HasReference
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Boolean BOPDS_ShapeInfo::HasReference() const
|
||||
{
|
||||
return (myReference >= 0);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : SetReference
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void BOPDS_ShapeInfo::SetReference(const Standard_Integer theI)
|
||||
{
|
||||
myReference = theI;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : Reference
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Integer BOPDS_ShapeInfo::Reference() const
|
||||
{
|
||||
return myReference;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : HasBRep
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Boolean BOPDS_ShapeInfo::HasBRep() const
|
||||
{
|
||||
return (BOPDS_Tools::HasBRep(myType));
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : IsInterfering
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Boolean BOPDS_ShapeInfo::IsInterfering() const
|
||||
{
|
||||
return (HasBRep() || myType == TopAbs_SOLID);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : HasFlag
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Boolean BOPDS_ShapeInfo::HasFlag() const
|
||||
{
|
||||
return (myFlag >= 0);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : HasFlag
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Boolean BOPDS_ShapeInfo::HasFlag(Standard_Integer& theFlag) const
|
||||
{
|
||||
theFlag = myFlag;
|
||||
return (myFlag >= 0);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : SetFlag
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void BOPDS_ShapeInfo::SetFlag(const Standard_Integer theFlag)
|
||||
{
|
||||
myFlag = theFlag;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : Flag
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Integer BOPDS_ShapeInfo::Flag() const
|
||||
{
|
||||
return myFlag;
|
||||
|
||||
@@ -12,28 +12,22 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
//=======================================================================
|
||||
// function: HasBRep
|
||||
// purpose:
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Boolean BOPDS_Tools::HasBRep(const TopAbs_ShapeEnum aTi)
|
||||
{
|
||||
return (aTi == TopAbs_VERTEX || aTi == TopAbs_EDGE || aTi == TopAbs_FACE);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function: IsInterfering
|
||||
// purpose:
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Boolean BOPDS_Tools::IsInterfering(const TopAbs_ShapeEnum aTi)
|
||||
{
|
||||
return (BOPDS_Tools::HasBRep(aTi) || aTi == TopAbs_SOLID);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : TypeToInteger
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Integer BOPDS_Tools::TypeToInteger(const TopAbs_ShapeEnum aType1,
|
||||
const TopAbs_ShapeEnum aType2)
|
||||
{
|
||||
@@ -88,10 +82,8 @@ inline Standard_Integer BOPDS_Tools::TypeToInteger(const TopAbs_ShapeEnum aType1
|
||||
return iRet;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : TypeToInteger
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Integer BOPDS_Tools::TypeToInteger(const TopAbs_ShapeEnum aType1)
|
||||
{
|
||||
Standard_Integer iRet = 9;
|
||||
|
||||
@@ -18,10 +18,8 @@
|
||||
#include <NCollection_BaseAllocator.hxx>
|
||||
#include <TopTools_ListOfShape.hxx>
|
||||
|
||||
//=======================================================================
|
||||
// class : ConnexityBlock
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
class BOPTools_ConnexityBlock
|
||||
{
|
||||
public:
|
||||
|
||||
@@ -17,10 +17,8 @@
|
||||
|
||||
#include <TopoDS_Shape.hxx>
|
||||
|
||||
//=======================================================================
|
||||
// class :
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
class BOPTools_CoupleOfShape
|
||||
{
|
||||
public:
|
||||
|
||||
@@ -15,10 +15,8 @@
|
||||
#include <Precision.hxx>
|
||||
#include <BRep_Tool.hxx>
|
||||
|
||||
//=======================================================================
|
||||
// function : IntTools_EdgeEdge
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline IntTools_EdgeEdge::IntTools_EdgeEdge()
|
||||
: myTol1(0.),
|
||||
myTol2(0.),
|
||||
@@ -38,10 +36,8 @@ inline IntTools_EdgeEdge::IntTools_EdgeEdge()
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : IntTools_EdgeEdge
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline IntTools_EdgeEdge::IntTools_EdgeEdge(const TopoDS_Edge& theEdge1,
|
||||
const TopoDS_Edge& theEdge2)
|
||||
: myEdge1(theEdge1),
|
||||
@@ -64,10 +60,8 @@ inline IntTools_EdgeEdge::IntTools_EdgeEdge(const TopoDS_Edge& theEdge1,
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : IntTools_EdgeEdge
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline IntTools_EdgeEdge::IntTools_EdgeEdge(const TopoDS_Edge& theEdge1,
|
||||
const Standard_Real aT11,
|
||||
const Standard_Real aT12,
|
||||
@@ -94,44 +88,34 @@ inline IntTools_EdgeEdge::IntTools_EdgeEdge(const TopoDS_Edge& theEdge1,
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : IntTools_EdgeEdge
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline IntTools_EdgeEdge::~IntTools_EdgeEdge() {}
|
||||
|
||||
//=======================================================================
|
||||
// function : SetEdge1
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void IntTools_EdgeEdge::SetEdge1(const TopoDS_Edge& theEdge)
|
||||
{
|
||||
myEdge1 = theEdge;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : SetRange1
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void IntTools_EdgeEdge::SetRange1(const IntTools_Range& theRange)
|
||||
{
|
||||
myRange1 = theRange;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : SetRange1
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void IntTools_EdgeEdge::SetRange1(const Standard_Real aT1, const Standard_Real aT2)
|
||||
{
|
||||
myRange1.SetFirst(aT1);
|
||||
myRange1.SetLast(aT2);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : SetEdge1
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void IntTools_EdgeEdge::SetEdge1(const TopoDS_Edge& theEdge,
|
||||
const Standard_Real aT1,
|
||||
const Standard_Real aT2)
|
||||
@@ -140,38 +124,30 @@ inline void IntTools_EdgeEdge::SetEdge1(const TopoDS_Edge& theEdge,
|
||||
SetRange1(aT1, aT2);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : SetEdge2
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void IntTools_EdgeEdge::SetEdge2(const TopoDS_Edge& theEdge)
|
||||
{
|
||||
myEdge2 = theEdge;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : SetRange1
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void IntTools_EdgeEdge::SetRange2(const IntTools_Range& theRange)
|
||||
{
|
||||
myRange2 = theRange;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : SetRange1
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void IntTools_EdgeEdge::SetRange2(const Standard_Real aT1, const Standard_Real aT2)
|
||||
{
|
||||
myRange2.SetFirst(aT1);
|
||||
myRange2.SetLast(aT2);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : SetEdge1
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void IntTools_EdgeEdge::SetEdge2(const TopoDS_Edge& theEdge,
|
||||
const Standard_Real aT1,
|
||||
const Standard_Real aT2)
|
||||
@@ -180,46 +156,36 @@ inline void IntTools_EdgeEdge::SetEdge2(const TopoDS_Edge& theEdge,
|
||||
SetRange2(aT1, aT2);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : SetFuzzyValue
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void IntTools_EdgeEdge::SetFuzzyValue(const Standard_Real theFuzz)
|
||||
{
|
||||
myFuzzyValue = Max(theFuzz, Precision::Confusion());
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : FuzzyValue
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Real IntTools_EdgeEdge::FuzzyValue() const
|
||||
{
|
||||
return myFuzzyValue;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : CommonParts
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline const IntTools_SequenceOfCommonPrts& IntTools_EdgeEdge::CommonParts() const
|
||||
{
|
||||
return myCommonParts;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : IsDone
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Boolean IntTools_EdgeEdge::IsDone() const
|
||||
{
|
||||
return (myErrorStatus == 0);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : CheckData
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void IntTools_EdgeEdge::CheckData()
|
||||
{
|
||||
if (myEdge1.IsNull() || myEdge2.IsNull())
|
||||
|
||||
@@ -14,10 +14,7 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
//=======================================================================
|
||||
// function : Shell
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline const TopoDS_Shell& BRepFill_Generator::Shell() const
|
||||
{
|
||||
|
||||
@@ -620,10 +620,8 @@ void BRepFill_PipeShell::SetTransition(const BRepFill_TransitionStyle Mode,
|
||||
angmax = Angmax;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : Simulate
|
||||
// purpose : Calculate N Sections
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void BRepFill_PipeShell::Simulate(const Standard_Integer N, TopTools_ListOfShape& List)
|
||||
{
|
||||
// Preparation
|
||||
|
||||
@@ -17,10 +17,8 @@
|
||||
#include <TopoDS.hxx>
|
||||
#include <TopTools_HArray1OfShape.hxx>
|
||||
|
||||
//=======================================================================
|
||||
// function : Edge
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline const TopoDS_Edge& BRepFill_ShapeLaw::Edge(const Standard_Integer Index) const
|
||||
{
|
||||
return TopoDS::Edge(myEdges->Value(Index));
|
||||
|
||||
@@ -16,10 +16,7 @@
|
||||
|
||||
#include <IntPatch_Line.hxx>
|
||||
|
||||
//=======================================================================
|
||||
// function : TopOpeBRep_LineInter
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline TopOpeBRep_LineInter::TopOpeBRep_LineInter()
|
||||
: myOK(Standard_True),
|
||||
@@ -39,10 +36,7 @@ inline TopOpeBRep_LineInter::TopOpeBRep_LineInter()
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : SetFaces
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void TopOpeBRep_LineInter::SetFaces(const TopoDS_Face& F1, const TopoDS_Face& F2)
|
||||
{
|
||||
@@ -50,150 +44,105 @@ inline void TopOpeBRep_LineInter::SetFaces(const TopoDS_Face& F1, const TopoDS_F
|
||||
myF2 = F2;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : TypeLineCurve
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline TopOpeBRep_TypeLineCurve TopOpeBRep_LineInter::TypeLineCurve() const
|
||||
{
|
||||
return myTypeLineCurve;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : NbVPoint
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Integer TopOpeBRep_LineInter::NbVPoint() const
|
||||
{
|
||||
return myNbVPoint;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : INL
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Boolean TopOpeBRep_LineInter::INL() const
|
||||
{
|
||||
return myINL;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : IsVClosed
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Boolean TopOpeBRep_LineInter::IsVClosed() const
|
||||
{
|
||||
return myIsVClosed;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : HasVPonR
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Boolean TopOpeBRep_LineInter::HasVPonR() const
|
||||
{
|
||||
return myHasVPonR;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : TransitionOnS1
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline IntSurf_TypeTrans TopOpeBRep_LineInter::TransitionOnS1() const
|
||||
{
|
||||
return myIL->TransitionOnS1();
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : TransitionOnS2
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline IntSurf_TypeTrans TopOpeBRep_LineInter::TransitionOnS2() const
|
||||
{
|
||||
return myIL->TransitionOnS2();
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : SituationS1
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline IntSurf_Situation TopOpeBRep_LineInter::SituationS1() const
|
||||
{
|
||||
return myIL->SituationS1();
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : SituationS2
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline IntSurf_Situation TopOpeBRep_LineInter::SituationS2() const
|
||||
{
|
||||
return myIL->SituationS2();
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : LineW
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline const Handle(IntPatch_WLine)& TopOpeBRep_LineInter::LineW() const
|
||||
{
|
||||
return myILW;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : LineG
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline const Handle(IntPatch_GLine)& TopOpeBRep_LineInter::LineG() const
|
||||
{
|
||||
return myILG;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : LineR
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline const Handle(IntPatch_RLine)& TopOpeBRep_LineInter::LineR() const
|
||||
{
|
||||
return myILR;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : Index
|
||||
// purpose : trace
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void TopOpeBRep_LineInter::Index(const Standard_Integer I)
|
||||
{
|
||||
myIndex = I;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : Index
|
||||
// purpose : trace
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Integer TopOpeBRep_LineInter::Index() const
|
||||
{
|
||||
return myIndex;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : OK
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Boolean TopOpeBRep_LineInter::OK() const
|
||||
{
|
||||
|
||||
@@ -16,29 +16,23 @@
|
||||
|
||||
#include <TopOpeBRep_define.hxx>
|
||||
|
||||
//=======================================================================
|
||||
// function : SetPint
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void TopOpeBRep_Point2d::SetPint(const IntRes2d_IntersectionPoint& P)
|
||||
{
|
||||
mypint = P;
|
||||
myhaspint = Standard_True;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : HasPint
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Boolean TopOpeBRep_Point2d::HasPint() const
|
||||
{
|
||||
return myhaspint;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : Pint
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline const IntRes2d_IntersectionPoint& TopOpeBRep_Point2d::Pint() const
|
||||
{
|
||||
if (!HasPint())
|
||||
@@ -46,10 +40,8 @@ inline const IntRes2d_IntersectionPoint& TopOpeBRep_Point2d::Pint() const
|
||||
return mypint;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : SetIsVertex
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void TopOpeBRep_Point2d::SetIsVertex(const Standard_Integer Index, const Standard_Boolean B)
|
||||
{
|
||||
if (Index == 1)
|
||||
@@ -60,10 +52,8 @@ inline void TopOpeBRep_Point2d::SetIsVertex(const Standard_Integer Index, const
|
||||
throw Standard_Failure("TopOpeBRep_Point2d::SetIsVertex");
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : IsVertex
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Boolean TopOpeBRep_Point2d::IsVertex(const Standard_Integer Index) const
|
||||
{
|
||||
if (Index == 1)
|
||||
@@ -74,10 +64,8 @@ inline Standard_Boolean TopOpeBRep_Point2d::IsVertex(const Standard_Integer Inde
|
||||
throw Standard_Failure("TopOpeBRep_Point2d::IsVertex");
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : SetVertex
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void TopOpeBRep_Point2d::SetVertex(const Standard_Integer Index, const TopoDS_Vertex& V)
|
||||
{
|
||||
if (Index == 1)
|
||||
@@ -94,10 +82,8 @@ inline void TopOpeBRep_Point2d::SetVertex(const Standard_Integer Index, const To
|
||||
throw Standard_Failure("TopOpeBRep_Point2d::SetVertex");
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : SetTransition
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void TopOpeBRep_Point2d::SetTransition(const Standard_Integer Index,
|
||||
const TopOpeBRepDS_Transition& T)
|
||||
{
|
||||
@@ -109,10 +95,8 @@ inline void TopOpeBRep_Point2d::SetTransition(const Standard_Integer Ind
|
||||
throw Standard_Failure("TopOpeBRep_Point2d::SetTransition");
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : SetParameter
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void TopOpeBRep_Point2d::SetParameter(const Standard_Integer Index, const Standard_Real P)
|
||||
{
|
||||
if (Index == 1)
|
||||
@@ -123,10 +107,8 @@ inline void TopOpeBRep_Point2d::SetParameter(const Standard_Integer Index, const
|
||||
throw Standard_Failure("TopOpeBRep_Point2d::SetParameter");
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : Parameter
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Real TopOpeBRep_Point2d::Parameter(const Standard_Integer Index) const
|
||||
{
|
||||
if (Index == 1)
|
||||
@@ -137,28 +119,22 @@ inline Standard_Real TopOpeBRep_Point2d::Parameter(const Standard_Integer Index)
|
||||
throw Standard_Failure("TopOpeBRep_Point2d::Parameter");
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : SetIsPointOfSegment
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void TopOpeBRep_Point2d::SetIsPointOfSegment(const Standard_Boolean B)
|
||||
{
|
||||
myispointofsegment = B;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : IsPointOfSegment
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Boolean TopOpeBRep_Point2d::IsPointOfSegment() const
|
||||
{
|
||||
return myispointofsegment;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : SetSegmentAncestors
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void TopOpeBRep_Point2d::SetSegmentAncestors(const Standard_Integer IP1,
|
||||
const Standard_Integer IP2)
|
||||
{
|
||||
@@ -169,10 +145,8 @@ inline void TopOpeBRep_Point2d::SetSegmentAncestors(const Standard_Integer IP1,
|
||||
mystatus = TopOpeBRep_P2DNEW;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : SegmentAncestors
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Boolean TopOpeBRep_Point2d::SegmentAncestors(Standard_Integer& IP1,
|
||||
Standard_Integer& IP2) const
|
||||
{
|
||||
@@ -181,163 +155,127 @@ inline Standard_Boolean TopOpeBRep_Point2d::SegmentAncestors(Standard_Integer& I
|
||||
return myhasancestors;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : SetStatus
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void TopOpeBRep_Point2d::SetStatus(const TopOpeBRep_P2Dstatus I)
|
||||
{
|
||||
mystatus = I;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : Status
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline TopOpeBRep_P2Dstatus TopOpeBRep_Point2d::Status() const
|
||||
{
|
||||
return mystatus;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : SetIndex
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void TopOpeBRep_Point2d::SetIndex(const Standard_Integer I)
|
||||
{
|
||||
myindex = I;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : Index
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Integer TopOpeBRep_Point2d::Index() const
|
||||
{
|
||||
return myindex;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : SetValue
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void TopOpeBRep_Point2d::SetValue(const gp_Pnt& P)
|
||||
{
|
||||
mypnt = P;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : Value
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline const gp_Pnt& TopOpeBRep_Point2d::Value() const
|
||||
{
|
||||
return mypnt;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : SetValue2d
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void TopOpeBRep_Point2d::SetValue2d(const gp_Pnt2d& P)
|
||||
{
|
||||
mypnt2d = P;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : Value2d
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline const gp_Pnt2d& TopOpeBRep_Point2d::Value2d() const
|
||||
{
|
||||
return mypnt2d;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : SetKeep
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void TopOpeBRep_Point2d::SetKeep(const Standard_Boolean B)
|
||||
{
|
||||
mykeep = B;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : Keep
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Boolean TopOpeBRep_Point2d::Keep() const
|
||||
{
|
||||
return mykeep;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : SetEdgesConfig
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void TopOpeBRep_Point2d::SetEdgesConfig(const TopOpeBRepDS_Config B)
|
||||
{
|
||||
myedgesconfig = B;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : EdgesConfig
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline TopOpeBRepDS_Config TopOpeBRep_Point2d::EdgesConfig() const
|
||||
{
|
||||
return myedgesconfig;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : SetTolerance
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void TopOpeBRep_Point2d::SetTolerance(const Standard_Real t)
|
||||
{
|
||||
mytolerance = t;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : Tolerance
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Real TopOpeBRep_Point2d::Tolerance() const
|
||||
{
|
||||
return mytolerance;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : SetHctxff2d
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void TopOpeBRep_Point2d::SetHctxff2d(const Handle(TopOpeBRep_Hctxff2d)& h)
|
||||
{
|
||||
myctxff2d = h;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : Hctxff2d
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Handle(TopOpeBRep_Hctxff2d) TopOpeBRep_Point2d::Hctxff2d() const
|
||||
{
|
||||
return myctxff2d;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : SetHctxee2d
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void TopOpeBRep_Point2d::SetHctxee2d(const Handle(TopOpeBRep_Hctxee2d)& h)
|
||||
{
|
||||
myctxee2d = h;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : Hctxee2d
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Handle(TopOpeBRep_Hctxee2d) TopOpeBRep_Point2d::Hctxee2d() const
|
||||
{
|
||||
return myctxee2d;
|
||||
|
||||
@@ -16,10 +16,7 @@
|
||||
|
||||
#include <IntPatch_Point.hxx>
|
||||
|
||||
//=======================================================================
|
||||
// function : TopOpeBRep_VPointInter
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline TopOpeBRep_VPointInter::TopOpeBRep_VPointInter()
|
||||
: myPPOI(NULL),
|
||||
@@ -35,10 +32,7 @@ inline TopOpeBRep_VPointInter::TopOpeBRep_VPointInter()
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : SetShapes
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void TopOpeBRep_VPointInter::SetShapes(const Standard_Integer I1, const Standard_Integer I2)
|
||||
{
|
||||
@@ -46,10 +40,7 @@ inline void TopOpeBRep_VPointInter::SetShapes(const Standard_Integer I1, const S
|
||||
myS2 = I2;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : GetShapes
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void TopOpeBRep_VPointInter::GetShapes(Standard_Integer& I1, Standard_Integer& I2) const
|
||||
{
|
||||
@@ -57,230 +48,161 @@ inline void TopOpeBRep_VPointInter::GetShapes(Standard_Integer& I1, Standard_Int
|
||||
I2 = myS2;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : TransitionOnS1
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline IntSurf_Transition TopOpeBRep_VPointInter::TransitionOnS1() const
|
||||
{
|
||||
return myPPOI->TransitionOnS1();
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : TransitionOnS2
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline IntSurf_Transition TopOpeBRep_VPointInter::TransitionOnS2() const
|
||||
{
|
||||
return myPPOI->TransitionOnS2();
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : TransitionLineArc1
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline IntSurf_Transition TopOpeBRep_VPointInter::TransitionLineArc1() const
|
||||
{
|
||||
return myPPOI->TransitionLineArc1();
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : TransitionLineArc2
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline IntSurf_Transition TopOpeBRep_VPointInter::TransitionLineArc2() const
|
||||
{
|
||||
return myPPOI->TransitionLineArc2();
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : IsOnDomS1
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Boolean TopOpeBRep_VPointInter::IsOnDomS1() const
|
||||
{
|
||||
return myPPOI->IsOnDomS1();
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : IsOnDomS2
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Boolean TopOpeBRep_VPointInter::IsOnDomS2() const
|
||||
{
|
||||
return myPPOI->IsOnDomS2();
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : ParametersOnS1
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void TopOpeBRep_VPointInter::ParametersOnS1(Standard_Real& u, Standard_Real& v) const
|
||||
{
|
||||
myPPOI->ParametersOnS1(u, v);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : ParametersOnS2
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void TopOpeBRep_VPointInter::ParametersOnS2(Standard_Real& u, Standard_Real& v) const
|
||||
{
|
||||
myPPOI->ParametersOnS2(u, v);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : Value
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline const gp_Pnt& TopOpeBRep_VPointInter::Value() const
|
||||
{
|
||||
return myPPOI->Value();
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : Tolerance
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Real TopOpeBRep_VPointInter::Tolerance() const
|
||||
{
|
||||
return myPPOI->Tolerance();
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : ParameterOnLine
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Real TopOpeBRep_VPointInter::ParameterOnLine() const
|
||||
{
|
||||
return myPPOI->ParameterOnLine();
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : ParameterOnArc1
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Real TopOpeBRep_VPointInter::ParameterOnArc1() const
|
||||
{
|
||||
return myPPOI->ParameterOnArc1();
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : ParameterOnArc2
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Real TopOpeBRep_VPointInter::ParameterOnArc2() const
|
||||
{
|
||||
return myPPOI->ParameterOnArc2();
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : IsVertexOnS1
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Boolean TopOpeBRep_VPointInter::IsVertexOnS1() const
|
||||
{
|
||||
return myPPOI->IsVertexOnS1();
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : IsVertexOnS2
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Boolean TopOpeBRep_VPointInter::IsVertexOnS2() const
|
||||
{
|
||||
return myPPOI->IsVertexOnS2();
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : IsMultiple
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Boolean TopOpeBRep_VPointInter::IsMultiple() const
|
||||
{
|
||||
return myPPOI->IsMultiple();
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : IsInternal
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Boolean TopOpeBRep_VPointInter::IsInternal() const
|
||||
{
|
||||
return Standard_False;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : ShapeIndex
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Integer TopOpeBRep_VPointInter::ShapeIndex() const
|
||||
{
|
||||
return myShapeIndex;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : ShapeIndex
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void TopOpeBRep_VPointInter::ShapeIndex(const Standard_Integer I)
|
||||
{
|
||||
myShapeIndex = I;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : Keep
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Boolean TopOpeBRep_VPointInter::Keep() const
|
||||
{
|
||||
return myKeep;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : ChangeKeep
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void TopOpeBRep_VPointInter::ChangeKeep(const Standard_Boolean keep)
|
||||
{
|
||||
myKeep = keep;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : Index
|
||||
// purpose : trace
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void TopOpeBRep_VPointInter::Index(const Standard_Integer I)
|
||||
{
|
||||
myIndex = I;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : Index
|
||||
// purpose : trace
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Integer TopOpeBRep_VPointInter::Index() const
|
||||
{
|
||||
|
||||
@@ -14,20 +14,14 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
//=======================================================================
|
||||
// function : Initialize
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void TopOpeBRepBuild_BlockIterator::Initialize()
|
||||
{
|
||||
myValue = myLower;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : More
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Boolean TopOpeBRepBuild_BlockIterator::More() const
|
||||
{
|
||||
@@ -35,30 +29,21 @@ inline Standard_Boolean TopOpeBRepBuild_BlockIterator::More() const
|
||||
return b;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : Next
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void TopOpeBRepBuild_BlockIterator::Next()
|
||||
{
|
||||
myValue++;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : Value
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Integer TopOpeBRepBuild_BlockIterator::Value() const
|
||||
{
|
||||
return myValue;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : Extent
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Integer TopOpeBRepBuild_BlockIterator::Extent() const
|
||||
{
|
||||
|
||||
@@ -16,10 +16,7 @@
|
||||
|
||||
#include <StdFail_NotDone.hxx>
|
||||
|
||||
//=======================================================================
|
||||
// function : TopOpeBRepBuild_FuseFace
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline TopOpeBRepBuild_FuseFace::TopOpeBRepBuild_FuseFace()
|
||||
: myInternal(Standard_False),
|
||||
@@ -28,10 +25,7 @@ inline TopOpeBRepBuild_FuseFace::TopOpeBRepBuild_FuseFace()
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : TopOpeBRepBuild_FuseFace
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline TopOpeBRepBuild_FuseFace::TopOpeBRepBuild_FuseFace(const TopTools_ListOfShape& LIF,
|
||||
const TopTools_ListOfShape& LRF,
|
||||
@@ -40,90 +34,63 @@ inline TopOpeBRepBuild_FuseFace::TopOpeBRepBuild_FuseFace(const TopTools_ListOfS
|
||||
Init(LIF, LRF, CXM);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : IsDone
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Boolean TopOpeBRepBuild_FuseFace::IsDone() const
|
||||
{
|
||||
return myDone;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : IsModified
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Boolean TopOpeBRepBuild_FuseFace::IsModified() const
|
||||
{
|
||||
return myModified;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : ListOfFusionnedFaces
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline const TopTools_ListOfShape& TopOpeBRepBuild_FuseFace::LFuseFace() const
|
||||
{
|
||||
return myLFF;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : ListOfInternalEdges
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline const TopTools_ListOfShape& TopOpeBRepBuild_FuseFace::LInternEdge() const
|
||||
{
|
||||
return myLIE;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : ListOfExternalEdges
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline const TopTools_ListOfShape& TopOpeBRepBuild_FuseFace::LExternEdge() const
|
||||
{
|
||||
return myLEE;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : ListOfModifiedEdges
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline const TopTools_ListOfShape& TopOpeBRepBuild_FuseFace::LModifEdge() const
|
||||
{
|
||||
return myLME;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : ListOfInternalVertex
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline const TopTools_ListOfShape& TopOpeBRepBuild_FuseFace::LInternVertex() const
|
||||
{
|
||||
return myLIV;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : ListOfExternalVertex
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline const TopTools_ListOfShape& TopOpeBRepBuild_FuseFace::LExternVertex() const
|
||||
{
|
||||
return myLEV;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : ListOfModifiedVertex
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline const TopTools_ListOfShape& TopOpeBRepBuild_FuseFace::LModifVertex() const
|
||||
{
|
||||
|
||||
@@ -314,10 +314,8 @@ Standard_Boolean FUN_computeLIFfaces2d(const TopOpeBRepBuild_Builder& BU,
|
||||
return Standard_True;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// variable : Standard_EXPORT TopOpeBRepDS_PDataStructure GLOBAL_DS2d
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
Standard_EXPORT TopOpeBRepDS_PDataStructure GLOBAL_DS2d = NULL;
|
||||
|
||||
//=================================================================================================
|
||||
@@ -838,10 +836,10 @@ void TopOpeBRepBuild_Builder::GSplitEdgeWES(const TopoDS_Shape& EOR,
|
||||
if (isfafa)
|
||||
newO = Standard_False; // xpu110598
|
||||
|
||||
// if (fus) : faces are SDSO : we keep original edge's orientation
|
||||
// if (com) : faces are SDSO : we keep original edge's orientation
|
||||
// if (cut && TBToFill==OUT) : myFaceToFill is the reference face,
|
||||
// we keep original edge's orientation
|
||||
// if (fus) : faces are SDSO : we keep original edge's orientation
|
||||
// if (com) : faces are SDSO : we keep original edge's orientation
|
||||
// if (cut && TBToFill==OUT) : myFaceToFill is the reference face,
|
||||
// we keep original edge's orientation
|
||||
|
||||
#ifdef OCCT_DEBUG
|
||||
Standard_Integer iEOR;
|
||||
|
||||
@@ -14,10 +14,7 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
//=======================================================================
|
||||
// function : BRepFeatForm
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline BRepFeat_Form::BRepFeat_Form()
|
||||
: myFuse(Standard_False),
|
||||
@@ -37,70 +34,49 @@ inline BRepFeat_Form::BRepFeat_Form()
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : BasisShapeValid
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void BRepFeat_Form::BasisShapeValid()
|
||||
{
|
||||
mySbOK = Standard_True;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : PerfSelectionValid
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void BRepFeat_Form::PerfSelectionValid()
|
||||
{
|
||||
myPSOK = Standard_True;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : GeneratedShapeValid
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void BRepFeat_Form::GeneratedShapeValid()
|
||||
{
|
||||
myGSOK = Standard_True;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : ShapeFromValid
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void BRepFeat_Form::ShapeFromValid()
|
||||
{
|
||||
mySFOK = Standard_True;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : ShapeUntilValid
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void BRepFeat_Form::ShapeUntilValid()
|
||||
{
|
||||
mySUOK = Standard_True;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : GluedFacesValid
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void BRepFeat_Form::GluedFacesValid()
|
||||
{
|
||||
myGFOK = Standard_True;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : SketchFaceValid
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void BRepFeat_Form::SketchFaceValid()
|
||||
{
|
||||
|
||||
@@ -14,77 +14,53 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
//=======================================================================
|
||||
// function : BRepFeat_Gluer
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline BRepFeat_Gluer::BRepFeat_Gluer() {}
|
||||
|
||||
//=======================================================================
|
||||
// function : BRepFeat_Gluer
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline BRepFeat_Gluer::BRepFeat_Gluer(const TopoDS_Shape& Snew, const TopoDS_Shape& Sbase)
|
||||
: myGluer(Sbase, Snew) // Attention a l`inversion
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : Init
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void BRepFeat_Gluer::Init(const TopoDS_Shape& Snew, const TopoDS_Shape& Sbase)
|
||||
{
|
||||
myGluer.Init(Sbase, Snew);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : Bind
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void BRepFeat_Gluer::Bind(const TopoDS_Face& Fnew, const TopoDS_Face& Fbase)
|
||||
{
|
||||
myGluer.Bind(Fnew, Fbase);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : Bind
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void BRepFeat_Gluer::Bind(const TopoDS_Edge& Enew, const TopoDS_Edge& Ebase)
|
||||
{
|
||||
myGluer.Bind(Enew, Ebase);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : OpeType
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline LocOpe_Operation BRepFeat_Gluer::OpeType() const
|
||||
{
|
||||
return myGluer.OpeType();
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : BasisShape
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline const TopoDS_Shape& BRepFeat_Gluer::BasisShape() const
|
||||
{
|
||||
return myGluer.BasisShape();
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : GluedShape
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline const TopoDS_Shape& BRepFeat_Gluer::GluedShape() const
|
||||
{
|
||||
|
||||
@@ -16,10 +16,7 @@
|
||||
|
||||
// Modified by jag, Tue May 30 09:47:02 1995
|
||||
|
||||
//=======================================================================
|
||||
// function : BRepFeat_MakeCylindricalHole
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline BRepFeat_MakeCylindricalHole::BRepFeat_MakeCylindricalHole()
|
||||
: myAxDef(Standard_False),
|
||||
@@ -29,10 +26,7 @@ inline BRepFeat_MakeCylindricalHole::BRepFeat_MakeCylindricalHole()
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : Init
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void BRepFeat_MakeCylindricalHole::Init(const gp_Ax1& Axis)
|
||||
{
|
||||
@@ -40,10 +34,7 @@ inline void BRepFeat_MakeCylindricalHole::Init(const gp_Ax1& Axis)
|
||||
myAxDef = Standard_True;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : Init
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void BRepFeat_MakeCylindricalHole::Init(const TopoDS_Shape& S, const gp_Ax1& Axis)
|
||||
{
|
||||
@@ -52,10 +43,7 @@ inline void BRepFeat_MakeCylindricalHole::Init(const TopoDS_Shape& S, const gp_A
|
||||
myAxDef = Standard_True;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : Status
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline BRepFeat_Status BRepFeat_MakeCylindricalHole::Status() const
|
||||
{
|
||||
|
||||
@@ -14,10 +14,7 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
//=======================================================================
|
||||
// function : BRepFeat_MakeLinearForm
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline BRepFeat_MakeLinearForm::BRepFeat_MakeLinearForm()
|
||||
: myBnd(0.0),
|
||||
@@ -25,10 +22,7 @@ inline BRepFeat_MakeLinearForm::BRepFeat_MakeLinearForm()
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : BRepFeat_MakePrism
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline BRepFeat_MakeLinearForm::BRepFeat_MakeLinearForm(const TopoDS_Shape& Sbase,
|
||||
const TopoDS_Wire& W,
|
||||
|
||||
@@ -113,10 +113,7 @@ void BRepFeat_MakePipe::Init(const TopoDS_Shape& Sbase,
|
||||
#endif
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : Add
|
||||
// purpose : add faces of gluing
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void BRepFeat_MakePipe::Add(const TopoDS_Edge& E, const TopoDS_Face& F)
|
||||
{
|
||||
|
||||
@@ -14,17 +14,11 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
//=======================================================================
|
||||
// function : BRepFeat_MakePipe
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline BRepFeat_MakePipe::BRepFeat_MakePipe() {}
|
||||
|
||||
//=======================================================================
|
||||
// function : BRepFeat_MakePipe
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline BRepFeat_MakePipe::BRepFeat_MakePipe(const TopoDS_Shape& Sbase,
|
||||
const TopoDS_Shape& Pbase,
|
||||
|
||||
@@ -14,20 +14,14 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
//=======================================================================
|
||||
// function : BRepFeat_MakePrism
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline BRepFeat_MakePrism::BRepFeat_MakePrism()
|
||||
: myStatusError(BRepFeat_OK)
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : BRepFeat_MakePrism
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline BRepFeat_MakePrism::BRepFeat_MakePrism(const TopoDS_Shape& Sbase,
|
||||
const TopoDS_Shape& Pbase,
|
||||
|
||||
@@ -14,20 +14,14 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
//=======================================================================
|
||||
// function : BRepFeat_MakeRevol
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline BRepFeat_MakeRevol::BRepFeat_MakeRevol()
|
||||
: myStatusError(BRepFeat_OK)
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : BRepFeat_MakeRevol
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline BRepFeat_MakeRevol::BRepFeat_MakeRevol(const TopoDS_Shape& Sbase,
|
||||
const TopoDS_Shape& Pbase,
|
||||
|
||||
@@ -14,10 +14,7 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
//=======================================================================
|
||||
// function : BRepFeat_MakeLinearForm
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline BRepFeat_MakeRevolutionForm::BRepFeat_MakeRevolutionForm()
|
||||
: myHeight1(0.0),
|
||||
@@ -30,10 +27,7 @@ inline BRepFeat_MakeRevolutionForm::BRepFeat_MakeRevolutionForm()
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : BRepFeat_MakePrism
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline BRepFeat_MakeRevolutionForm::BRepFeat_MakeRevolutionForm(const TopoDS_Shape& Sbase,
|
||||
const TopoDS_Wire& W,
|
||||
|
||||
@@ -14,10 +14,7 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
//=======================================================================
|
||||
// function : BRepFeatForm
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline BRepFeat_RibSlot::BRepFeat_RibSlot()
|
||||
: myFuse(Standard_False),
|
||||
|
||||
@@ -16,17 +16,11 @@
|
||||
|
||||
#include <LocOpe_WiresOnShape.hxx>
|
||||
|
||||
//=======================================================================
|
||||
// function : BRepFeat_SplitShape
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline BRepFeat_SplitShape::BRepFeat_SplitShape() {}
|
||||
|
||||
//=======================================================================
|
||||
// function : BRepFeat_SplitShape
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline BRepFeat_SplitShape::BRepFeat_SplitShape(const TopoDS_Shape& S)
|
||||
: mySShape(S)
|
||||
@@ -34,19 +28,14 @@ inline BRepFeat_SplitShape::BRepFeat_SplitShape(const TopoDS_Shape& S)
|
||||
myWOnShape = new LocOpe_WiresOnShape(S);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : Add
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Boolean BRepFeat_SplitShape::Add(const TopTools_SequenceOfShape& theEdges)
|
||||
{
|
||||
return myWOnShape->Add(theEdges);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : Init
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void BRepFeat_SplitShape::Init(const TopoDS_Shape& S)
|
||||
{
|
||||
@@ -61,50 +50,35 @@ inline void BRepFeat_SplitShape::Init(const TopoDS_Shape& S)
|
||||
}
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : SetCheckInterior
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void BRepFeat_SplitShape::SetCheckInterior(const Standard_Boolean ToCheckInterior)
|
||||
{
|
||||
myWOnShape->SetCheckInterior(ToCheckInterior);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : Add
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void BRepFeat_SplitShape::Add(const TopoDS_Wire& W, const TopoDS_Face& F)
|
||||
{
|
||||
myWOnShape->Bind(W, F);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : Add
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void BRepFeat_SplitShape::Add(const TopoDS_Edge& E, const TopoDS_Face& F)
|
||||
{
|
||||
myWOnShape->Bind(E, F);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : Add
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void BRepFeat_SplitShape::Add(const TopoDS_Compound& Comp, const TopoDS_Face& F)
|
||||
{
|
||||
myWOnShape->Bind(Comp, F);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : Add
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void BRepFeat_SplitShape::Add(const TopoDS_Edge& E, const TopoDS_Edge& EOn)
|
||||
{
|
||||
|
||||
@@ -14,27 +14,18 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
//=======================================================================
|
||||
// function : LocOpe_BuildShape
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline LocOpe_BuildShape::LocOpe_BuildShape() {}
|
||||
|
||||
//=======================================================================
|
||||
// function : LocOpe_BuildShape
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline LocOpe_BuildShape::LocOpe_BuildShape(const TopTools_ListOfShape& L)
|
||||
{
|
||||
Perform(L);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : Shape
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline const TopoDS_Shape& LocOpe_BuildShape::Shape() const
|
||||
{
|
||||
|
||||
@@ -16,10 +16,7 @@
|
||||
|
||||
#include <StdFail_NotDone.hxx>
|
||||
|
||||
//=======================================================================
|
||||
// function : LocOpe_CSIntersector
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline LocOpe_CSIntersector::LocOpe_CSIntersector()
|
||||
: myDone(Standard_False),
|
||||
@@ -28,10 +25,7 @@ inline LocOpe_CSIntersector::LocOpe_CSIntersector()
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : LocOpe_CSIntersector
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline LocOpe_CSIntersector::LocOpe_CSIntersector(const TopoDS_Shape& S)
|
||||
: myDone(Standard_False),
|
||||
@@ -41,10 +35,7 @@ inline LocOpe_CSIntersector::LocOpe_CSIntersector(const TopoDS_Shape& S)
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : IsDone
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Boolean LocOpe_CSIntersector::IsDone() const
|
||||
{
|
||||
|
||||
@@ -16,20 +16,14 @@
|
||||
|
||||
#include <StdFail_NotDone.hxx>
|
||||
|
||||
//=======================================================================
|
||||
// function : LocOpe_CurveShapeIntersector
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline LocOpe_CurveShapeIntersector::LocOpe_CurveShapeIntersector()
|
||||
: myDone(Standard_False)
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : LocOpe_CurveShapeIntersector
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline LocOpe_CurveShapeIntersector::LocOpe_CurveShapeIntersector(const gp_Ax1& Axis,
|
||||
const TopoDS_Shape& S)
|
||||
@@ -37,10 +31,7 @@ inline LocOpe_CurveShapeIntersector::LocOpe_CurveShapeIntersector(const gp_Ax1&
|
||||
Init(Axis, S);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : LocOpe_CurveShapeIntersector
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline LocOpe_CurveShapeIntersector::LocOpe_CurveShapeIntersector(const gp_Circ& C,
|
||||
const TopoDS_Shape& S)
|
||||
@@ -48,20 +39,14 @@ inline LocOpe_CurveShapeIntersector::LocOpe_CurveShapeIntersector(const gp_Circ&
|
||||
Init(C, S);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : IsDone
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Boolean LocOpe_CurveShapeIntersector::IsDone() const
|
||||
{
|
||||
return myDone;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : NbPoints
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Integer LocOpe_CurveShapeIntersector::NbPoints() const
|
||||
{
|
||||
@@ -72,10 +57,7 @@ inline Standard_Integer LocOpe_CurveShapeIntersector::NbPoints() const
|
||||
return myPoints.Length();
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : Point
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline const LocOpe_PntFace& LocOpe_CurveShapeIntersector::Point(const Standard_Integer I) const
|
||||
{
|
||||
|
||||
@@ -16,27 +16,18 @@
|
||||
|
||||
#include <TopoDS.hxx>
|
||||
|
||||
//=======================================================================
|
||||
// function : LocOpe_FindEdges
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline LocOpe_FindEdges::LocOpe_FindEdges() {}
|
||||
|
||||
//=======================================================================
|
||||
// function : LocOpe_FindEdges
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline LocOpe_FindEdges::LocOpe_FindEdges(const TopoDS_Shape& FFrom, const TopoDS_Shape& FTo)
|
||||
{
|
||||
Set(FFrom, FTo);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : InitIterator
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void LocOpe_FindEdges::InitIterator()
|
||||
{
|
||||
@@ -44,40 +35,28 @@ inline void LocOpe_FindEdges::InitIterator()
|
||||
myItTo.Initialize(myLTo);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : More
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Boolean LocOpe_FindEdges::More() const
|
||||
{
|
||||
return myItFrom.More();
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : EdgeFrom
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline const TopoDS_Edge& LocOpe_FindEdges::EdgeFrom() const
|
||||
{
|
||||
return TopoDS::Edge(myItFrom.Value());
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : EdgeTo
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline const TopoDS_Edge& LocOpe_FindEdges::EdgeTo() const
|
||||
{
|
||||
return TopoDS::Edge(myItTo.Value());
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : Next
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void LocOpe_FindEdges::Next()
|
||||
{
|
||||
|
||||
@@ -16,57 +16,39 @@
|
||||
|
||||
#include <TopoDS.hxx>
|
||||
|
||||
//=======================================================================
|
||||
// function : LocOpe_FindEdgesInFace
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline LocOpe_FindEdgesInFace::LocOpe_FindEdgesInFace() {}
|
||||
|
||||
//=======================================================================
|
||||
// function : LocOpe_FindEdgesInFace
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline LocOpe_FindEdgesInFace::LocOpe_FindEdgesInFace(const TopoDS_Shape& S, const TopoDS_Face& F)
|
||||
{
|
||||
Set(S, F);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : Init
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void LocOpe_FindEdgesInFace::Init()
|
||||
{
|
||||
myIt.Initialize(myList);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : More
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Boolean LocOpe_FindEdgesInFace::More() const
|
||||
{
|
||||
return myIt.More();
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : Edge
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline const TopoDS_Edge& LocOpe_FindEdgesInFace::Edge() const
|
||||
{
|
||||
return TopoDS::Edge(myIt.Value());
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : Next
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void LocOpe_FindEdgesInFace::Next()
|
||||
{
|
||||
|
||||
@@ -16,20 +16,14 @@
|
||||
|
||||
#include <StdFail_NotDone.hxx>
|
||||
|
||||
//=======================================================================
|
||||
// function : LocOpe_Generator
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline LocOpe_Generator::LocOpe_Generator()
|
||||
: myDone(Standard_False)
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : LocOpe_Generator
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline LocOpe_Generator::LocOpe_Generator(const TopoDS_Shape& S)
|
||||
: myShape(S),
|
||||
@@ -37,10 +31,7 @@ inline LocOpe_Generator::LocOpe_Generator(const TopoDS_Shape& S)
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : Init
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void LocOpe_Generator::Init(const TopoDS_Shape& S)
|
||||
{
|
||||
@@ -48,30 +39,21 @@ inline void LocOpe_Generator::Init(const TopoDS_Shape& S)
|
||||
myDone = Standard_False;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : IsDone
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Boolean LocOpe_Generator::IsDone() const
|
||||
{
|
||||
return myDone;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : Shape
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline const TopoDS_Shape& LocOpe_Generator::Shape() const
|
||||
{
|
||||
return myShape;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : ResultingShape
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline const TopoDS_Shape& LocOpe_Generator::ResultingShape() const
|
||||
{
|
||||
|
||||
@@ -16,10 +16,7 @@
|
||||
|
||||
#include <StdFail_NotDone.hxx>
|
||||
|
||||
//=======================================================================
|
||||
// function : LocOpe_Gluer
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline LocOpe_Gluer::LocOpe_Gluer()
|
||||
: myDone(Standard_False),
|
||||
@@ -28,10 +25,7 @@ inline LocOpe_Gluer::LocOpe_Gluer()
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : LocOpe_Gluer
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline LocOpe_Gluer::LocOpe_Gluer(const TopoDS_Shape& Sbase, const TopoDS_Shape& Snew)
|
||||
: myDone(Standard_False),
|
||||
@@ -42,20 +36,14 @@ inline LocOpe_Gluer::LocOpe_Gluer(const TopoDS_Shape& Sbase, const TopoDS_Shape&
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : IsDone
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Boolean LocOpe_Gluer::IsDone() const
|
||||
{
|
||||
return myDone;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : ResultingShape
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline const TopoDS_Shape& LocOpe_Gluer::ResultingShape() const
|
||||
{
|
||||
@@ -66,50 +54,35 @@ inline const TopoDS_Shape& LocOpe_Gluer::ResultingShape() const
|
||||
return myRes;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : BasisShape
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline const TopoDS_Shape& LocOpe_Gluer::BasisShape() const
|
||||
{
|
||||
return mySb;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : GluedShape
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline const TopoDS_Shape& LocOpe_Gluer::GluedShape() const
|
||||
{
|
||||
return mySn;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : OpeType
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline LocOpe_Operation LocOpe_Gluer::OpeType() const
|
||||
{
|
||||
return myOpe;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : Edges
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline const TopTools_ListOfShape& LocOpe_Gluer::Edges() const
|
||||
{
|
||||
return myEdges;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : TgtEdges
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline const TopTools_ListOfShape& LocOpe_Gluer::TgtEdges() const
|
||||
{
|
||||
|
||||
@@ -14,10 +14,7 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
//=======================================================================
|
||||
// function : LocOpe_LinearForm
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline LocOpe_LinearForm::LocOpe_LinearForm()
|
||||
: myDone(Standard_False),
|
||||
@@ -25,10 +22,7 @@ inline LocOpe_LinearForm::LocOpe_LinearForm()
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : LocOpe_LinearForm
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline LocOpe_LinearForm::LocOpe_LinearForm(const TopoDS_Shape& Base,
|
||||
const gp_Vec& V,
|
||||
@@ -39,10 +33,7 @@ inline LocOpe_LinearForm::LocOpe_LinearForm(const TopoDS_Shape& Base,
|
||||
Perform(Base, V, Pnt1, Pnt2);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : LocOpe_LinearForm
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline LocOpe_LinearForm::LocOpe_LinearForm(const TopoDS_Shape& Base,
|
||||
const gp_Vec& V,
|
||||
|
||||
@@ -14,40 +14,28 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
//=======================================================================
|
||||
// function : Spine
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline const TopoDS_Shape& LocOpe_Pipe::Spine() const
|
||||
{
|
||||
return myPipe.Spine();
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : Profile
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline const TopoDS_Shape& LocOpe_Pipe::Profile() const
|
||||
{
|
||||
return myPipe.Profile();
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : FirstShape
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline const TopoDS_Shape& LocOpe_Pipe::FirstShape() const
|
||||
{
|
||||
return myPipe.FirstShape();
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : LastShape
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline const TopoDS_Shape& LocOpe_Pipe::LastShape() const
|
||||
{
|
||||
|
||||
@@ -16,30 +16,21 @@
|
||||
|
||||
#include <StdFail_NotDone.hxx>
|
||||
|
||||
//=======================================================================
|
||||
// function : LocOpe_SplitShape
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline LocOpe_SplitShape::LocOpe_SplitShape()
|
||||
: myDone(Standard_False)
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : LocOpe_SplitShape
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline LocOpe_SplitShape::LocOpe_SplitShape(const TopoDS_Shape& S)
|
||||
{
|
||||
Init(S);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : Shape
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline const TopoDS_Shape& LocOpe_SplitShape::Shape() const
|
||||
{
|
||||
|
||||
@@ -16,20 +16,14 @@
|
||||
|
||||
#include <StdFail_NotDone.hxx>
|
||||
|
||||
//=======================================================================
|
||||
// function : LocOpe_Spliter
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline LocOpe_Spliter::LocOpe_Spliter()
|
||||
: myDone(Standard_False)
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : LocOpe_Spliter
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline LocOpe_Spliter::LocOpe_Spliter(const TopoDS_Shape& S)
|
||||
: myShape(S),
|
||||
@@ -37,10 +31,7 @@ inline LocOpe_Spliter::LocOpe_Spliter(const TopoDS_Shape& S)
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : Init
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void LocOpe_Spliter::Init(const TopoDS_Shape& S)
|
||||
{
|
||||
@@ -48,30 +39,21 @@ inline void LocOpe_Spliter::Init(const TopoDS_Shape& S)
|
||||
myDone = Standard_False;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : IsDone
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Boolean LocOpe_Spliter::IsDone() const
|
||||
{
|
||||
return myDone;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : Shape
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline const TopoDS_Shape& LocOpe_Spliter::Shape() const
|
||||
{
|
||||
return myShape;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : ResultingShape
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline const TopoDS_Shape& LocOpe_Spliter::ResultingShape() const
|
||||
{
|
||||
|
||||
@@ -14,30 +14,21 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
//=======================================================================
|
||||
// function : SetCheckInterior
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void LocOpe_WiresOnShape::SetCheckInterior(const Standard_Boolean ToCheckInterior)
|
||||
{
|
||||
myCheckInterior = ToCheckInterior;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : IsDone
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Boolean LocOpe_WiresOnShape::IsDone() const
|
||||
{
|
||||
return myDone;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : IsFaceWithSection
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Boolean LocOpe_WiresOnShape::IsFaceWithSection(const TopoDS_Shape& aFace) const
|
||||
{
|
||||
|
||||
@@ -1229,10 +1229,7 @@ Standard_Boolean BRepBlend_RstRstLineBuilder::Recadre1(Blend_RstRstFunction&
|
||||
return Standard_False;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : Recadre2
|
||||
// purpose : Contact lost on Rst2
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
Standard_Boolean BRepBlend_RstRstLineBuilder::Recadre2(Blend_RstRstFunction& Func,
|
||||
Blend_SurfCurvFuncInv& Finv,
|
||||
|
||||
@@ -16,20 +16,14 @@
|
||||
|
||||
#include <StdFail_NotDone.hxx>
|
||||
|
||||
//=======================================================================
|
||||
// function : IsDone
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Boolean BRepBlend_RstRstLineBuilder::IsDone() const
|
||||
{
|
||||
return done;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : Line
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline const Handle(BRepBlend_Line)& BRepBlend_RstRstLineBuilder::Line() const
|
||||
{
|
||||
@@ -40,10 +34,7 @@ inline const Handle(BRepBlend_Line)& BRepBlend_RstRstLineBuilder::Line() const
|
||||
return line;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : Decroch1Start
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Boolean BRepBlend_RstRstLineBuilder::Decroch1Start() const
|
||||
{
|
||||
@@ -53,10 +44,7 @@ inline Standard_Boolean BRepBlend_RstRstLineBuilder::Decroch1Start() const
|
||||
return Standard_False;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : Decroch1End
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Boolean BRepBlend_RstRstLineBuilder::Decroch1End() const
|
||||
{
|
||||
@@ -66,10 +54,7 @@ inline Standard_Boolean BRepBlend_RstRstLineBuilder::Decroch1End() const
|
||||
return Standard_False;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : Decroch2Start
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Boolean BRepBlend_RstRstLineBuilder::Decroch2Start() const
|
||||
{
|
||||
@@ -79,10 +64,7 @@ inline Standard_Boolean BRepBlend_RstRstLineBuilder::Decroch2Start() const
|
||||
return Standard_False;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : Decroch2End
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Boolean BRepBlend_RstRstLineBuilder::Decroch2End() const
|
||||
{
|
||||
|
||||
@@ -16,20 +16,14 @@
|
||||
|
||||
#include <StdFail_NotDone.hxx>
|
||||
|
||||
//=======================================================================
|
||||
// function : IsDone
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Boolean BRepBlend_SurfRstLineBuilder::IsDone() const
|
||||
{
|
||||
return done;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : Line
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline const Handle(BRepBlend_Line)& BRepBlend_SurfRstLineBuilder::Line() const
|
||||
{
|
||||
@@ -40,20 +34,14 @@ inline const Handle(BRepBlend_Line)& BRepBlend_SurfRstLineBuilder::Line() const
|
||||
return line;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : DecrochStart
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Boolean BRepBlend_SurfRstLineBuilder::DecrochStart() const
|
||||
{
|
||||
return decrochdeb;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : DecrochEnd
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Boolean BRepBlend_SurfRstLineBuilder::DecrochEnd() const
|
||||
{
|
||||
|
||||
@@ -14,80 +14,56 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
//=======================================================================
|
||||
// function : IsModified
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Boolean BRepFilletAPI_MakeFillet2d::IsModified(const TopoDS_Edge& E) const
|
||||
{
|
||||
return myMakeChFi2d.IsModified(E);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : FilletEdges
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline const TopTools_SequenceOfShape& BRepFilletAPI_MakeFillet2d::FilletEdges() const
|
||||
{
|
||||
return myMakeChFi2d.FilletEdges();
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : NbFillet
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Integer BRepFilletAPI_MakeFillet2d::NbFillet() const
|
||||
{
|
||||
return myMakeChFi2d.NbFillet();
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : ChamferEdges
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline const TopTools_SequenceOfShape& BRepFilletAPI_MakeFillet2d::ChamferEdges() const
|
||||
{
|
||||
return myMakeChFi2d.ChamferEdges();
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : NbChamfer
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Integer BRepFilletAPI_MakeFillet2d::NbChamfer() const
|
||||
{
|
||||
return myMakeChFi2d.NbChamfer();
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : HasDescendant
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Boolean BRepFilletAPI_MakeFillet2d::HasDescendant(const TopoDS_Edge& E) const
|
||||
{
|
||||
return myMakeChFi2d.HasDescendant(E);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : DescendantEdge
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline const TopoDS_Edge& BRepFilletAPI_MakeFillet2d::DescendantEdge(const TopoDS_Edge& E) const
|
||||
{
|
||||
return myMakeChFi2d.DescendantEdge(E);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : Status
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline ChFi2d_ConstructionError BRepFilletAPI_MakeFillet2d::Status() const
|
||||
{
|
||||
|
||||
@@ -21,10 +21,7 @@
|
||||
#include <TopoDS_Wire.hxx>
|
||||
#include <TopoDS_Face.hxx>
|
||||
|
||||
//=======================================================================
|
||||
// function : Result
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline TopoDS_Face ChFi2d_Builder::Result() const
|
||||
{
|
||||
@@ -33,80 +30,56 @@ inline TopoDS_Face ChFi2d_Builder::Result() const
|
||||
return aFace;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : IsModified
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Boolean ChFi2d_Builder::IsModified(const TopoDS_Edge& E) const
|
||||
{
|
||||
return history.IsBound(E);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : FilletEdges
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline const TopTools_SequenceOfShape& ChFi2d_Builder::FilletEdges() const
|
||||
{
|
||||
return fillets;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : ChamferEdges
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline const TopTools_SequenceOfShape& ChFi2d_Builder::ChamferEdges() const
|
||||
{
|
||||
return chamfers;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : NbFillet
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Integer ChFi2d_Builder::NbFillet() const
|
||||
{
|
||||
return fillets.Length();
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : NbChamfer
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Integer ChFi2d_Builder::NbChamfer() const
|
||||
{
|
||||
return chamfers.Length();
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : HasDescendant
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Boolean ChFi2d_Builder::HasDescendant(const TopoDS_Edge& E) const
|
||||
{
|
||||
return history.IsBound(E);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : DescendantEdge
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline const TopoDS_Edge& ChFi2d_Builder::DescendantEdge(const TopoDS_Edge& E) const
|
||||
{
|
||||
return TopoDS::Edge(history.Find(E));
|
||||
} // DescendantEdge
|
||||
|
||||
//=======================================================================
|
||||
// function : Status
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline ChFi2d_ConstructionError ChFi2d_Builder::Status() const
|
||||
{
|
||||
|
||||
@@ -14,10 +14,7 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
//=======================================================================
|
||||
// function : SetInterference
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void ChFiDS_FaceInterference::SetInterference(const Standard_Integer LineIndex,
|
||||
const TopAbs_Orientation Trans,
|
||||
@@ -30,110 +27,77 @@ inline void ChFiDS_FaceInterference::SetInterference(const Standard_Integer
|
||||
pCurveOnSurf = PCurv2;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : SetLineIndex
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void ChFiDS_FaceInterference::SetLineIndex(const Standard_Integer I)
|
||||
{
|
||||
lineindex = I;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : SetFirstParameter
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void ChFiDS_FaceInterference::SetFirstParameter(const Standard_Real U1)
|
||||
{
|
||||
firstParam = U1;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : SetLastParameter
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void ChFiDS_FaceInterference::SetLastParameter(const Standard_Real U1)
|
||||
{
|
||||
lastParam = U1;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : LineIndex
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Integer ChFiDS_FaceInterference::LineIndex() const
|
||||
{
|
||||
return lineindex;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : Transition
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline TopAbs_Orientation ChFiDS_FaceInterference::Transition() const
|
||||
{
|
||||
return LineTransition;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : PCurveOnFace
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline const Handle(Geom2d_Curve)& ChFiDS_FaceInterference::PCurveOnFace() const
|
||||
{
|
||||
return pCurveOnFace;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : PCurveOnSurf
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline const Handle(Geom2d_Curve)& ChFiDS_FaceInterference::PCurveOnSurf() const
|
||||
{
|
||||
return pCurveOnSurf;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : ChangePCurveOnFace
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Handle(Geom2d_Curve)& ChFiDS_FaceInterference::ChangePCurveOnFace()
|
||||
{
|
||||
return pCurveOnFace;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : ChangePCurveOnSurf
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Handle(Geom2d_Curve)& ChFiDS_FaceInterference::ChangePCurveOnSurf()
|
||||
{
|
||||
return pCurveOnSurf;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : FirstParameter
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Real ChFiDS_FaceInterference::FirstParameter() const
|
||||
{
|
||||
return firstParam;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : LastParameter
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Real ChFiDS_FaceInterference::LastParameter() const
|
||||
{
|
||||
|
||||
@@ -16,70 +16,49 @@
|
||||
|
||||
#include <TopoDS.hxx>
|
||||
|
||||
//=======================================================================
|
||||
// function : SetTypeOfConcavity
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void ChFiDS_Spine::SetTypeOfConcavity(const ChFiDS_TypeOfConcavity theType)
|
||||
{
|
||||
myTypeOfConcavity = theType;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : SetFirstStatus
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void ChFiDS_Spine::SetFirstStatus(const ChFiDS_State S)
|
||||
{
|
||||
firstState = S;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : SetLastStatus
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void ChFiDS_Spine::SetLastStatus(const ChFiDS_State S)
|
||||
{
|
||||
lastState = S;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : GetTypeOfConcavity
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline ChFiDS_TypeOfConcavity ChFiDS_Spine::GetTypeOfConcavity() const
|
||||
{
|
||||
return myTypeOfConcavity;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : FirstStatus
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline ChFiDS_State ChFiDS_Spine::FirstStatus() const
|
||||
{
|
||||
return firstState;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : LastStatus
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline ChFiDS_State ChFiDS_Spine::LastStatus() const
|
||||
{
|
||||
return lastState;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : SetStatus
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void ChFiDS_Spine::SetStatus(const ChFiDS_State S, const Standard_Boolean IsFirst)
|
||||
{
|
||||
@@ -89,10 +68,7 @@ inline void ChFiDS_Spine::SetStatus(const ChFiDS_State S, const Standard_Boolean
|
||||
lastState = S;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : Status
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline ChFiDS_State ChFiDS_Spine::Status(const Standard_Boolean IsFirst) const
|
||||
{
|
||||
@@ -102,10 +78,7 @@ inline ChFiDS_State ChFiDS_Spine::Status(const Standard_Boolean IsFirst) const
|
||||
return lastState;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : SetTangencyExtremity
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void ChFiDS_Spine::SetTangencyExtremity(const Standard_Boolean IsTangency,
|
||||
const Standard_Boolean IsFirst)
|
||||
@@ -116,10 +89,7 @@ inline void ChFiDS_Spine::SetTangencyExtremity(const Standard_Boolean IsTangency
|
||||
lastistgt = IsTangency;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : IsTangencyExtremity
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Boolean ChFiDS_Spine::IsTangencyExtremity(const Standard_Boolean IsFirst) const
|
||||
{
|
||||
@@ -129,89 +99,63 @@ inline Standard_Boolean ChFiDS_Spine::IsTangencyExtremity(const Standard_Boolean
|
||||
return lastistgt;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : NbEdges
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Integer ChFiDS_Spine::NbEdges() const
|
||||
{
|
||||
return spine.Length();
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : Edges
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline const TopoDS_Edge& ChFiDS_Spine::Edges(const Standard_Integer I) const
|
||||
{
|
||||
return TopoDS::Edge(spine.Value(I));
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : OffsetEdges
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline const TopoDS_Edge& ChFiDS_Spine::OffsetEdges(const Standard_Integer I) const
|
||||
{
|
||||
return TopoDS::Edge(offsetspine.Value(I));
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : SetEdges
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void ChFiDS_Spine::SetEdges(const TopoDS_Edge& E)
|
||||
{
|
||||
spine.Append(E);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : SetOffsetEdges
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void ChFiDS_Spine::SetOffsetEdges(const TopoDS_Edge& E)
|
||||
{
|
||||
offsetspine.Append(E);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : PutInFirst
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void ChFiDS_Spine::PutInFirst(const TopoDS_Edge& E)
|
||||
{
|
||||
spine.InsertBefore(1, E);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : PutInFirstOffset
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void ChFiDS_Spine::PutInFirstOffset(const TopoDS_Edge& E)
|
||||
{
|
||||
offsetspine.InsertBefore(1, E);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : CurrentIndexOfElementarySpine
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Integer ChFiDS_Spine::CurrentIndexOfElementarySpine() const
|
||||
{
|
||||
return indexofcurve;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : Mode
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline ChFiDS_ChamfMode ChFiDS_Spine::Mode() const
|
||||
{
|
||||
@@ -219,10 +163,8 @@ inline ChFiDS_ChamfMode ChFiDS_Spine::Mode() const
|
||||
return myMode;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : GetTolesp
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Real ChFiDS_Spine::GetTolesp() const
|
||||
{
|
||||
return tolesp;
|
||||
|
||||
@@ -14,110 +14,77 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
//=======================================================================
|
||||
// function : SetOfSurfData
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline const Handle(ChFiDS_HData)& ChFiDS_Stripe::SetOfSurfData() const
|
||||
{
|
||||
return myHdata;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : Spine
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline const Handle(ChFiDS_Spine)& ChFiDS_Stripe::Spine() const
|
||||
{
|
||||
return mySpine;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : OrientationOnFace1
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline TopAbs_Orientation ChFiDS_Stripe::OrientationOnFace1() const
|
||||
{
|
||||
return myOr1;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : OrientationOnFace2
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline TopAbs_Orientation ChFiDS_Stripe::OrientationOnFace2() const
|
||||
{
|
||||
return myOr2;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : Choix
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Integer ChFiDS_Stripe::Choix() const
|
||||
{
|
||||
return myChoix;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : ChangeSetOfSurfData
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Handle(ChFiDS_HData)& ChFiDS_Stripe::ChangeSetOfSurfData()
|
||||
{
|
||||
return myHdata;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : ChangeSpine
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Handle(ChFiDS_Spine)& ChFiDS_Stripe::ChangeSpine()
|
||||
{
|
||||
return mySpine;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : OrientationOnFace1
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void ChFiDS_Stripe::OrientationOnFace1(const TopAbs_Orientation Or1)
|
||||
{
|
||||
myOr1 = Or1;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : OrientationOnFace2
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void ChFiDS_Stripe::OrientationOnFace2(const TopAbs_Orientation Or2)
|
||||
{
|
||||
myOr2 = Or2;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : Choix
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void ChFiDS_Stripe::Choix(const Standard_Integer C)
|
||||
{
|
||||
myChoix = C;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : FirstParameters
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void ChFiDS_Stripe::FirstParameters(Standard_Real& Pdeb, Standard_Real& Pfin) const
|
||||
{
|
||||
@@ -125,10 +92,7 @@ inline void ChFiDS_Stripe::FirstParameters(Standard_Real& Pdeb, Standard_Real& P
|
||||
Pfin = parfin1;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : lastParameters
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void ChFiDS_Stripe::LastParameters(Standard_Real& Pdeb, Standard_Real& Pfin) const
|
||||
{
|
||||
@@ -136,10 +100,7 @@ inline void ChFiDS_Stripe::LastParameters(Standard_Real& Pdeb, Standard_Real& Pf
|
||||
Pfin = parfin2;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : ChangeFirstParameters
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void ChFiDS_Stripe::ChangeFirstParameters(const Standard_Real Pdeb, const Standard_Real Pfin)
|
||||
{
|
||||
@@ -147,10 +108,7 @@ inline void ChFiDS_Stripe::ChangeFirstParameters(const Standard_Real Pdeb, const
|
||||
parfin1 = Pfin;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : ChangeLastParameters
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void ChFiDS_Stripe::ChangeLastParameters(const Standard_Real Pdeb, const Standard_Real Pfin)
|
||||
{
|
||||
@@ -158,200 +116,140 @@ inline void ChFiDS_Stripe::ChangeLastParameters(const Standard_Real Pdeb, const
|
||||
parfin2 = Pfin;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : FirstCurve
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Integer ChFiDS_Stripe::FirstCurve() const
|
||||
{
|
||||
return indexOfcurve1;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : LastCurve
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Integer ChFiDS_Stripe::LastCurve() const
|
||||
{
|
||||
return indexOfcurve2;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : ChangeFirstCurve
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void ChFiDS_Stripe::ChangeFirstCurve(const Standard_Integer Index)
|
||||
{
|
||||
indexOfcurve1 = Index;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : ChangeLastCurve
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void ChFiDS_Stripe::ChangeLastCurve(const Standard_Integer Index)
|
||||
{
|
||||
indexOfcurve2 = Index;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : FirstPCurve
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline const Handle(Geom2d_Curve)& ChFiDS_Stripe::FirstPCurve() const
|
||||
{
|
||||
return pcrv1;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : LastPCurve
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline const Handle(Geom2d_Curve)& ChFiDS_Stripe::LastPCurve() const
|
||||
{
|
||||
return pcrv2;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : ChangeFirstPCurve
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Handle(Geom2d_Curve)& ChFiDS_Stripe::ChangeFirstPCurve()
|
||||
{
|
||||
return pcrv1;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : ChangeLastPCurve
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Handle(Geom2d_Curve)& ChFiDS_Stripe::ChangeLastPCurve()
|
||||
{
|
||||
return pcrv2;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : IndexFirstPointOnS1
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Integer ChFiDS_Stripe::IndexFirstPointOnS1() const
|
||||
{
|
||||
return indexfirstPOnS1;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : IndexLastPointOnS1
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Integer ChFiDS_Stripe::IndexLastPointOnS1() const
|
||||
{
|
||||
return indexlastPOnS1;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : IndexFirstPointOnS2
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Integer ChFiDS_Stripe::IndexFirstPointOnS2() const
|
||||
{
|
||||
return indexfirstPOnS2;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : IndexLastPointOnS2
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Integer ChFiDS_Stripe::IndexLastPointOnS2() const
|
||||
{
|
||||
return indexlastPOnS2;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : ChangeIndexFirstPointOnS1
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void ChFiDS_Stripe::ChangeIndexFirstPointOnS1(const Standard_Integer Index)
|
||||
{
|
||||
indexfirstPOnS1 = Index;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : ChangeIndexLastPointOnS1
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void ChFiDS_Stripe::ChangeIndexLastPointOnS1(const Standard_Integer Index)
|
||||
{
|
||||
indexlastPOnS1 = Index;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : ChangeIndexFirstPointOnS2
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void ChFiDS_Stripe::ChangeIndexFirstPointOnS2(const Standard_Integer Index)
|
||||
{
|
||||
indexfirstPOnS2 = Index;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : ChangeIndexLastPointOnS2
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void ChFiDS_Stripe::ChangeIndexLastPointOnS2(const Standard_Integer Index)
|
||||
{
|
||||
indexlastPOnS2 = Index;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : FirstPCurveOrientation
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline TopAbs_Orientation ChFiDS_Stripe::FirstPCurveOrientation() const
|
||||
{
|
||||
return orcurv1;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : LastPCurveOrientation
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline TopAbs_Orientation ChFiDS_Stripe::LastPCurveOrientation() const
|
||||
{
|
||||
return orcurv2;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : FirstPCurveOrientation
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void ChFiDS_Stripe::FirstPCurveOrientation(const TopAbs_Orientation O)
|
||||
{
|
||||
orcurv1 = O;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : LastPCurveOrientation
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void ChFiDS_Stripe::LastPCurveOrientation(const TopAbs_Orientation O)
|
||||
{
|
||||
|
||||
@@ -14,20 +14,14 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
//=======================================================================
|
||||
// function : Extent
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Integer ChFiDS_StripeMap::Extent() const
|
||||
{
|
||||
return mymap.Extent();
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : FindKey
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline const TopoDS_Vertex& ChFiDS_StripeMap::FindKey(const Standard_Integer I) const
|
||||
{
|
||||
|
||||
@@ -14,30 +14,21 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
//=======================================================================
|
||||
// function : IndexOfS1
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Integer ChFiDS_SurfData::IndexOfS1() const
|
||||
{
|
||||
return indexOfS1;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : IsOnCurve1
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Boolean ChFiDS_SurfData::IsOnCurve1() const
|
||||
{
|
||||
return isoncurv1;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : IndexOfC1
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Integer ChFiDS_SurfData::IndexOfC1() const
|
||||
{
|
||||
@@ -46,10 +37,7 @@ inline Standard_Integer ChFiDS_SurfData::IndexOfC1() const
|
||||
return indexOfC1;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : SetIndexOfC1
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void ChFiDS_SurfData::SetIndexOfC1(const Standard_Integer theIndex)
|
||||
{
|
||||
@@ -57,30 +45,21 @@ inline void ChFiDS_SurfData::SetIndexOfC1(const Standard_Integer theIndex)
|
||||
isoncurv1 = (theIndex != 0);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : IndexOfS2
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Integer ChFiDS_SurfData::IndexOfS2() const
|
||||
{
|
||||
return indexOfS2;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : IsOnCurve2
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Boolean ChFiDS_SurfData::IsOnCurve2() const
|
||||
{
|
||||
return isoncurv2;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : IndexOfC2
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Integer ChFiDS_SurfData::IndexOfC2() const
|
||||
{
|
||||
@@ -89,10 +68,7 @@ inline Standard_Integer ChFiDS_SurfData::IndexOfC2() const
|
||||
return indexOfC2;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : SetIndexOfC2
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void ChFiDS_SurfData::SetIndexOfC2(const Standard_Integer theIndex)
|
||||
{
|
||||
@@ -100,190 +76,133 @@ inline void ChFiDS_SurfData::SetIndexOfC2(const Standard_Integer theIndex)
|
||||
isoncurv2 = (theIndex != 0);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : Surf
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Integer ChFiDS_SurfData::Surf() const
|
||||
{
|
||||
return indexOfConge;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : Orientation
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline TopAbs_Orientation ChFiDS_SurfData::Orientation() const
|
||||
{
|
||||
return orientation;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : InterferenceOnS1
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline const ChFiDS_FaceInterference& ChFiDS_SurfData::InterferenceOnS1() const
|
||||
{
|
||||
return intf1;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : InterferenceOnS2
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline const ChFiDS_FaceInterference& ChFiDS_SurfData::InterferenceOnS2() const
|
||||
{
|
||||
return intf2;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : VertexFirstOnS1
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline const ChFiDS_CommonPoint& ChFiDS_SurfData::VertexFirstOnS1() const
|
||||
{
|
||||
return pfirstOnS1;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : VertexLastOnS1
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline const ChFiDS_CommonPoint& ChFiDS_SurfData::VertexLastOnS1() const
|
||||
{
|
||||
return plastOnS1;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : VertexFirstOnS2
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline const ChFiDS_CommonPoint& ChFiDS_SurfData::VertexFirstOnS2() const
|
||||
{
|
||||
return pfirstOnS2;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : VertexLastOnS2
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline const ChFiDS_CommonPoint& ChFiDS_SurfData::VertexLastOnS2() const
|
||||
{
|
||||
return plastOnS2;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : ChangeIndexOfS1
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void ChFiDS_SurfData::ChangeIndexOfS1(const Standard_Integer Index)
|
||||
{
|
||||
indexOfS1 = Index;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : ChangeIndexOfS2
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void ChFiDS_SurfData::ChangeIndexOfS2(const Standard_Integer Index)
|
||||
{
|
||||
indexOfS2 = Index;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : ChangeSurf
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void ChFiDS_SurfData::ChangeSurf(const Standard_Integer Index)
|
||||
{
|
||||
indexOfConge = Index;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : ChangeOrientation
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline TopAbs_Orientation& ChFiDS_SurfData::ChangeOrientation()
|
||||
{
|
||||
return orientation;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : ChangeInterferenceOnS1
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline ChFiDS_FaceInterference& ChFiDS_SurfData::ChangeInterferenceOnS1()
|
||||
{
|
||||
return intf1;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : ChangeInterferenceOnS2
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline ChFiDS_FaceInterference& ChFiDS_SurfData::ChangeInterferenceOnS2()
|
||||
{
|
||||
return intf2;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : ChangeVertexFirstOnS1
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline ChFiDS_CommonPoint& ChFiDS_SurfData::ChangeVertexFirstOnS1()
|
||||
{
|
||||
return pfirstOnS1;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : ChangeVertexLastOnS1
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline ChFiDS_CommonPoint& ChFiDS_SurfData::ChangeVertexLastOnS1()
|
||||
{
|
||||
return plastOnS1;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : ChangeVertexFirstOnS2
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline ChFiDS_CommonPoint& ChFiDS_SurfData::ChangeVertexFirstOnS2()
|
||||
{
|
||||
return pfirstOnS2;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : ChangeVertexLastOnS2
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline ChFiDS_CommonPoint& ChFiDS_SurfData::ChangeVertexLastOnS2()
|
||||
{
|
||||
return plastOnS2;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : IsOnCurve
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Boolean ChFiDS_SurfData::IsOnCurve(const Standard_Integer OnS) const
|
||||
{
|
||||
@@ -292,10 +211,7 @@ inline Standard_Boolean ChFiDS_SurfData::IsOnCurve(const Standard_Integer OnS) c
|
||||
return isoncurv2;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : IndexOfC
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Integer ChFiDS_SurfData::IndexOfC(const Standard_Integer OnS) const
|
||||
{
|
||||
@@ -310,10 +226,7 @@ inline Standard_Integer ChFiDS_SurfData::IndexOfC(const Standard_Integer OnS) co
|
||||
return indexOfC2;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : Twist
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Boolean ChFiDS_SurfData::TwistOnS1() const
|
||||
{
|
||||
|
||||
@@ -44,10 +44,8 @@ Standard_EXPORT Standard_Boolean AppBlend_GetContextApproxWithNoTgt();
|
||||
// --- keep pipe parametrized like path
|
||||
|
||||
|
||||
//=======================================================================
|
||||
//function : AppBlend_AppSurf
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
|
||||
AppBlend_AppSurf::AppBlend_AppSurf ()
|
||||
: done(Standard_False),
|
||||
@@ -70,10 +68,8 @@ AppBlend_AppSurf::AppBlend_AppSurf ()
|
||||
}
|
||||
|
||||
|
||||
//=======================================================================
|
||||
//function : AppBlend_AppSurf
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
|
||||
AppBlend_AppSurf::AppBlend_AppSurf (const Standard_Integer Degmin,
|
||||
const Standard_Integer Degmax,
|
||||
@@ -100,10 +96,8 @@ AppBlend_AppSurf::AppBlend_AppSurf (const Standard_Integer Degmin,
|
||||
critweights[2]=0.4;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Init
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
|
||||
void AppBlend_AppSurf::Init (const Standard_Integer Degmin,
|
||||
const Standard_Integer Degmax,
|
||||
@@ -138,10 +132,8 @@ void AppBlend_AppSurf::CriteriumWeight(Standard_Real& W1, Standard_Real& W2, Sta
|
||||
W2 = critweights[1];
|
||||
W3 = critweights[2] ;
|
||||
}
|
||||
//=======================================================================
|
||||
//function : SetCriteriumWeight
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
|
||||
void AppBlend_AppSurf::SetCriteriumWeight(const Standard_Real W1, const Standard_Real W2, const Standard_Real W3)
|
||||
{
|
||||
@@ -150,40 +142,32 @@ void AppBlend_AppSurf::SetCriteriumWeight(const Standard_Real W1, const Standard
|
||||
critweights[1] = W2;
|
||||
critweights[2] = W3;
|
||||
}
|
||||
//=======================================================================
|
||||
//function : SetContinuity
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
|
||||
void AppBlend_AppSurf::SetContinuity (const GeomAbs_Shape TheCont)
|
||||
{
|
||||
continuity = TheCont;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Continuity
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
|
||||
GeomAbs_Shape AppBlend_AppSurf::Continuity () const
|
||||
{
|
||||
return continuity;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : SetParType
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
|
||||
void AppBlend_AppSurf::SetParType (const Approx_ParametrizationType ParType)
|
||||
{
|
||||
paramtype = ParType;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : ParType
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
|
||||
Approx_ParametrizationType AppBlend_AppSurf::ParType () const
|
||||
{
|
||||
@@ -191,10 +175,8 @@ Approx_ParametrizationType AppBlend_AppSurf::ParType () const
|
||||
}
|
||||
|
||||
|
||||
//=======================================================================
|
||||
//function : Perform
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
|
||||
void AppBlend_AppSurf::Perform(const Handle(TheLine)& Lin,
|
||||
TheSectionGenerator& F,
|
||||
@@ -204,10 +186,8 @@ void AppBlend_AppSurf::Perform(const Handle(TheLine)& Lin,
|
||||
InternalPerform(Lin, F, SpApprox, Standard_False);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : PerformSmoothing
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
|
||||
void AppBlend_AppSurf::PerformSmoothing(const Handle(TheLine)& Lin,
|
||||
TheSectionGenerator& F)
|
||||
@@ -216,10 +196,8 @@ void AppBlend_AppSurf::PerformSmoothing(const Handle(TheLine)& Lin,
|
||||
InternalPerform(Lin, F, Standard_True, Standard_True);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : InternalPerform
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
|
||||
void AppBlend_AppSurf::InternalPerform(const Handle(TheLine)& Lin,
|
||||
TheSectionGenerator& F,
|
||||
@@ -583,10 +561,8 @@ void AppBlend_AppSurf::InternalPerform(const Handle(TheLine)& Lin,
|
||||
}
|
||||
|
||||
|
||||
//=======================================================================
|
||||
//function : Perform
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
|
||||
void AppBlend_AppSurf::Perform(const Handle(TheLine)& Lin,
|
||||
TheSectionGenerator& F,
|
||||
@@ -929,10 +905,8 @@ void AppBlend_AppSurf::Perform(const Handle(TheLine)& Lin,
|
||||
}
|
||||
|
||||
|
||||
//=======================================================================
|
||||
//function : SurfShape
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
|
||||
void AppBlend_AppSurf::SurfShape (Standard_Integer& UDegree,
|
||||
Standard_Integer& VDegree,
|
||||
@@ -968,10 +942,8 @@ void AppBlend_AppSurf::Surface(TColgp_Array2OfPnt& TPoles,
|
||||
TVMults = tabVMults->Array1();
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Curves2dShape
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
|
||||
void AppBlend_AppSurf::Curves2dShape(Standard_Integer& Degree,
|
||||
Standard_Integer& NbPoles,
|
||||
@@ -984,10 +956,8 @@ void AppBlend_AppSurf::Curves2dShape(Standard_Integer& Degree,
|
||||
NbKnots = tabVKnots->Length();
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Curve2d
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
|
||||
void AppBlend_AppSurf::Curve2d(const Standard_Integer Index,
|
||||
TColgp_Array1OfPnt2d& TPoles,
|
||||
@@ -1001,10 +971,8 @@ void AppBlend_AppSurf::Curve2d(const Standard_Integer Index,
|
||||
TMults = tabVMults->Array1();
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : TolCurveOnSurf
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
|
||||
Standard_Real AppBlend_AppSurf::TolCurveOnSurf(const Standard_Integer) const
|
||||
{
|
||||
|
||||
@@ -27,10 +27,8 @@
|
||||
#include <DrawTrSurf.hxx>
|
||||
#endif
|
||||
|
||||
//=======================================================================
|
||||
//function : Constructor
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
ApproxInt_MultiLine::ApproxInt_MultiLine()
|
||||
{
|
||||
PtrOnmySvSurfaces = NULL;
|
||||
@@ -51,10 +49,8 @@ ApproxInt_MultiLine::ApproxInt_MultiLine()
|
||||
V2o = 0.;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Constructor
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
ApproxInt_MultiLine::
|
||||
ApproxInt_MultiLine(const Handle_TheLine& line,
|
||||
const Standard_Address svsurf,
|
||||
@@ -92,10 +88,8 @@ ApproxInt_MultiLine::
|
||||
#endif
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Constructor
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
ApproxInt_MultiLine::
|
||||
ApproxInt_MultiLine(const Handle_TheLine& line,
|
||||
const Standard_Integer NbP3d,
|
||||
@@ -162,10 +156,8 @@ void ApproxInt_MultiLine::Value(const Standard_Integer Index,
|
||||
TabPnt(1).SetCoord(aP.X()+Xo, aP.Y()+Yo, aP.Z()+Zo);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Value
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void ApproxInt_MultiLine::Value(const Standard_Integer Index,
|
||||
TColgp_Array1OfPnt2d& TabPnt2d) const
|
||||
{
|
||||
@@ -193,10 +185,8 @@ void ApproxInt_MultiLine::Value(const Standard_Integer Index,
|
||||
}
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Value
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void ApproxInt_MultiLine::Value(const Standard_Integer Index,
|
||||
TColgp_Array1OfPnt& TabPnt,
|
||||
TColgp_Array1OfPnt2d& TabPnt2d) const
|
||||
@@ -205,10 +195,8 @@ void ApproxInt_MultiLine::Value(const Standard_Integer Index,
|
||||
Value(Index, TabPnt2d);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Tangency
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
Standard_Boolean ApproxInt_MultiLine::Tangency( const Standard_Integer Index,
|
||||
TColgp_Array1OfVec& TabVec) const
|
||||
{
|
||||
@@ -229,10 +217,8 @@ Standard_Boolean ApproxInt_MultiLine::Tangency( const Standard_Integer Index,
|
||||
return ret;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Tangency
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
Standard_Boolean ApproxInt_MultiLine::Tangency( const Standard_Integer Index,
|
||||
TColgp_Array1OfVec2d& TabVec2d) const
|
||||
{
|
||||
@@ -282,10 +268,8 @@ Standard_Boolean ApproxInt_MultiLine::Tangency( const Standard_Integer Index,
|
||||
return ret;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Tangency
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
Standard_Boolean ApproxInt_MultiLine::Tangency( const Standard_Integer Index,
|
||||
TColgp_Array1OfVec& TabVec,
|
||||
TColgp_Array1OfVec2d& TabVec2d) const
|
||||
@@ -293,10 +277,8 @@ Standard_Boolean ApproxInt_MultiLine::Tangency( const Standard_Integer Index,
|
||||
return (Tangency(Index, TabVec) && Tangency(Index, TabVec2d));
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : MakeMLBetween
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
ApproxInt_MultiLine
|
||||
ApproxInt_MultiLine::MakeMLBetween( const Standard_Integer Low,
|
||||
const Standard_Integer High,
|
||||
@@ -601,10 +583,8 @@ ApproxInt_MultiLine
|
||||
}
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : MakeMLOneMorePoint
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
Standard_Boolean
|
||||
ApproxInt_MultiLine::MakeMLOneMorePoint(const Standard_Integer theLow,
|
||||
const Standard_Integer theHigh,
|
||||
@@ -731,10 +711,8 @@ Standard_Boolean
|
||||
return Standard_True;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Dump
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void ApproxInt_MultiLine::Dump() const
|
||||
{
|
||||
TColgp_Array1OfPnt anArr1(1, 1);
|
||||
|
||||
@@ -14,10 +14,7 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
//=======================================================================
|
||||
// function : Extrema
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline const Extrema_ExtCC2d& Geom2dAPI_ExtremaCurveCurve::Extrema() const
|
||||
{
|
||||
|
||||
@@ -14,10 +14,7 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
//=======================================================================
|
||||
// function : Intersector
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline const Geom2dInt_GInter& Geom2dAPI_InterCurveCurve::Intersector() const
|
||||
{
|
||||
|
||||
@@ -14,10 +14,7 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
//=======================================================================
|
||||
// function : Extrema
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline const Extrema_ExtPC2d& Geom2dAPI_ProjectPointOnCurve::Extrema() const
|
||||
{
|
||||
|
||||
@@ -111,10 +111,7 @@ void Geom2dHatch_Hatcher::Confusion3d(const Standard_Real Confusion)
|
||||
}
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// Function : KeepPoints
|
||||
// Purpose : Sets the above flag.
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void Geom2dHatch_Hatcher::KeepPoints(const Standard_Boolean Keep)
|
||||
{
|
||||
@@ -129,10 +126,7 @@ void Geom2dHatch_Hatcher::KeepPoints(const Standard_Boolean Keep)
|
||||
}
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// Function : KeepSegments
|
||||
// Purpose : Sets the above flag.
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void Geom2dHatch_Hatcher::KeepSegments(const Standard_Boolean Keep)
|
||||
{
|
||||
|
||||
@@ -14,10 +14,7 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
//=======================================================================
|
||||
// Function : Geom2dHatch_Intersector
|
||||
// Purpose : Constructor.
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Geom2dHatch_Intersector::Geom2dHatch_Intersector(const Standard_Real Confusion,
|
||||
const Standard_Real Tangency)
|
||||
|
||||
@@ -14,10 +14,7 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
//=======================================================================
|
||||
// function : Extrema
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline const Extrema_ExtCC& GeomAPI_ExtremaCurveCurve::Extrema() const
|
||||
{
|
||||
|
||||
@@ -14,10 +14,7 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
//=======================================================================
|
||||
// function : Extrema
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline const Extrema_ExtCS& GeomAPI_ExtremaCurveSurface::Extrema() const
|
||||
{
|
||||
|
||||
@@ -14,10 +14,7 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
//=======================================================================
|
||||
// function : Extrema
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline const Extrema_ExtSS& GeomAPI_ExtremaSurfaceSurface::Extrema() const
|
||||
{
|
||||
|
||||
@@ -14,17 +14,11 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
//=======================================================================
|
||||
// function : GeomAPI_IntSS
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline GeomAPI_IntSS::GeomAPI_IntSS() {}
|
||||
|
||||
//=======================================================================
|
||||
// function : GeomAPI_IntSS
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline GeomAPI_IntSS::GeomAPI_IntSS(const Handle(Geom_Surface)& S1,
|
||||
const Handle(Geom_Surface)& S2,
|
||||
@@ -33,10 +27,7 @@ inline GeomAPI_IntSS::GeomAPI_IntSS(const Handle(Geom_Surface)& S1,
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : Perform
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void GeomAPI_IntSS::Perform(const Handle(Geom_Surface)& S1,
|
||||
const Handle(Geom_Surface)& S2,
|
||||
@@ -45,30 +36,21 @@ inline void GeomAPI_IntSS::Perform(const Handle(Geom_Surface)& S1,
|
||||
myIntersec.Perform(S1, S2, Tol, Standard_True);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : IsDone
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Boolean GeomAPI_IntSS::IsDone() const
|
||||
{
|
||||
return myIntersec.IsDone();
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : NbLines
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Integer GeomAPI_IntSS::NbLines() const
|
||||
{
|
||||
return myIntersec.NbLines();
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : Line
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline const Handle(Geom_Curve)& GeomAPI_IntSS::Line(const Standard_Integer I) const
|
||||
{
|
||||
|
||||
@@ -14,10 +14,7 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
//=======================================================================
|
||||
// function : Extrema
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline const Extrema_ExtPC& GeomAPI_ProjectPointOnCurve::Extrema() const
|
||||
{
|
||||
|
||||
@@ -14,10 +14,7 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
//=======================================================================
|
||||
// function : Extrema
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline const Extrema_ExtPS& GeomAPI_ProjectPointOnSurf::Extrema() const
|
||||
{
|
||||
|
||||
@@ -14,10 +14,7 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
//=======================================================================
|
||||
// function : Surface
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline const Handle(Geom_BSplineSurface)& GeomFill_BSplineCurves::Surface() const
|
||||
{
|
||||
|
||||
@@ -14,10 +14,7 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
//=======================================================================
|
||||
// function : Surface
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline const Handle(Geom_BezierSurface)& GeomFill_BezierCurves::Surface() const
|
||||
{
|
||||
|
||||
@@ -54,10 +54,8 @@ static void TracePlan(const Handle(Geom_Surface)& /*Plan*/)
|
||||
}
|
||||
#endif
|
||||
|
||||
//==================================================================
|
||||
// Function: InGoodPeriod
|
||||
// Purpose : Recadre un paramtere
|
||||
//==================================================================
|
||||
//=================================================================================================
|
||||
|
||||
static void InGoodPeriod(const Standard_Real Prec,
|
||||
const Standard_Real Period,
|
||||
Standard_Real& Current)
|
||||
|
||||
@@ -14,20 +14,14 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
//=======================================================================
|
||||
// function : NbPoints
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Integer GeomFill_Line::NbPoints() const
|
||||
{
|
||||
return myNbPoints;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : Point
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Integer GeomFill_Line::Point(const Standard_Integer Index) const
|
||||
{
|
||||
|
||||
@@ -135,10 +135,8 @@ static void TraceRevol(const Standard_Real t,
|
||||
}
|
||||
#endif
|
||||
|
||||
//==================================================================
|
||||
// Function: InGoodPeriod
|
||||
// Purpose : Recadre un paramtere
|
||||
//==================================================================
|
||||
//=================================================================================================
|
||||
|
||||
static void InGoodPeriod(const Standard_Real Prec,
|
||||
const Standard_Real Period,
|
||||
Standard_Real& Current)
|
||||
@@ -509,10 +507,8 @@ void GeomFill_LocationGuide::Set(const Handle(GeomFill_SectionLaw)& Section,
|
||||
rotation = Standard_False;
|
||||
}
|
||||
|
||||
//==================================================================
|
||||
// Function: EraseRotation
|
||||
// Purpose : Supprime la Rotation
|
||||
//==================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void GeomFill_LocationGuide::EraseRotation()
|
||||
{
|
||||
rotation = Standard_False;
|
||||
|
||||
@@ -14,59 +14,43 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
//=======================================================================
|
||||
// function : const
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline const Handle(Geom_Surface)& GeomFill_Pipe::Surface() const
|
||||
{
|
||||
return mySurface;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : ExchangeUV
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Boolean GeomFill_Pipe::ExchangeUV() const
|
||||
{
|
||||
return myExchUV;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : GenerateParticularCase
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void GeomFill_Pipe::GenerateParticularCase(const Standard_Boolean B)
|
||||
{
|
||||
myKPart = B;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : GenerateParticularCase
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Boolean GeomFill_Pipe::GenerateParticularCase() const
|
||||
{
|
||||
return myKPart;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : ErrorOnSurf
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Real GeomFill_Pipe::ErrorOnSurf() const
|
||||
{
|
||||
return myError;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : IsDone
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Boolean GeomFill_Pipe::IsDone() const
|
||||
{
|
||||
return myStatus == GeomFill_PipeOk;
|
||||
|
||||
@@ -14,20 +14,14 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
//=======================================================================
|
||||
// function : IsPeriodic
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Boolean GeomFill_Profiler::IsPeriodic() const
|
||||
{
|
||||
return myIsPeriodic;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : Curve
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline const Handle(Geom_Curve)& GeomFill_Profiler::Curve(const Standard_Integer Index) const
|
||||
{
|
||||
|
||||
@@ -14,10 +14,7 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
//=======================================================================
|
||||
// function : NbSections
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Integer GeomFill_SweepSectionGenerator::NbSections() const
|
||||
{
|
||||
|
||||
@@ -20,10 +20,8 @@
|
||||
#include <GeomAdaptor_Surface.hxx>
|
||||
#include <Extrema_ExtPS.hxx>
|
||||
|
||||
//=======================================================================
|
||||
// function : Perform
|
||||
// purpose : General intersection
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void GeomInt_IntSS::Perform(const Handle(Geom_Surface)& S1,
|
||||
const Handle(Geom_Surface)& S2,
|
||||
const Standard_Real Tol,
|
||||
|
||||
@@ -17,10 +17,8 @@
|
||||
#include <IntPatch_Point.hxx>
|
||||
#include <Geom_Surface.hxx>
|
||||
|
||||
//=======================================================================
|
||||
// function : GeomInt_IntSS
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline GeomInt_IntSS::GeomInt_IntSS()
|
||||
: myNbrestr(0),
|
||||
myTolReached2d(0.0),
|
||||
@@ -30,10 +28,8 @@ inline GeomInt_IntSS::GeomInt_IntSS()
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : GeomInt_IntSS
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline GeomInt_IntSS::GeomInt_IntSS(const Handle(Geom_Surface)& S1,
|
||||
const Handle(Geom_Surface)& S2,
|
||||
const Standard_Real Tol,
|
||||
@@ -85,65 +81,51 @@ inline void GeomInt_IntSS::Perform(const Handle(GeomAdaptor_Surface)& HS1,
|
||||
InternalPerform(Tol, Approx, ApproxS1, ApproxS2, Standard_True, U1, V1, U2, V2);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : IsDone
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Boolean GeomInt_IntSS::IsDone() const
|
||||
{
|
||||
return myIntersector.IsDone();
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : TolReached2d
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Real GeomInt_IntSS::TolReached2d() const
|
||||
{
|
||||
return myTolReached2d;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : TolReached3d
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Real GeomInt_IntSS::TolReached3d() const
|
||||
{
|
||||
return myTolReached3d;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : NbLines
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Integer GeomInt_IntSS::NbLines() const
|
||||
{
|
||||
return sline.Length() - myNbrestr;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : NbBoundaries
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Integer GeomInt_IntSS::NbBoundaries() const
|
||||
{
|
||||
StdFail_NotDone_Raise_if(!myIntersector.IsDone(), "GeomInt_IntSS::NbBoundaries() - no result");
|
||||
return myNbrestr;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : NbPoints
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Integer GeomInt_IntSS::NbPoints() const
|
||||
{
|
||||
return myIntersector.NbPnts();
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : Point
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline gp_Pnt GeomInt_IntSS::Point(const Standard_Integer Index) const
|
||||
{
|
||||
return myIntersector.Point(Index).Value();
|
||||
|
||||
@@ -16,20 +16,14 @@
|
||||
|
||||
#include <StdFail_NotDone.hxx>
|
||||
|
||||
//=======================================================================
|
||||
// function : GeomInt_LineConstructor
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline GeomInt_LineConstructor::GeomInt_LineConstructor()
|
||||
: done(Standard_False)
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : Load
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void GeomInt_LineConstructor::Load(const Handle(Adaptor3d_TopolTool)& D1,
|
||||
const Handle(Adaptor3d_TopolTool)& D2,
|
||||
@@ -42,20 +36,14 @@ inline void GeomInt_LineConstructor::Load(const Handle(Adaptor3d_TopolTool)& D1,
|
||||
myHS2 = S2;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : IsDone
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Boolean GeomInt_LineConstructor::IsDone() const
|
||||
{
|
||||
return done;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : NbParts
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Integer GeomInt_LineConstructor::NbParts() const
|
||||
{
|
||||
@@ -66,10 +54,8 @@ inline Standard_Integer GeomInt_LineConstructor::NbParts() const
|
||||
return (seqp.Length() / 2);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : Part
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void GeomInt_LineConstructor::Part(const Standard_Integer I,
|
||||
Standard_Real& WFirst,
|
||||
Standard_Real& WLast) const
|
||||
|
||||
@@ -14,20 +14,14 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
//=======================================================================
|
||||
// function : Tolerance
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void Hatch_Hatcher::Tolerance(const Standard_Real Tol)
|
||||
{
|
||||
myToler = Tol;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : Tolerance
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Real Hatch_Hatcher::Tolerance() const
|
||||
{
|
||||
|
||||
@@ -55,10 +55,7 @@ HatchGen_Domain::HatchGen_Domain(const HatchGen_PointOnHatching& P, const Standa
|
||||
}
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// Function : Dump
|
||||
// Purpose : Dump of the domain.
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void HatchGen_Domain::Dump(const Standard_Integer Index) const
|
||||
{
|
||||
|
||||
@@ -1121,19 +1121,15 @@ IntCurve_IntCurveCurveGen::InternalCompositePerform(const TheCurve& C1,
|
||||
}
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : SetMinNbSamples
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void IntCurve_IntCurveCurveGen::SetMinNbSamples(const Standard_Integer theMinNbSamples)
|
||||
{
|
||||
intcurvcurv.SetMinNbSamples(theMinNbSamples);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : GetMinNbSamples
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
Standard_Integer IntCurve_IntCurveCurveGen::GetMinNbSamples() const
|
||||
{
|
||||
return intcurvcurv.GetMinNbSamples();
|
||||
|
||||
@@ -1338,19 +1338,15 @@ void GetIntersection(const TheCurve& theC1, const Standard_Real theT1f, const St
|
||||
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : GetMinNbPoints
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
Standard_Integer IntCurve_IntPolyPolyGen::GetMinNbSamples() const
|
||||
{
|
||||
return myMinPntNb;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : SetMinNbPoints
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void IntCurve_IntPolyPolyGen::SetMinNbSamples(const Standard_Integer theMinNbSamples)
|
||||
{
|
||||
myMinPntNb = theMinNbSamples;
|
||||
|
||||
@@ -153,17 +153,13 @@ static
|
||||
Standard_Real& theVmax,
|
||||
Standard_Boolean& theNoIntersection);
|
||||
|
||||
//=======================================================================
|
||||
//function : IntCurveSurface_Inter
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
IntCurveSurface_Inter::IntCurveSurface_Inter()
|
||||
{
|
||||
}
|
||||
//=======================================================================
|
||||
//function : DoSurface
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void IntCurveSurface_Inter::DoSurface(const TheSurface& surface,
|
||||
const Standard_Real u0,
|
||||
const Standard_Real u1,
|
||||
@@ -208,10 +204,8 @@ void IntCurveSurface_Inter::DoSurface(const TheSurface& surface,
|
||||
gap = Max(Ures,Vres);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : DoNewBounds
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void IntCurveSurface_Inter::DoNewBounds(
|
||||
const TheSurface& surface,
|
||||
const Standard_Real u0,
|
||||
@@ -368,10 +362,8 @@ void IntCurveSurface_Inter::Perform(const TheCurve& curve,
|
||||
Perform(curve,surface,U0,V0,U1,V1);
|
||||
}
|
||||
}
|
||||
//=======================================================================
|
||||
//function : Perform
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void IntCurveSurface_Inter::Perform(const TheCurve& curve,
|
||||
const TheSurface& surface,
|
||||
const Standard_Real U1,const Standard_Real V1,
|
||||
@@ -466,10 +458,8 @@ void IntCurveSurface_Inter::Perform(const TheCurve& curve,
|
||||
}
|
||||
}
|
||||
}
|
||||
//=======================================================================
|
||||
//function : Perform
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void IntCurveSurface_Inter::Perform(const TheCurve& curve,
|
||||
const IntCurveSurface_ThePolygon& polygon,
|
||||
const TheSurface& surface) {
|
||||
@@ -488,10 +478,8 @@ void IntCurveSurface_Inter::Perform(const TheCurve& curve,
|
||||
IntCurveSurface_ThePolyhedron polyhedron(surface,nbsu,nbsv,u1,v1,u2,v2);
|
||||
Perform(curve,polygon,surface,polyhedron);
|
||||
}
|
||||
//=======================================================================
|
||||
//function : Perform
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void IntCurveSurface_Inter::Perform(const TheCurve& curve,
|
||||
const TheSurface& surface,
|
||||
const IntCurveSurface_ThePolyhedron& polyhedron) {
|
||||
@@ -502,10 +490,8 @@ void IntCurveSurface_Inter::Perform(const TheCurve& curve,
|
||||
IntCurveSurface_ThePolygon polygon(curve,TheCurveTool::NbSamples(curve,u1,u2));
|
||||
Perform(curve,polygon,surface,polyhedron);
|
||||
}
|
||||
//=======================================================================
|
||||
//function : Perform
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void IntCurveSurface_Inter::Perform(const TheCurve& curve,
|
||||
const IntCurveSurface_ThePolygon& polygon,
|
||||
const TheSurface& surface,
|
||||
@@ -520,10 +506,8 @@ void IntCurveSurface_Inter::Perform(const TheCurve& curve,
|
||||
InternalPerform(curve,polygon,surface,polyhedron,u1,v1,u2,v2);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Perform
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void IntCurveSurface_Inter::Perform(const TheCurve& curve,
|
||||
const IntCurveSurface_ThePolygon& polygon,
|
||||
const TheSurface& surface,
|
||||
@@ -684,10 +668,8 @@ void IntCurveSurface_Inter::InternalPerform(const TheCurve& curve,
|
||||
}
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : InternalPerform
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void IntCurveSurface_Inter::InternalPerform(const TheCurve& curve,
|
||||
const IntCurveSurface_ThePolygon& polygon,
|
||||
const TheSurface& surface,
|
||||
@@ -827,10 +809,8 @@ void IntCurveSurface_Inter::InternalPerform(const TheCurve& curve,
|
||||
delete [] TabU;
|
||||
}
|
||||
}
|
||||
//=======================================================================
|
||||
//function : InternalPerformCurveQuadric
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void IntCurveSurface_Inter::InternalPerformCurveQuadric(const TheCurve& curve,
|
||||
const TheSurface& surface) {
|
||||
IntCurveSurface_TheQuadCurvExactInter QuadCurv(surface,curve);
|
||||
@@ -846,10 +826,8 @@ void IntCurveSurface_Inter::InternalPerformCurveQuadric(const TheCurve&
|
||||
}
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : InternalPerform
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void IntCurveSurface_Inter::InternalPerform(const TheCurve& curve,
|
||||
const IntCurveSurface_ThePolygon& polygon,
|
||||
const TheSurface& surface,
|
||||
@@ -902,10 +880,8 @@ void IntCurveSurface_Inter::InternalPerform(const TheCurve& curve,
|
||||
}
|
||||
} //-- Fin : la Surface est une quadrique
|
||||
}
|
||||
//=======================================================================
|
||||
//function : PerformConicSurf
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void IntCurveSurface_Inter::PerformConicSurf(const gp_Lin& Line,
|
||||
const TheCurve& curve,
|
||||
const TheSurface& surface,
|
||||
@@ -1034,10 +1010,8 @@ void IntCurveSurface_Inter::PerformConicSurf(const gp_Lin& Line,
|
||||
}
|
||||
}
|
||||
}
|
||||
//=======================================================================
|
||||
//function : PerformConicSurf
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void IntCurveSurface_Inter::PerformConicSurf(const gp_Circ& Circle,
|
||||
const TheCurve& curve,
|
||||
const TheSurface& surface,
|
||||
@@ -1079,10 +1053,8 @@ void IntCurveSurface_Inter::PerformConicSurf(const gp_Circ& Circle,
|
||||
}
|
||||
}
|
||||
}
|
||||
//=======================================================================
|
||||
//function : PerformConicSurf
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void IntCurveSurface_Inter::PerformConicSurf(const gp_Elips& Ellipse,
|
||||
const TheCurve& curve,
|
||||
const TheSurface& surface,
|
||||
@@ -1124,10 +1096,8 @@ void IntCurveSurface_Inter::PerformConicSurf(const gp_Elips& Ellipse,
|
||||
}
|
||||
}
|
||||
}
|
||||
//=======================================================================
|
||||
//function : PerformConicSurf
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void IntCurveSurface_Inter::PerformConicSurf(const gp_Parab& Parab,
|
||||
const TheCurve& curve,
|
||||
const TheSurface& surface,
|
||||
@@ -1183,10 +1153,8 @@ void IntCurveSurface_Inter::PerformConicSurf(const gp_Parab& Parab,
|
||||
}
|
||||
}
|
||||
}
|
||||
//=======================================================================
|
||||
//function : PerformConicSurf
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void IntCurveSurface_Inter::PerformConicSurf(const gp_Hypr& Hypr,
|
||||
const TheCurve& curve,
|
||||
const TheSurface& surface,
|
||||
@@ -1242,10 +1210,8 @@ void IntCurveSurface_Inter::PerformConicSurf(const gp_Hypr& Hypr,
|
||||
}
|
||||
}
|
||||
}
|
||||
//=======================================================================
|
||||
//function : AppendIntAna
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void IntCurveSurface_Inter::AppendIntAna(const TheCurve& curve,
|
||||
const TheSurface& surface,
|
||||
const IntAna_IntConicQuad& intana_ConicQuad) {
|
||||
@@ -1273,10 +1239,8 @@ void IntCurveSurface_Inter::AppendIntAna(const TheCurve& curve,
|
||||
//-- std::cout<<" IntAna Conic Quad Not Done "<<std::endl;
|
||||
}
|
||||
}
|
||||
//=======================================================================
|
||||
//function : AppendPoint
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void IntCurveSurface_Inter::AppendPoint(const TheCurve& curve,
|
||||
const Standard_Real lw,
|
||||
const TheSurface& surface,
|
||||
@@ -1326,10 +1290,8 @@ void IntCurveSurface_Inter::AppendPoint(const TheCurve& curve,
|
||||
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : AppendSegment
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void IntCurveSurface_Inter::AppendSegment(const TheCurve& ,
|
||||
const Standard_Real ,
|
||||
const Standard_Real ,
|
||||
@@ -1418,10 +1380,8 @@ void SectionPointToParameters(const Intf_SectionPoint& Sp,
|
||||
U = u1;
|
||||
V = v1;
|
||||
}
|
||||
//=======================================================================
|
||||
//function : IntCurveSurface_ComputeTransitions
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void IntCurveSurface_ComputeTransitions(const TheCurve& curve,
|
||||
const Standard_Real w,
|
||||
IntCurveSurface_TransitionOnCurve& TransOnCurve,
|
||||
@@ -1459,10 +1419,8 @@ void IntCurveSurface_ComputeTransitions(const TheCurve& curve,
|
||||
TransOnCurve = IntCurveSurface_Tangent;
|
||||
}
|
||||
}
|
||||
//=======================================================================
|
||||
//function : IntCurveSurface_ComputeParamsOnQuadric
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void IntCurveSurface_ComputeParamsOnQuadric(const TheSurface& surface,
|
||||
const gp_Pnt& P,
|
||||
Standard_Real& u,
|
||||
@@ -1864,10 +1822,8 @@ void EstLimForInfRevl(const gp_Lin& Line,
|
||||
return;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : EstLimForInfOffs
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void EstLimForInfOffs(const gp_Lin& Line,
|
||||
const TheSurface& surface,
|
||||
const Standard_Integer nbsu,
|
||||
@@ -2084,10 +2040,8 @@ void EstLimForInfOffs(const gp_Lin& Line,
|
||||
V2new = Min(V2new, 1.e10);
|
||||
}
|
||||
}
|
||||
//=======================================================================
|
||||
//function : EstLimForInfSurf
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void EstLimForInfSurf(Standard_Real& U1new,
|
||||
Standard_Real& U2new,
|
||||
Standard_Real& V1new,
|
||||
|
||||
@@ -56,10 +56,8 @@ IntCurveSurface_Polygon::IntCurveSurface_Polygon(const TheCurve& C,
|
||||
Init(C);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : IntCurveSurface_Polygon
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
|
||||
IntCurveSurface_Polygon::IntCurveSurface_Polygon(const TheCurve& C,
|
||||
const TColStd_Array1OfReal& Upars):
|
||||
@@ -125,10 +123,8 @@ void IntCurveSurface_Polygon::Init(const TheCurve& C) {
|
||||
ClosedPolygon = Standard_False;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Init
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
|
||||
void IntCurveSurface_Polygon::Init(const TheCurve& C,
|
||||
const TColStd_Array1OfReal& Upars) {
|
||||
|
||||
@@ -35,10 +35,8 @@
|
||||
#define LONGUEUR_MINI_EDGE_TRIANGLE 1e-15
|
||||
|
||||
|
||||
//=======================================================================
|
||||
//function : IntCurveSurface_Polyhedron
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
IntCurveSurface_Polyhedron::IntCurveSurface_Polyhedron (const ThePSurface& Surface,
|
||||
const Standard_Integer nbdU,
|
||||
const Standard_Integer nbdV,
|
||||
@@ -64,10 +62,8 @@ IntCurveSurface_Polyhedron::IntCurveSurface_Polyhedron (const ThePSurface& S
|
||||
Init(Surface,u1,v1,u2,v2);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : IntCurveSurface_Polyhedron
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
IntCurveSurface_Polyhedron::IntCurveSurface_Polyhedron (const ThePSurface& Surface,
|
||||
const TColStd_Array1OfReal& Upars,
|
||||
const TColStd_Array1OfReal& Vpars)
|
||||
@@ -105,10 +101,8 @@ void IntCurveSurface_Polyhedron::Destroy() {
|
||||
C_MyPnts=C_MyU=C_MyV=C_MyIsOnBounds=NULL;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Init
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void IntCurveSurface_Polyhedron::Init(const ThePSurface& Surface,
|
||||
const Standard_Real U0,
|
||||
const Standard_Real V0,
|
||||
@@ -193,10 +187,8 @@ void IntCurveSurface_Polyhedron::Init(const ThePSurface& Surface,
|
||||
Dump();
|
||||
#endif
|
||||
}
|
||||
//=======================================================================
|
||||
//function : Init
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void IntCurveSurface_Polyhedron::Init(const ThePSurface& Surface,
|
||||
const TColStd_Array1OfReal& Upars,
|
||||
const TColStd_Array1OfReal& Vpars) {
|
||||
@@ -284,10 +276,8 @@ void IntCurveSurface_Polyhedron::Init(const ThePSurface& Surface,
|
||||
Dump();
|
||||
#endif
|
||||
}
|
||||
//=======================================================================
|
||||
//function : DeflectionOnTriangle
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
Standard_Real IntCurveSurface_Polyhedron::DeflectionOnTriangle (const ThePSurface& Surface,
|
||||
const Standard_Integer Triang) const
|
||||
{
|
||||
@@ -320,10 +310,8 @@ Standard_Real IntCurveSurface_Polyhedron::DeflectionOnTriangle (const ThePSurfac
|
||||
gp_Vec P1P(P1,P);
|
||||
return(Abs(P1P.Dot(NormalVector)));
|
||||
}
|
||||
//=======================================================================
|
||||
//function : Parameters
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void IntCurveSurface_Polyhedron::Parameters( const Standard_Integer Index
|
||||
,Standard_Real &U
|
||||
,Standard_Real &V) const
|
||||
@@ -338,10 +326,8 @@ void IntCurveSurface_Polyhedron::Parameters( const Standard_Integer Index
|
||||
Standard_Real *CMyV = (Standard_Real *)C_MyV;
|
||||
V = CMyV[Index];
|
||||
}
|
||||
//=======================================================================
|
||||
//function : DeflectionOverEstimation
|
||||
//purpose : Set
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void IntCurveSurface_Polyhedron::DeflectionOverEstimation(const Standard_Real flec)
|
||||
{
|
||||
if(flec<0.0001) {
|
||||
@@ -353,26 +339,20 @@ void IntCurveSurface_Polyhedron::DeflectionOverEstimation(const Standard_Real fl
|
||||
TheBnd.Enlarge(flec);
|
||||
}
|
||||
}
|
||||
//=======================================================================
|
||||
//function : DeflectionOverEstimation
|
||||
//purpose : Get
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
Standard_Real IntCurveSurface_Polyhedron::DeflectionOverEstimation() const
|
||||
{
|
||||
return TheDeflection;
|
||||
}
|
||||
//=======================================================================
|
||||
//function : Bounding
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
const Bnd_Box& IntCurveSurface_Polyhedron::Bounding() const
|
||||
{
|
||||
return TheBnd;
|
||||
}
|
||||
//=======================================================================
|
||||
//function : FillBounding
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void IntCurveSurface_Polyhedron::FillBounding()
|
||||
{
|
||||
TheComponentsBnd=new Bnd_HArray1OfBox(1, NbTriangles());
|
||||
@@ -399,35 +379,27 @@ void IntCurveSurface_Polyhedron::FillBounding()
|
||||
TheComponentsBnd->SetValue(iTri,Boite);
|
||||
}
|
||||
}
|
||||
//=======================================================================
|
||||
//function : ComponentsBounding
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
const Handle(Bnd_HArray1OfBox)&
|
||||
IntCurveSurface_Polyhedron::ComponentsBounding() const
|
||||
{
|
||||
return TheComponentsBnd;
|
||||
}
|
||||
//=======================================================================
|
||||
//function : NbTriangles
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
Standard_Integer IntCurveSurface_Polyhedron::NbTriangles () const
|
||||
{
|
||||
return nbdeltaU*nbdeltaV*2;
|
||||
}
|
||||
//=======================================================================
|
||||
//function : NbPoints
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
Standard_Integer IntCurveSurface_Polyhedron::NbPoints () const
|
||||
{
|
||||
return (nbdeltaU+1)*(nbdeltaV+1);
|
||||
}
|
||||
//=======================================================================
|
||||
//function : TriConnex
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
Standard_Integer IntCurveSurface_Polyhedron::TriConnex
|
||||
(const Standard_Integer Triang,
|
||||
const Standard_Integer Pivot,
|
||||
@@ -602,10 +574,8 @@ Standard_Integer IntCurveSurface_Polyhedron::TriConnex
|
||||
}
|
||||
|
||||
|
||||
//=======================================================================
|
||||
//function : PlaneEquation
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void IntCurveSurface_Polyhedron::PlaneEquation (const Standard_Integer Triang,
|
||||
gp_XYZ& NormalVector,
|
||||
Standard_Real& PolarDistance) const
|
||||
@@ -640,10 +610,8 @@ void IntCurveSurface_Polyhedron::PlaneEquation (const Standard_Integer Triang,
|
||||
PolarDistance = NormalVector * Point(i1).XYZ();
|
||||
}
|
||||
}
|
||||
//=======================================================================
|
||||
//function : Contain
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
Standard_Boolean IntCurveSurface_Polyhedron::Contain (const Standard_Integer Triang,
|
||||
const gp_Pnt& ThePnt) const
|
||||
{
|
||||
@@ -661,28 +629,22 @@ Standard_Boolean IntCurveSurface_Polyhedron::Contain (const Standard_Integer Tri
|
||||
else
|
||||
return Standard_False;
|
||||
}
|
||||
//=======================================================================
|
||||
//function : Dump
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void IntCurveSurface_Polyhedron::Dump() const
|
||||
{
|
||||
|
||||
}
|
||||
//=======================================================================
|
||||
//function : Size
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void IntCurveSurface_Polyhedron::Size (Standard_Integer& nbdu,
|
||||
Standard_Integer& nbdv) const
|
||||
{
|
||||
nbdu=nbdeltaU;
|
||||
nbdv=nbdeltaV;
|
||||
}
|
||||
//=======================================================================
|
||||
//function : Triangle
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void IntCurveSurface_Polyhedron::Triangle (const Standard_Integer Index,
|
||||
Standard_Integer& P1,
|
||||
Standard_Integer& P2,
|
||||
|
||||
@@ -13,40 +13,28 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
//=======================================================================
|
||||
// function : Error
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Real IntPatch_Polygo::Error() const
|
||||
{
|
||||
return myError;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : DeflectionOverEstimation
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Real IntPatch_Polygo::DeflectionOverEstimation() const
|
||||
{
|
||||
return myError;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : NbSegments
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Integer IntPatch_Polygo::NbSegments() const
|
||||
{
|
||||
return NbPoints() - 1;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : BeginOfSeg
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void IntPatch_Polygo::Segment(const Standard_Integer theIndex,
|
||||
gp_Pnt2d& theBegin,
|
||||
|
||||
@@ -135,10 +135,8 @@ private:
|
||||
};
|
||||
|
||||
|
||||
//=======================================================================
|
||||
//function : FindVertex
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void FindVertex (const TheArc& A,
|
||||
const Handle(TheTopolTool)& Domain,
|
||||
TheFunction& Func,
|
||||
@@ -790,10 +788,8 @@ void BoundedArc (const TheArc& A,
|
||||
}
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : ComputeBoundsfromInfinite
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
// - PROVISIONAL - TEMPORARY - NOT GOOD - NYI - TO DO
|
||||
// - Temporary - temporary - not good - nyi - to do
|
||||
void ComputeBoundsfromInfinite(TheFunction& Func,
|
||||
@@ -861,10 +857,8 @@ void ComputeBoundsfromInfinite(TheFunction& Func,
|
||||
}
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : PointProcess
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void PointProcess (const gp_Pnt& Pt,
|
||||
const Standard_Real Para,
|
||||
const TheArc& A,
|
||||
@@ -974,10 +968,8 @@ void PointProcess (const gp_Pnt& Pt,
|
||||
}
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : IsRegularity
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
Standard_Boolean IsRegularity(const TheArc& /*A*/,
|
||||
const Handle(TheTopolTool)& aDomain)
|
||||
{
|
||||
@@ -991,10 +983,8 @@ Standard_Boolean IsRegularity(const TheArc& /*A*/,
|
||||
return (BRep_Tool::HasContinuity(*anE));
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : TreatLC
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
Standard_Integer TreatLC (const TheArc& A,
|
||||
const Handle(TheTopolTool)& aDomain,
|
||||
const IntSurf_Quadric& aQuadric,
|
||||
@@ -1095,20 +1085,16 @@ Standard_Integer TreatLC (const TheArc& A,
|
||||
}
|
||||
|
||||
|
||||
//=======================================================================
|
||||
//function : IntStart_SearchOnBoundaries::IntStart_SearchOnBoundaries
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
IntStart_SearchOnBoundaries::IntStart_SearchOnBoundaries ()
|
||||
: done(Standard_False),
|
||||
all(Standard_False)
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Perform
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
void IntStart_SearchOnBoundaries::Perform (TheFunction& Func,
|
||||
const Handle(TheTopolTool)& Domain,
|
||||
const Standard_Real TolBoundary,
|
||||
|
||||
@@ -69,10 +69,7 @@ inline const Intf_TangentZone& Intf_Interference::ZoneValue(const Standard_Integ
|
||||
return myTZones(Index);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : GetTolerance
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Real Intf_Interference::GetTolerance() const
|
||||
{
|
||||
|
||||
@@ -51,10 +51,8 @@ static Standard_Boolean IsInSegment(const gp_Vec& P1P2,
|
||||
}
|
||||
|
||||
|
||||
//=======================================================================
|
||||
//function : Intf_InterferencePolygonPolyhedron
|
||||
//purpose : Empty constructor
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
|
||||
Intf_InterferencePolygonPolyhedron::Intf_InterferencePolygonPolyhedron()
|
||||
: Intf_Interference (Standard_False),
|
||||
@@ -188,10 +186,8 @@ Intf_InterferencePolygonPolyhedron::Intf_InterferencePolygonPolyhedron
|
||||
}
|
||||
|
||||
|
||||
//=======================================================================
|
||||
//function : Perform
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
|
||||
void Intf_InterferencePolygonPolyhedron::Perform
|
||||
(const Polygon3d& thePolyg, const Polyhedron& thePolyh)
|
||||
@@ -209,10 +205,8 @@ void Intf_InterferencePolygonPolyhedron::Perform
|
||||
}
|
||||
|
||||
|
||||
//=======================================================================
|
||||
//function : Perform
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
|
||||
void Intf_InterferencePolygonPolyhedron::Perform
|
||||
(const gp_Lin& theLin, const Polyhedron& thePolyh)
|
||||
@@ -451,10 +445,8 @@ Intf_InterferencePolygonPolyhedron::Intf_InterferencePolygonPolyhedron
|
||||
}
|
||||
|
||||
|
||||
//=======================================================================
|
||||
//function : Perform
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
|
||||
void Intf_InterferencePolygonPolyhedron::Perform
|
||||
(const Polygon3d& thePolyg, const Polyhedron& thePolyh,
|
||||
@@ -473,10 +465,8 @@ void Intf_InterferencePolygonPolyhedron::Perform
|
||||
}
|
||||
|
||||
|
||||
//=======================================================================
|
||||
//function : Perform
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
|
||||
void Intf_InterferencePolygonPolyhedron::Perform
|
||||
(const gp_Lin& theLin, const Polyhedron& thePolyh,
|
||||
|
||||
@@ -13,10 +13,7 @@
|
||||
// Alternatively, this file may be used under the terms of Open CASCADE
|
||||
// commercial license or contractual agreement.
|
||||
|
||||
//=======================================================================
|
||||
// function : Bounding
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline const Bnd_Box2d& Intf_Polygon2d::Bounding() const
|
||||
{
|
||||
|
||||
@@ -16,10 +16,7 @@
|
||||
|
||||
#include <Intf_SeqOfSectionPoint.hxx>
|
||||
|
||||
//=======================================================================
|
||||
// function : NumberOfPoint
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Integer Intf_SectionLine::NumberOfPoints() const
|
||||
{
|
||||
|
||||
@@ -26,10 +26,7 @@ inline Standard_Integer Intf_TangentZone::NumberOfPoints() const
|
||||
return Result.Length();
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : ParamOnFirst
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void Intf_TangentZone::ParamOnFirst(Standard_Real& paraMin, Standard_Real& paraMax) const
|
||||
{
|
||||
@@ -37,10 +34,7 @@ inline void Intf_TangentZone::ParamOnFirst(Standard_Real& paraMin, Standard_Real
|
||||
paraMax = ParamOnFirstMax;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : ParamOnSecond
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline void Intf_TangentZone::ParamOnSecond(Standard_Real& paraMin, Standard_Real& paraMax) const
|
||||
{
|
||||
|
||||
@@ -24,10 +24,8 @@
|
||||
#include <IntRes2d_IntersectionPoint.hxx>
|
||||
#include <gp_Vec2d.hxx>
|
||||
|
||||
//=======================================================================
|
||||
//function : TopClass_Classifier2d
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
|
||||
TopClass_Classifier2d::TopClass_Classifier2d() :
|
||||
myIsSet(Standard_False),
|
||||
@@ -41,10 +39,8 @@ TopClass_Classifier2d::TopClass_Classifier2d() :
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Reset
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
|
||||
void TopClass_Classifier2d::Reset(const gp_Lin2d& L,
|
||||
const Standard_Real P,
|
||||
@@ -63,10 +59,8 @@ void TopClass_Classifier2d::Reset(const gp_Lin2d& L,
|
||||
// Modified by skv - Wed Jul 12 15:20:58 2006 OCC12627 End
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Compare
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
|
||||
void TopClass_Classifier2d::Compare(const TheEdge& E,
|
||||
const TopAbs_Orientation Or)
|
||||
|
||||
@@ -16,40 +16,28 @@
|
||||
|
||||
// Modified by skv - Wed Jul 12 15:20:58 2006 OCC12627
|
||||
|
||||
//=======================================================================
|
||||
// function : Parameter
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Real TopClass_Classifier2d::Parameter() const
|
||||
{
|
||||
return myParam;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : Intersector
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline TheIntersector& TopClass_Classifier2d::Intersector()
|
||||
{
|
||||
return myIntersector;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : ClosestIntersection
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Integer TopClass_Classifier2d::ClosestIntersection() const
|
||||
{
|
||||
return myClosest;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : State
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline TopAbs_State TopClass_Classifier2d::State() const
|
||||
{
|
||||
@@ -58,10 +46,7 @@ inline TopAbs_State TopClass_Classifier2d::State() const
|
||||
|
||||
// Modified by skv - Wed Jul 12 15:20:58 2006 OCC12627 Begin
|
||||
|
||||
//=======================================================================
|
||||
// function : IsHeadOrEnd
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Boolean TopClass_Classifier2d::IsHeadOrEnd() const
|
||||
{
|
||||
|
||||
@@ -20,10 +20,8 @@
|
||||
#include <IntRes2d_IntersectionSegment.hxx>
|
||||
#include <IntRes2d_IntersectionPoint.hxx>
|
||||
|
||||
//=======================================================================
|
||||
//function : TopClass_FaceClassifier
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
|
||||
TopClass_FaceClassifier::TopClass_FaceClassifier() :
|
||||
myEdgeParameter(0.0),
|
||||
@@ -32,10 +30,8 @@ nowires(Standard_True)
|
||||
{
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : TopClass_FaceClassifier
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
|
||||
TopClass_FaceClassifier::TopClass_FaceClassifier(TheFaceExplorer& FExp,
|
||||
const gp_Pnt2d& P,
|
||||
@@ -47,10 +43,8 @@ nowires(Standard_True)
|
||||
Perform(FExp,P,Tol);
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Perform
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
|
||||
void TopClass_FaceClassifier::Perform(TheFaceExplorer& Fexp,
|
||||
const gp_Pnt2d& P,
|
||||
@@ -152,10 +146,8 @@ void TopClass_FaceClassifier::Perform(TheFaceExplorer& Fexp,
|
||||
}
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : State
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
|
||||
TopAbs_State TopClass_FaceClassifier::State() const
|
||||
{
|
||||
@@ -164,10 +156,8 @@ TopAbs_State TopClass_FaceClassifier::State() const
|
||||
else return myClassifier.State();
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : Edge
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
|
||||
const TheEdge& TopClass_FaceClassifier::Edge() const
|
||||
{
|
||||
@@ -177,10 +167,8 @@ const TheEdge& TopClass_FaceClassifier::Edge() const
|
||||
}
|
||||
|
||||
|
||||
//=======================================================================
|
||||
//function : EdgeParameter
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
|
||||
Standard_Real TopClass_FaceClassifier::EdgeParameter() const
|
||||
{
|
||||
|
||||
@@ -16,30 +16,21 @@
|
||||
|
||||
#include TheFaceExplorer_hxx
|
||||
|
||||
//=======================================================================
|
||||
// function : Rejected
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Boolean TopClass_FaceClassifier::Rejected() const
|
||||
{
|
||||
return rejected;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : Nowires
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline Standard_Boolean TopClass_FaceClassifier::NoWires() const
|
||||
{
|
||||
return nowires;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
// function : Position
|
||||
// purpose :
|
||||
//=======================================================================
|
||||
//=================================================================================================
|
||||
|
||||
inline IntRes2d_Position TopClass_FaceClassifier::Position() const
|
||||
{
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user