1 -- Created on: 1991-04-12
2 -- Created by: Michel CHAUVAT
3 -- Copyright (c) 1991-1999 Matra Datavision
4 -- Copyright (c) 1999-2014 OPEN CASCADE SAS
6 -- This file is part of Open CASCADE Technology software library.
8 -- This library is free software; you can redistribute it and/or modify it under
9 -- the terms of the GNU Lesser General Public License version 2.1 as published
10 -- by the Free Software Foundation, with special exception defined in the file
11 -- OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12 -- distribution for complete text of the license and disclaimer of any warranty.
14 -- Alternatively, this file may be used under the terms of Open CASCADE
15 -- commercial license or contractual agreement.
17 -- Jean-Claude VAUTHIER January 1992
20 class Sinert from BRepGProp inherits GProps
23 -- Computes the global properties of a face in 3D space.
24 -- The face 's requirements to evaluate the global properties
25 -- are defined in the template FaceTool from package GProp.
33 Create returns Sinert;
35 Create (S: Face; SLocation: Pnt) returns Sinert;
36 Create (S : in out Face; D : in out Domain; SLocation : Pnt) returns Sinert;
38 -- Builds a Sinert to evaluate the global properties of
39 -- the face <S>. If isNaturalRestriction is true the domain of S is defined
40 -- with the natural bounds, else it defined with an iterator
41 -- of Edge from TopoDS (see DomainTool from GProp)
42 Create (S: in out Face; SLocation: Pnt; Eps: Real) returns Sinert;
43 Create (S: in out Face; D : in out Domain; SLocation: Pnt; Eps: Real) returns Sinert;
45 -- Parameter Eps sets maximal relative error of computed area.
47 SetLocation(me: in out; SLocation: Pnt);
49 Perform(me: in out; S: Face);
50 Perform(me : in out; S : in out Face ; D : in out Domain);
51 Perform(me: in out; S: in out Face; Eps: Real) returns Real;
52 Perform(me: in out; S: in out Face; D : in out Domain; Eps: Real) returns Real;
54 GetEpsilon(me: out) returns Real;
56 -- If previously used method contained Eps parameter
57 -- get actual relative error of the computation, else return 1.0.
60 myEpsilon: Real from Standard;