mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-14 13:30:48 +03:00
0025354: Intersection operation
I. New features: I.1 class BOPAlgo_Section The class clontains the algorithm to build a result of Secton between the arguments. The result of Section consists of vertices and edges. The result of Section contains: 1. new vertices that are subjects of V/V, E/E, E/F, F/F interferences 2. vertices that are subjects of V/E, V/F interferences 3. new edges that are subjects of F/F interferences 4. edges that are Common Blocks 5.a vertex is included in result of Section only when it is not shared between the edges of the result of Section The class BOPAlgo_Section inherits the functionality of root class BOPAlgo_Builder 1.2 class BOPTest_Objects method: BOPAlgo_Section& BOPTest_Objects::Section() has been added to get access to BOPAlgo_Section object II. Changes: II.1. class BOPAlgo_BOP method: void BOPAlgo_BOP::BuildSection() has been removed methods: void BOPAlgo_BOP::CheckData() void BOPAlgo_BOP::Prepare() void BOPAlgo_BOP::PerformInternal1(const BOPAlgo_PaveFiller& theFiller) const TopTools_ListOfShape& BOPAlgo_BOP::Generated (const TopoDS_Shape& theS) have been modified to eliminate references on Section operation II.2. class BOPAlgo_PaveFiller method: void BOPAlgo_PaveFiller::UpdateFaceInfo (BOPDS_DataMapOfPaveBlockListOfPaveBlock& theDME) modified to prevent the usage of negative index in Data Structure II.3. class BOPTest_Objects static function: Standard_Integer bopsection(Draw_Interpretor& di, Standard_Integer n, const char** a) has been modified to use BOPAlgo_Section object instead of BOPAlgo_BOP object static function: Standard_Integer bbop(Draw_Interpretor& di, Standard_Integer n, const char** a) has been modified to use BOPAlgo_Section object instea of BOPAlgo_BOP object II.4. class BRepAlgoAPI_BooleanOperation field: myBuilder the type has been changed from BOPAlgo_BOP* to BOPAlgo_Builder* method: void BRepAlgoAPI_BooleanOperation::Build() has been modified to use BOPAlgo_Section object II.5. class QANewModTopOpe_Tools method: Standard_Boolean QANewModTopOpe_Tools::HasSameDomain( const BOPAlgo_PBOP& theBuilder, const TopoDS_Shape& theFace) void QANewModTopOpe_Tools::SameDomain( const BOPAlgo_PBOP& theBuilder, const TopoDS_Shape& theFace, TopTools_ListOfShape& theResultList) the type of the parameter <theBuilder> has been modified to use BOPAlgo_Builder* instead of BOPAlgo_BOP* II.6. The method: const TopTools_ListOfShape& BOPAlgo_BOP::Generated (const TopoDS_Shape& theS) has been removed
This commit is contained in:
@@ -20,7 +20,8 @@ uses
|
||||
Edge from TopoDS,
|
||||
Shape from TopoDS,
|
||||
State from TopAbs,
|
||||
PPaveFiller from BOPAlgo,
|
||||
PPaveFiller from BOPAlgo,
|
||||
PBuilder from BOPAlgo,
|
||||
PBOP from BOPAlgo,
|
||||
ListOfShape from TopTools,
|
||||
IndexedDataMapOfShapeListOfShape from TopTools
|
||||
@@ -28,56 +29,57 @@ uses
|
||||
is
|
||||
|
||||
NbPoints(myclass; theDSFiller: PPaveFiller from BOPAlgo)
|
||||
returns Integer from Standard;
|
||||
returns Integer from Standard;
|
||||
|
||||
NewVertex(myclass; theDSFiller: PPaveFiller from BOPAlgo;
|
||||
theIndex : Integer from Standard)
|
||||
returns Shape from TopoDS;
|
||||
|
||||
HasSameDomain(myclass; theBuilder: PBOP from BOPAlgo;
|
||||
theFace : Shape from TopoDS)
|
||||
returns Boolean from Standard;
|
||||
theIndex : Integer from Standard)
|
||||
returns Shape from TopoDS;
|
||||
|
||||
HasSameDomain(myclass; theBuilder: PBuilder from BOPAlgo;
|
||||
theFace : Shape from TopoDS)
|
||||
returns Boolean from Standard;
|
||||
|
||||
SameDomain(myclass; theBuilder: PBOP from BOPAlgo;
|
||||
theFace : Shape from TopoDS;
|
||||
theResultList: out ListOfShape from TopTools);
|
||||
SameDomain(myclass; theBuilder: PBuilder from BOPAlgo;
|
||||
theFace : Shape from TopoDS;
|
||||
theResultList: out ListOfShape from TopTools);
|
||||
|
||||
|
||||
IsSplit(myclass; theDSFiller: PPaveFiller from BOPAlgo;
|
||||
theEdge : Shape from TopoDS;
|
||||
theState : State from TopAbs)
|
||||
returns Boolean from Standard;
|
||||
---Warning: This method could be called only after boolean operation,
|
||||
--- arguments of which was solids or compounds of solids.
|
||||
---
|
||||
theEdge : Shape from TopoDS;
|
||||
theState : State from TopAbs)
|
||||
returns Boolean from Standard;
|
||||
---Warning: This method could be called only after boolean operation,
|
||||
--- arguments of which was solids or compounds of solids.
|
||||
---
|
||||
|
||||
Splits(myclass; theDSFiller: PPaveFiller from BOPAlgo;
|
||||
theEdge : Shape from TopoDS;
|
||||
theState : State from TopAbs;
|
||||
theResultList: out ListOfShape from TopTools);
|
||||
---Warning: This method could be called only after boolean operation,
|
||||
--- arguments of which was solids or compounds of solids.
|
||||
---
|
||||
theEdge : Shape from TopoDS;
|
||||
theState : State from TopAbs;
|
||||
theResultList: out ListOfShape from TopTools);
|
||||
---Warning: This method could be called only after boolean operation,
|
||||
--- arguments of which was solids or compounds of solids.
|
||||
---
|
||||
|
||||
SplitE(myclass; theEdge : Edge from TopoDS;
|
||||
theSplits: out ListOfShape from TopTools)
|
||||
returns Boolean from Standard;
|
||||
theSplits: out ListOfShape from TopTools)
|
||||
returns Boolean from Standard;
|
||||
|
||||
EdgeCurveAncestors(myclass; theDSFiller: PPaveFiller from BOPAlgo;
|
||||
theEdge : Shape from TopoDS;
|
||||
theFace1 : out Shape from TopoDS;
|
||||
theFace2 : out Shape from TopoDS)
|
||||
returns Boolean from Standard;
|
||||
theEdge : Shape from TopoDS;
|
||||
theFace1 : out Shape from TopoDS;
|
||||
theFace2 : out Shape from TopoDS)
|
||||
returns Boolean from Standard;
|
||||
|
||||
EdgeSectionAncestors(myclass; theDSFiller: PPaveFiller from BOPAlgo;
|
||||
theEdge : Shape from TopoDS;
|
||||
LF1,LF2 : out ListOfShape from TopTools;
|
||||
LE1,LE2 : out ListOfShape from TopTools)
|
||||
returns Boolean from Standard;
|
||||
theEdge : Shape from TopoDS;
|
||||
LF1,LF2 : out ListOfShape from TopTools;
|
||||
LE1,LE2 : out ListOfShape from TopTools)
|
||||
returns Boolean from Standard;
|
||||
|
||||
BoolOpe(myclass; theFace1: Shape from TopoDS;
|
||||
theFace2: Shape from TopoDS;
|
||||
IsCommonFound: out Boolean from Standard;
|
||||
theHistoryMap: out IndexedDataMapOfShapeListOfShape from TopTools)
|
||||
returns Boolean from Standard;
|
||||
theFace2: Shape from TopoDS;
|
||||
IsCommonFound: out Boolean from Standard;
|
||||
theHistoryMap: out IndexedDataMapOfShapeListOfShape from TopTools)
|
||||
returns Boolean from Standard;
|
||||
|
||||
end Tools from QANewModTopOpe;
|
||||
|
@@ -175,8 +175,9 @@ TopoDS_Shape QANewModTopOpe_Tools::NewVertex(const BOPAlgo_PPaveFiller& theDSFil
|
||||
// function: HasDomain
|
||||
// purpose:
|
||||
// ========================================================================================
|
||||
Standard_Boolean QANewModTopOpe_Tools::HasSameDomain(const BOPAlgo_PBOP& theBuilder,
|
||||
const TopoDS_Shape& theFace)
|
||||
Standard_Boolean QANewModTopOpe_Tools::HasSameDomain
|
||||
(const BOPAlgo_PBuilder& theBuilder,
|
||||
const TopoDS_Shape& theFace)
|
||||
{
|
||||
Standard_Integer bRet;
|
||||
bRet = Standard_False;
|
||||
@@ -212,9 +213,10 @@ Standard_Boolean QANewModTopOpe_Tools::HasSameDomain(const BOPAlgo_PBOP& theBuil
|
||||
// function: SameDomain
|
||||
// purpose:
|
||||
// ========================================================================================
|
||||
void QANewModTopOpe_Tools::SameDomain(const BOPAlgo_PBOP& theBuilder,
|
||||
const TopoDS_Shape& theFace,
|
||||
TopTools_ListOfShape& theResultList)
|
||||
void QANewModTopOpe_Tools::SameDomain
|
||||
(const BOPAlgo_PBuilder& theBuilder,
|
||||
const TopoDS_Shape& theFace,
|
||||
TopTools_ListOfShape& theResultList)
|
||||
{
|
||||
theResultList.Clear();
|
||||
|
||||
|
Reference in New Issue
Block a user