1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-06 18:26:22 +03:00
occt/src/IntPatch/IntPatch_PolyhedronTool.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

99 lines
3.3 KiB
Plaintext

-- Created on: 1993-05-06
-- Created by: Jacques GOUSSARD
-- 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 PolyhedronTool from IntPatch
---Purpose: Describe the signature of a polyedral surface with
-- only triangular facets and the necessary informations
-- to compute the interferences.
uses
Polyhedron from IntPatch,
XYZ from gp,
Pnt from gp,
Box from Bnd,
HArray1OfBox from Bnd
raises OutOfRange from Standard
is Bounding (myclass; thePolyh : Polyhedron from IntPatch)
returns Box from Bnd;
---Purpose: Give the bounding box of the Polyhedron.
---C++: return const &
---C++: inline
ComponentsBounding
(myclass; thePolyh : Polyhedron from IntPatch)
returns HArray1OfBox from Bnd;
---Purpose: Give the array of boxes. The box <n> corresponding
-- to the triangle <n>.
---C++: return const &
---C++: inline
DeflectionOverEstimation
(myclass; thePolyh : Polyhedron from IntPatch)
returns Real from Standard;
---Purpose: Give the tolerance of the polygon.
---C++: inline
-- Structure needings :
NbTriangles (myclass; thePolyh : Polyhedron from IntPatch)
returns Integer from Standard;
---Purpose: Give the number of triangles in this polyedral surface.
---C++: inline
Triangle (myclass; thePolyh : Polyhedron from IntPatch;
Index : in Integer from Standard;
P1,P2,P3 : out Integer from Standard)
raises OutOfRange from Standard;
---Purpose: Give the indices of the 3 points of the triangle of
-- address Index in the Polyhedron.
---C++: inline
Point (myclass; thePolyh : Polyhedron from IntPatch;
Index : in Integer)
returns Pnt from gp
raises OutOfRange from Standard;
---Purpose: Give the point of index i in the polyedral surface.
---C++: return const &
---C++: inline
TriConnex (myclass; thePolyh : Polyhedron from IntPatch;
Triang : in Integer;
Pivot,Pedge : in Integer;
TriCon : out Integer;
OtherP : out Integer)
returns Integer
raises OutOfRange from Standard;
---Purpose: Gives the addresse Tricon of the triangle connexe to
-- the triangle of address Triang by the edge Pivot Pedge
-- and the third point of this connexe triangle. When we
-- are on a free edge TriCon==0 but the function return
-- the value of the triangle in the other side of Pivot
-- on the free edge. Used to turn around a vertex.
---C++: inline
end PolyhedronTool;