1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-26 10:19:45 +03:00
occt/src/BRepAlgo/BRepAlgo_BooleanOperations.cdl
abv d5f74e42d6 0024624: Lost word in license statement in source files
License statement text corrected; compiler warnings caused by Bison 2.41 disabled for MSVC; a few other compiler warnings on 54-bit Windows eliminated by appropriate type cast
Wrong license statements corrected in several files.
Copyright and license statements added in XSD and GLSL files.
Copyright year updated in some files.
Obsolete documentation files removed from DrawResources.
2014-02-20 16:15:17 +04:00

139 lines
4.8 KiB
Plaintext

-- Created on: 1993-10-14
-- Created by: Prestataire Mary FABIEN
-- Copyright (c) 1993-1999 Matra Datavision
-- 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 BooleanOperations from BRepAlgo
uses
State from TopAbs,
Shape from TopoDS,
Face from TopoDS,
Edge from TopoDS,
MapOfShape from TopTools,
ListOfShape from TopTools,
HBuilder from TopOpeBRepBuild,
HDataStructure from TopOpeBRepDS,
DSAccess from BRepAlgo
is
Create returns BooleanOperations from BRepAlgo;
Shapes2d(me : in out; S1,S2 : Shape from TopoDS);
---Purpose: S1 is a Shell with ALL faces supported by the SAME S2 is
-- an Edge INCLUDED in that surface with pcurve.
-- this avoids a time-consuming 3D operation, compared to Shapes.
Shapes(me : in out; S1,S2 : Shape from TopoDS);
---Purpose: Defines the arguments.
SetApproxParameters(me : in out; NbPntMax : Integer from Standard;
Tol3D, Tol2D : Real from Standard;
RelativeTol : Boolean from Standard);
---Purpose: Sets different parameters for the curve approximations :
-- NbPntMax : Maximum number of points to be approximated at
-- the same time in one curve.
-- Tol3D, Tol2D : Tolerances to be reached by the approximation.
-- RelativeTol : The given tolerances are relative.
Perform(me : in out)
---Purpose: Performs the global boolean operation.
is private ;
Perform(me : in out; State1, State2 : State from TopAbs)
---Purpose: Performs the global boolean operation and build the
-- result in regards of the given states.
is private ;
Define(me : in out; S1,S2 : Shape from TopoDS;
HDS : in out HDataStructure from TopOpeBRepDS);
---Purpose:
Common(me : in out)
---Purpose: returns the common part of the shapes.
---C++: return const &
returns Shape from TopoDS;
Fus(me : in out)
---Purpose: returns the fuse part of the shapes.
---C++: return const &
returns Shape from TopoDS;
Cut(me : in out)
---Purpose: returns the cut part of the shapes.
---C++: return const &
returns Shape from TopoDS;
Section(me : in out)
---Purpose: returns the intersection of the shapes.
---C++: return const &
returns Shape from TopoDS;
Shape(me : in out)
---Purpose: returns the result of the boolean operation.
---C++: return const &
returns Shape from TopoDS;
ShapeFrom(me : in out; S : Shape from TopoDS)
---Purpose: Returns the shape(s) resulting of the boolean operation
-- issued from the shape <S>.
---C++: return const &
returns Shape from TopoDS ;
Modified (me: in out; S : Shape from TopoDS)
---Purpose: Returns the list of the descendant shapes of the shape <S>.
---C++: return const &
returns ListOfShape from TopTools ;
IsDeleted (me: in out; S : Shape from TopoDS)
---Purpose: Returns the fact that the shape <S> has been deleted or not
-- by the boolean operation.
returns Boolean;
DataStructure(me) returns HDataStructure from TopOpeBRepDS;
---C++: return const &
ChangeDataStructure(me : in out) returns HDataStructure from TopOpeBRepDS;
---C++: return &
Builder(me) returns HBuilder from TopOpeBRepBuild;
---C++: return const &
ChangeBuilder(me : in out) returns HBuilder from TopOpeBRepBuild;
---C++: return &
--
DataStructureAccess(me : in out) returns DSAccess from BRepAlgo;
---Purpose: returns the member myDSA. It is useful to then access
-- the method GetSectionEdgeSet (wich is a member of DSAccess)
---C++: return &
fields
myDSA : DSAccess from BRepAlgo;
myS1 : Shape from TopoDS;
myS2 : Shape from TopoDS;
myShape : Shape from TopoDS;
myMapShape : MapOfShape from TopTools;
-- myModified : ListOfShape from TopTools;
myResult : Shape from TopoDS;
myApproxNbPntMax : Integer from Standard;
myApproxTol3D : Real from Standard;
myApproxTol2D : Real from Standard;
myApproxRelativeTol : Boolean from Standard;
end BooleanOperations from BRepAlgo;