1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-05-21 10:55:33 +03:00
occt/src/TopOpeBRepBuild/TopOpeBRepBuild_ShellFaceClassifier.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

86 lines
2.9 KiB
Plaintext

-- Created on: 1993-06-17
-- Created by: Jean Yves LEBEY
-- 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 ShellFaceClassifier from TopOpeBRepBuild
inherits CompositeClassifier from TopOpeBRepBuild
---Purpose:
-- Classify faces and shells.
-- shapes are Shells, Elements are Faces.
uses
ShapeEnum from TopAbs,
State from TopAbs,
Shape from TopoDS,
Shell from TopoDS,
Pnt from gp,
DataMapOfShapeShape from TopTools,
Builder from BRep,
SolidClassifier from TopOpeBRepTool,
BlockBuilder from TopOpeBRepBuild,
Loop from TopOpeBRepBuild
is
Create(BB : BlockBuilder) returns ShellFaceClassifier;
---Purpose: Creates a classifier in 3D space, to compare :
-- a face with a set of faces
-- a shell with a set of faces
-- a shell with a shell
Clear(me : in out) is static;
CompareShapes(me : in out; B1,B2 : Shape from TopoDS)
---Purpose: classify shell <B1> with shell <B2>
returns State from TopAbs;
CompareElementToShape(me : in out; F : Shape; S : Shape)
---Purpose: classify face <F> with shell <S>
returns State from TopAbs;
ResetShape(me : in out; S : Shape);
---Purpose: prepare classification involving shell <S>
-- calls ResetElement on first face of <S>
ResetElement(me : in out; F : Shape);
---Purpose: prepare classification involving face <F>
-- define 3D point (later used in Compare()) on first vertex of face <F>.
CompareElement(me : in out; F : Shape)
returns Boolean from Standard;
---Purpose: Add the face <F> in the set of faces used in 3D point
-- classification. Returns FALSE if the face <F> has been already
-- added to the set of faces, otherwise returns TRUE.
State(me : in out) returns State from TopAbs;
---Purpose: Returns state of classification of 3D point, defined by
-- ResetElement, with the current set of faces, defined by Compare.
fields
myFirstCompare : Boolean from Standard;
myPoint3d : Pnt from gp;
myShell : Shell from TopoDS;
myBuilder : Builder from BRep;
mySolidClassifier : SolidClassifier from TopOpeBRepTool;
myFaceShellMap : DataMapOfShapeShape from TopTools;
myShape : Shape from TopoDS;
end ShellFaceClassifier from TopOpeBRepBuild;