blob: a0f803d47acb6898595974ef3cc74e06edefa351 (
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
|
-- File: TopOpeBRepTool_ShapeExplorer.cdl
-- Created: Thu Jul 13 17:17:04 1995
-- Author: Jean Yves LEBEY
-- <jyl@meteox>
---Copyright: Matra Datavision 1995
class ShapeExplorer from TopOpeBRepTool
uses
Explorer from TopExp,
ShapeEnum from TopAbs,
Shape from TopoDS
is
Create returns ShapeExplorer from TopOpeBRepTool;
---Purpose: Creates an empty explorer, becomes usefull after Init.
Create(S : Shape from TopoDS;
ToFind : ShapeEnum from TopAbs;
ToAvoid : ShapeEnum from TopAbs = TopAbs_SHAPE)
returns ShapeExplorer from TopOpeBRepTool;
---Purpose: Creates an Explorer on the Shape <S>.
--
-- <ToFind> is the type of shapes to search.
-- TopAbs_VERTEX, TopAbs_EDGE, ...
--
-- <ToAvoid> is the type of shape to skip in the
-- exploration. If <ToAvoid> is equal or less
-- complex than <ToFind> or if <ToAVoid> is SHAPE it
-- has no effect on the exploration.
--
Init(me : in out; S : Shape from TopoDS;
ToFind : ShapeEnum from TopAbs;
ToAvoid : ShapeEnum from TopAbs = TopAbs_SHAPE)
is static;
More(me) returns Boolean
---Purpose: Returns True if there are more shapes in the
-- exploration.
is static;
Next(me : in out)
---Purpose: Moves to the next Shape in the exploration.
is static;
Current(me) returns Shape from TopoDS
---Purpose: Returns the current shape in the exploration.
---C++: return const &
is static;
-- debug
NbShapes(me) returns Integer from Standard is static;
Index(me) returns Integer from Standard is static;
DumpCurrent(me; OS : in out OStream) returns OStream
---C++: return &
is static;
fields
myExplorer : Explorer from TopExp;
myIndex : Integer from Standard;
myNbShapes : Integer from Standard;
end ShapeExplorer from TopOpeBRepTool;
|