1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-10 18:51:21 +03:00
occt/src/ShapeAnalysis/ShapeAnalysis_Shell.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

82 lines
3.2 KiB
Plaintext

-- Created on: 1998-06-03
-- Created by: data exchange team
-- Copyright (c) 1998-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 Shell from ShapeAnalysis
---Purpose: This class provides operators to analyze edges orientation
-- in the shell.
uses
Shape from TopoDS,
Compound from TopoDS,
IndexedMapOfShape from TopTools
is
Clear (me : in out);
---Purpose: Clears data about loaded shells and performed checks
LoadShells (me : in out; shape : Shape from TopoDS);
---Purpose: Adds shells contained in the <shape> to the list of loaded shells
CheckOrientedShells (me : in out; shape : Shape from TopoDS;
alsofree: Boolean = Standard_False;
checkinternaledges: Boolean = Standard_False)
returns Boolean;
---Purpose: Checks if shells fulfill orientation condition, i.e. if each
-- edge is, either present once (free edge) or twice (connected
-- edge) but with different orientations (FORWARD/REVERSED)
-- Edges which do not fulfill these conditions are bad
--
-- If <alsofree> is True free edges are considered.
-- Free edges can be queried but are not bad
IsLoaded (me; shape : Shape from TopoDS) returns Boolean;
---Purpose: Tells if a shape is loaded (only shells are checked)
NbLoaded (me) returns Integer;
---Purpose: Returns the actual number of loaded shapes (i.e. shells)
Loaded (me; num : Integer) returns Shape from TopoDS;
---Purpose: Returns a loaded shape specified by its rank number.
-- Returns null shape if <num> is out of range
HasBadEdges (me) returns Boolean;
---Purpose: Tells if at least one edge is recorded as bad
BadEdges (me) returns Compound from TopoDS;
---Purpose: Returns the list of bad edges as a Compound
-- It is empty (not null) if no edge are recorded as bad
HasFreeEdges (me) returns Boolean;
---Purpose: Tells if at least one edge is recorded as free (not connected)
FreeEdges (me) returns Compound from TopoDS;
---Purpose: Returns the list of free (not connected) edges as a Compound
-- It is empty (not null) if no edge are recorded as free
HasConnectedEdges (me) returns Boolean;
---Purpose: Tells if at least one edge is connected (shared twice or more)
fields
myShells: IndexedMapOfShape from TopTools;
myBad : IndexedMapOfShape from TopTools;
myFree : IndexedMapOfShape from TopTools;
myConex : Boolean; -- are there or not
end Shell;