blob: e1d609f77fcbe0be856908e8523d83b912a55b66 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
|
-- File: BRepLib_FindSurface.cdl
-- Created: Fri Jul 22 11:31:40 1994
-- Author: Remi LEQUETTE
-- <rle@bravox>
---Copyright: Matra Datavision 1994
class FindSurface from BRepLib
---Purpose: Provides an algorithm to find a Surface through a
-- set of edges.
--
-- The edges of the shape given as argument are
-- explored if they are not coplanar at the required
-- tolerance the method Found returns false.
--
-- If a null tolerance is given the max of the edges
-- tolerances is used.
--
-- The method Tolerance returns the true distance of
-- the edges to the Surface.
--
-- The method Surface returns the Surface if found.
--
-- The method Existed returns returns True if the
-- Surface was already attached to some of the edges.
--
-- When Existed returns True the Surface may have a
-- location given by the Location method.
uses
Shape from TopoDS,
Location from TopLoc,
Surface from Geom
raises
NoSuchObject from Standard
is
Create returns FindSurface from BRepLib;
Create (S : Shape from TopoDS;
Tol : Real from Standard = -1;
OnlyPlane : Boolean from Standard = Standard_False)
---Purpose: Computes the Surface from the edges of <S> with the
-- given tolerance.
-- if <OnlyPlane> is true, the computed surface will be
-- a plane. If it is not possible to find a plane, the
-- flag NotDone will be set.
returns FindSurface from BRepLib;
Init (me : in out;
S : Shape from TopoDS;
Tol : Real from Standard = -1;
OnlyPlane : Boolean from Standard = Standard_False)
---Purpose: Computes the Surface from the edges of <S> with the
-- given tolerance.
-- if <OnlyPlane> is true, the computed surface will be
-- a plane. If it is not possible to find a plane, the
-- flag NotDone will be set.
is static;
Found(me) returns Boolean
is static;
Surface(me) returns mutable Surface from Geom
is static;
Tolerance(me) returns Real
is static;
ToleranceReached(me) returns Real
is static;
Existed(me) returns Boolean
is static;
Location(me) returns Location from TopLoc
is static;
fields
mySurface : Surface from Geom;
myTolerance : Real;
myTolReached : Real;
isExisted : Boolean;
myLocation : Location from TopLoc;
end FindSurface;
|