mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-05-19 01:39:00 +08:00
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
70 lines
1.6 KiB
Plaintext
70 lines
1.6 KiB
Plaintext
-- Created by: Peter KURNEV
|
|
-- Copyright (c) 1999-2014 OPEN CASCADE SAS
|
|
--
|
|
-- This file is part of Open CASCADE Technology software library.
|
|
--
|
|
-- This library is free software; you can redistribute it and/or modify it under
|
|
-- the terms of the GNU Lesser General Public License version 2.1 as published
|
|
-- by the Free Software Foundation, with special exception defined in the file
|
|
-- OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
|
-- distribution for complete text of the license and disclaimer of any warranty.
|
|
--
|
|
-- Alternatively, this file may be used under the terms of Open CASCADE
|
|
-- commercial license or contractual agreement.
|
|
|
|
class Objects from BOPTest
|
|
|
|
---Purpose:
|
|
|
|
uses
|
|
ListOfShape from BOPCol,
|
|
PDS from BOPDS,
|
|
PaveFiller from BOPAlgo,
|
|
Builder from BOPAlgo,
|
|
PBuilder from BOPAlgo,
|
|
BOP from BOPAlgo,
|
|
Section from BOPAlgo
|
|
|
|
--raises
|
|
|
|
is
|
|
PaveFiller(myclass)
|
|
returns PaveFiller from BOPAlgo;
|
|
---C++: return &
|
|
|
|
Init(myclass);
|
|
|
|
Clear(myclass);
|
|
|
|
PDS(myclass)
|
|
returns PDS from BOPDS;
|
|
|
|
Builder(myclass)
|
|
returns Builder from BOPAlgo;
|
|
---C++: return &
|
|
|
|
BOP(myclass)
|
|
returns BOP from BOPAlgo;
|
|
---C++: return &
|
|
|
|
Section(myclass)
|
|
returns Section from BOPAlgo;
|
|
---C++: return &
|
|
|
|
Shapes(myclass)
|
|
returns ListOfShape from BOPCol;
|
|
---C++: return &
|
|
|
|
Tools(myclass)
|
|
returns ListOfShape from BOPCol;
|
|
---C++: return &
|
|
--
|
|
SetBuilder(myclass;
|
|
theBuilder:PBuilder from BOPAlgo);
|
|
|
|
SetBuilderDefault(myclass);
|
|
|
|
--fields
|
|
|
|
end Objects;
|