1 -- Created on: 1994-07-22
2 -- Created by: Remi LEQUETTE
3 -- Copyright (c) 1994-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 class FindSurface from BRepLib
19 ---Purpose: Provides an algorithm to find a Surface through a
22 -- The edges of the shape given as argument are
23 -- explored if they are not coplanar at the required
24 -- tolerance the method Found returns false.
26 -- If a null tolerance is given the max of the edges
27 -- tolerances is used.
29 -- The method Tolerance returns the true distance of
30 -- the edges to the Surface.
32 -- The method Surface returns the Surface if found.
34 -- The method Existed returns returns True if the
35 -- Surface was already attached to some of the edges.
37 -- When Existed returns True the Surface may have a
38 -- location given by the Location method.
48 NoSuchObject from Standard
52 Create returns FindSurface from BRepLib;
54 Create (S : Shape from TopoDS;
55 Tol : Real from Standard = -1;
56 OnlyPlane : Boolean from Standard = Standard_False;
57 OnlyClosed: Boolean from Standard = Standard_False)
58 ---Purpose: Computes the Surface from the edges of <S> with the
60 -- if <OnlyPlane> is true, the computed surface will be
61 -- a plane. If it is not possible to find a plane, the
62 -- flag NotDone will be set.
63 -- If <OnlyClosed> is true, then S sould be a wire
64 -- and the existing surface, on which wire S is not
65 -- closed in 2D, will be ignored.
66 returns FindSurface from BRepLib;
69 S : Shape from TopoDS;
70 Tol : Real from Standard = -1;
71 OnlyPlane : Boolean from Standard = Standard_False;
72 OnlyClosed: Boolean from Standard = Standard_False)
73 ---Purpose: Computes the Surface from the edges of <S> with the
75 -- if <OnlyPlane> is true, the computed surface will be
76 -- a plane. If it is not possible to find a plane, the
77 -- flag NotDone will be set.
78 -- If <OnlyClosed> is true, then S sould be a wire
79 -- and the existing surface, on which wire S is not
80 -- closed in 2D, will be ignored.
83 Found(me) returns Boolean
86 Surface(me) returns mutable Surface from Geom
89 Tolerance(me) returns Real
92 ToleranceReached(me) returns Real
95 Existed(me) returns Boolean
98 Location(me) returns Location from TopLoc
103 mySurface : Surface from Geom;
107 myLocation : Location from TopLoc;