mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-06-01 08:36:43 +08:00
I. New features:
1.1. class BOPAlgo_PaveFiller
method:
void BOPAlgo_PaveFiller::SetArguments(const TopTools_ListOfShape& theLS)
has been added to provide the setting argumemts through
TopTools_ListOfShape
1.2. class BOPAlgo_Builder
method:
void BOPAlgo_Builder::SetArguments(const TopTools_ListOfShape& theLS)
has been added to provide the setting argumemts through
TopTools_ListOfShape
1.3. class BOPAlgo_BOP
method:
void BOPAlgo_BOP::SetTools(const TopTools_ListOfShape& theLS)
has been added to provide the setting tools through
TopTools_ListOfShape
1.4. class BRepAlgoAPI_BuilderAlgo
construcror:
BRepAlgoAPI_BuilderAlgo::BRepAlgoAPI_BuilderAlgo
(const BOPAlgo_PaveFiller& aPF)
has been added to provide the construction
of the object using BOPAlgo_PaveFiller object
method:
void BRepAlgoAPI_BuilderAlgo::SetArguments
(const TopTools_ListOfShape& theLS)
has been added to provide the setting argumemts
method:
const TopTools_ListOfShape& BRepAlgoAPI_BuilderAlgo::Arguments()const
has been added to provide access to the argumemts
1.5. class BRepAlgoAPI_BooleanOperation
method:
void BRepAlgoAPI_BooleanOperation::SetTools
(const TopTools_ListOfShape& theLS)
has been added to provide the setting tools
method:
const TopTools_ListOfShape& BRepAlgoAPI_BooleanOperation::Tools()const
has been added to provide access to the tools
1.6. class BRepAlgoAPI_Common
construcror:
BRepAlgoAPI_Common::BRepAlgoAPI_Common
(const BOPAlgo_PaveFiller& aPF)
has been added to provide the construction
of the object using BOPAlgo_PaveFiller object
1.7. class BRepAlgoAPI_Cut
construcror:
BRepAlgoAPI_Cut::BRepAlgoAPI_Cut
(const BOPAlgo_PaveFiller& aPF)
has been added to provide the construction
of the object using BOPAlgo_PaveFiller object
1.8. class BRepAlgoAPI_Fuse
construcror:
BRepAlgoAPI_Fuse::BRepAlgoAPI_Fuse
(const BOPAlgo_PaveFiller& aPF)
has been added to provide the construction
of the object using BOPAlgo_PaveFiller object
1.9. class BRepAlgoAPI_Section
construcror:
BRepAlgoAPI_Section::BRepAlgoAPI_Section
(const BOPAlgo_PaveFiller& aPF)
has been added to provide the construction
of the object using BOPAlgo_PaveFiller object
1.10. class BOPTest
method:
void BOPTest::APICommands(Draw_Interpretor& theCommands)
has been added to provide tcl commands to launch the algorithms
implemented in BRepAlgoAPI package using DRAWEXE application.
Commands:
>bapibuild r
performs General Fuse algorithm.
r -the result of the operation
>bapibop r type
performs Boolean Operation agorithm
r -the result of the operation
type -type of the operation:
0-common
1-fuse
2-cut
3-cut21
4-section
method:
void BOPTest::OptionCommands(Draw_Interpretor& theCommands)
has been added to provide tcl commands to set/get the options that is
necessary for the algorithms implemented in BRepAlgoAPI package.
Commands:
>boptions
dump the state of current options
>brunparallel [0/1]
1 -sets the parallel mode of the computations
0 -sets the sequential mode of the computations
>bfuzzyvalue value
sets the fuzzy value
-------------------------------------------------------------------------------------------------------------
II. Changes:
II.1. class BRepAlgoAPI_BuilderAlgo
methods:
const TopTools_ListOfShape& BRepAlgoAPI_BuilderAlgo::Generated
(const TopoDS_Shape& aS)
const TopTools_ListOfShape& BRepAlgoAPI_BuilderAlgo::Modified
(const TopoDS_Shape& aS)
Standard_Boolean BRepAlgoAPI_BuilderAlgo::IsDeleted
(const TopoDS_Shape& aS)
Standard_Boolean BRepAlgoAPI_BuilderAlgo::HasModified() const
Standard_Boolean BRepAlgoAPI_BuilderAlgo::HasGenerated() const
Standard_Boolean BRepAlgoAPI_BuilderAlgo::HasDeleted() const
has been redefined to provide access to the history
II.1. class BOPTest
method:
void BOPTest::APICommands(Draw_Interpretor& theCommands)
has been added to provide tcl commands to launch the algorithms
implemented in BRepAlgoAPI package using DRAWEXE application.
method:
void BOPTest::OptionCommands(Draw_Interpretor& theCommands)
has been added to provide tcl commands to set/get the options that is
necessary for the algorithms implemented in BRepAlgoAPI package.
II.2. class BRepAlgoAPI
method:
void BRepAlgoAPI::DumpOper(const Standard_CString theFilePath,
const TopoDS_Shape& theShape1,
const TopoDS_Shape& theShape2,
const TopoDS_Shape& theResult,
BOPAlgo_Operation theOperation,
Standard_Boolean isNonValidArgs)
has been removed. The contents has been shifted into the file:
BRepAlgoAPI_BooleanOperation.cxx
II.3. classes QANewModTopOpe_Glue, QANewModTopOpe_Intersection
the modifications have been done to provide the consistency with the
modifications in BRepAlgoAPI package [I].
-------------------------------------------------------------------------------------------------------------
III. Modified entities:
packages:
BOPAlgo
BRepAlgoAPI
BOPTest
QANewModTopOpe
Test cases for issue CR25614
87 lines
2.8 KiB
Plaintext
87 lines
2.8 KiB
Plaintext
-- Created by: Peter KURNEV
|
|
-- Copyright (c) 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.
|
|
|
|
deferred class Algo from BRepAlgoAPI
|
|
inherits MakeShape from BRepBuilderAPI
|
|
---Purpose: provides the root interface for algorithms
|
|
|
|
uses
|
|
BaseAllocator from BOPCol,
|
|
ProgressIndicator from Message,
|
|
Shape from TopoDS
|
|
|
|
--raises
|
|
|
|
is
|
|
Initialize
|
|
returns Algo from BRepAlgoAPI;
|
|
---C++: alias "Standard_EXPORT virtual ~BRepAlgoAPI_Algo();"
|
|
---Purpose: Empty constructor
|
|
|
|
Initialize (theAllocator: BaseAllocator from BOPCol)
|
|
returns Algo from BRepAlgoAPI;
|
|
---Purpose: Empty constructor
|
|
|
|
ErrorStatus (me)
|
|
returns Integer from Standard;
|
|
---Purpose: Returns error status of the algorithm
|
|
-- ==0 - no errors occured
|
|
-- !=0 - is in the event of various error conditions
|
|
|
|
WarningStatus (me)
|
|
returns Integer from Standard;
|
|
---Purpose: Returns warning status of the algorithm
|
|
-- ==0 - no warning occured
|
|
-- !=0 - is in the event of various warning conditions
|
|
|
|
Allocator(me)
|
|
returns BaseAllocator from BOPCol;
|
|
---C++: return const &
|
|
|
|
SetRunParallel(me:out;
|
|
theFlag:Boolean from Standard);
|
|
---Purpose: Set the flag of parallel processing
|
|
-- if <theFlag> is true the parallel processing is switched on
|
|
-- if <theFlag> is false the parallel processing is switched off
|
|
--
|
|
RunParallel(me)
|
|
returns Boolean from Standard;
|
|
---Purpose: Returns the flag of parallel processing
|
|
|
|
SetProgressIndicator(me:out;
|
|
theObj: ProgressIndicator from Message);
|
|
---Purpose: Set the Progress Indicator object.
|
|
|
|
UserBreak(me)
|
|
is protected;
|
|
---Purpose: Breaks the execution if the break signal
|
|
-- is indicated by myProgressIndicator.
|
|
|
|
Shape(me)
|
|
returns Shape from TopoDS
|
|
is redefined;
|
|
---C++: return const &
|
|
|
|
Clear(me:out)
|
|
is virtual protected;
|
|
|
|
fields
|
|
myAllocator : BaseAllocator from BOPCol is protected;
|
|
myErrorStatus : Integer from Standard is protected;
|
|
myWarningStatus : Integer from Standard is protected;
|
|
myRunParallel : Boolean from Standard is protected;
|
|
myProgressIndicator : ProgressIndicator from Message is protected;
|
|
|
|
end Algo;
|