blob: 43adbfe8c78c0f7e028b0e968e457fc13688bf84 (
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
|
-- File: TopOpeBRepBuild_BlockBuilder.cdl
-- Created: Thu Feb 25 15:16:42 1993
-- Author: Jean Yves LEBEY
-- <jyl@phylox>
---Copyright: Matra Datavision 1993
class BlockBuilder from TopOpeBRepBuild
uses
Shape from TopoDS, -- Face,Edge
ShapeSet from TopOpeBRepBuild,
IndexedMapOfOrientedShape from TopTools,
BlockIterator from TopOpeBRepBuild,
SequenceOfInteger from TColStd,
DataMapOfIntegerInteger from TColStd
is
Create returns BlockBuilder;
-- creation of the blocks buildable from a ShapeSet
Create(SS : in out ShapeSet) returns BlockBuilder;
MakeBlock(me : in out; SS : in out ShapeSet) is static;
-- Iteration on blocks made by MakeBlock
InitBlock(me : in out) is static;
MoreBlock(me) returns Boolean from Standard is static;
NextBlock(me : in out) is static;
-- Iteration on shapes of current block
BlockIterator(me) returns BlockIterator is static;
Element(me; BI : BlockIterator) returns Shape from TopoDS is static;
---Purpose: Returns the current element of <BI>.
---C++: return const &
Element(me; I : Integer) returns Shape from TopoDS is static;
---C++: return const &
Element(me; S : Shape from TopoDS) returns Integer;
ElementIsValid(me; BI : BlockIterator) returns Boolean;
ElementIsValid(me; I : Integer) returns Boolean;
AddElement(me : in out; S : Shape from TopoDS) returns Integer;
SetValid(me : in out; BI : BlockIterator; isvalid : Boolean);
SetValid(me : in out; I : Integer; isvalid : Boolean);
CurrentBlockIsRegular(me : in out) returns Boolean from Standard;
fields
myOrientedShapeMapIsValid : DataMapOfIntegerInteger from TColStd;
myOrientedShapeMap : IndexedMapOfOrientedShape from TopTools;
myBlocks : SequenceOfInteger from TColStd;
myBlockIndex : Integer from Standard;
myIsDone : Boolean from Standard;
myBlocksIsRegular : SequenceOfInteger from TColStd;
end BlockBuilder from TopOpeBRepBuild;
|