Integration of OCCT 6.5.0 from SVN
[occt.git] / src / BRepBndLib / BRepBndLib.cdl
7fd59977 1-- File: BRepBndLib.cdl
2-- Created: Thu Jul 22 16:12:28 1993
3-- Author: Isabelle GRIGNON
4-- <isg@nonox>
5---Copyright: Matra Datavision 1993
8package BRepBndLib
10 ---Purpose: This package provides the bounding boxes for curves
11 -- and surfaces from BRepAdaptor.
12-- Functions to add a topological shape to a bounding box
13uses BRepAdaptor,
14 Bnd,
15 TopoDS,
16 Geom,
17 GeomAbs,
18 TColgp,
19 gp
23 --
24 -- Package methods for shapes
25 --
27 Add(S : Shape from TopoDS; B : in out Box from Bnd);
28 ---Purpose:Adds the shape S to the bounding box B.
29-- More precisely are successively added to B:
30-- - each face of S; the triangulation of the face is used if it exists,
31-- - then each edge of S which does not belong to a face,
32-- the polygon of the edge is used if it exists
33-- - and last each vertex of S which does not belong to an edge.
34-- After each elementary operation, the bounding box B is
35-- enlarged by the tolerance value of the relative sub-shape.
36-- When working with the triangulation of a face this value of
37-- enlargement is the sum of the triangulation deflection and
38-- the face tolerance. When working with the
39-- polygon of an edge this value of enlargement is
40-- the sum of the polygon deflection and the edge tolerance.
41-- Warning
42-- - This algorithm is time consuming if triangulation has not
43-- been inserted inside the data structure of the shape S.
44-- - The resulting bounding box may be somewhat larger than the object.
47 AddClose(S : Shape from TopoDS; B : in out Box from Bnd);
48 ---Purpose: Adds the shape S to the bounding box B.
49-- This is a quick algorithm but only works if the shape S is
50-- composed of polygonal planar faces, as is the case if S is
51-- an approached polyhedral representation of an exact
52-- shape. Pay particular attention to this because this
53-- condition is not checked and, if it not respected, an error
54-- may occur in the algorithm for which the bounding box is built.
55-- Note that the resulting bounding box is not enlarged by the
56-- tolerance value of the sub-shapes as is the case with the
57-- Add function. So the added part of the resulting bounding
58-- box is closer to the shape S.
61end BRepBndLib;