blob: 618265ba187ffd467ba294a27085c2b56914abcd (
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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
|
-- File: BRepFill_OffsetWire.cdl
-- Created: Wed Apr 19 14:28:26 1995
-- Author: Yves FRICAUD
-- <yfr@stylox>
---Copyright: Matra Datavision 1995
class OffsetWire from BRepFill
---Purpose: Constructs a Offset Wire to a spine (wire or face)
-- on the left of spine.
uses
Face from TopoDS,
Shape from TopoDS,
JoinType from GeomAbs,
ListOfShape from TopTools,
DataMapOfShapeShape from TopTools,
IndexedDataMapOfOrientedShapeListOfShape from BRepFill,
BisectingLocus from BRepMAT2d,
LinkTopoBilo from BRepMAT2d
raises
ConstructionError from Standard,
NoSuchObject from Standard
is
Create returns OffsetWire from BRepFill;
Create ( Spine : Face from TopoDS;
Join : JoinType from GeomAbs = GeomAbs_Arc)
returns OffsetWire from BRepFill;
Init ( me : in out;
Spine : Face from TopoDS;
Join : JoinType from GeomAbs = GeomAbs_Arc)
---Purpose: Initialize the evaluation of Offseting.
raises
ConstructionError from Standard
is static;
Perform (me : in out;
Offset : Real from Standard;
Alt : Real from Standard = 0.0)
---Purpose: Performs an OffsetWire at an altitude <Alt> from
-- the face ( According to the orientation of the
-- face)
raises
ConstructionError from Standard
is static;
PerformWithBiLo (me : in out;
WSP : Face from TopoDS;
Offset : Real from Standard;
Locus : BisectingLocus from BRepMAT2d;
Link : in out LinkTopoBilo from BRepMAT2d;
Join : JoinType from GeomAbs = GeomAbs_Arc;
Alt : Real from Standard = 0.0)
---Purpose: Performs an OffsetWire
raises
ConstructionError from Standard
is static;
IsDone ( me)
returns Boolean from Standard
is static;
Spine(me)
returns Face from TopoDS
---C++: return const &
is static;
Shape(me) returns Shape from TopoDS
---Purpose: returns the generated shape.
---C++ : return const &
is static;
GeneratedShapes (me : in out ; SpineShape : Shape from TopoDS)
---Purpose: Returns the shapes created from a subshape
-- <SpineShape> of the spine.
-- Returns the last computed Offset.
--
---C++ : return const &
returns ListOfShape from TopTools
is static;
JoinType (me) returns JoinType from GeomAbs
is static;
Generated (me : in out )
---C++: return &
returns IndexedDataMapOfOrientedShapeListOfShape from BRepFill
is static private;
PrepareSpine (me : in out)
---Purpose: Prepare the spine as follow
-- - Cut the spine-Edges at the extrema of curvature and
-- at the inflexion points.
is static private;
Add(me : in out; Other : OffsetWire from BRepFill)
---Purpose: Add the OffsetWire <Other> to <me> and update <myMap>
is static private;
MakeWires (me : in out)
---Purpose: Constructs the wires with the trimmed offset edges.
is static private;
FixHoles (me : in out)
---Purpose: Fix holes between open wires where it is possible
is static private;
fields
mySpine : Face from TopoDS;
myWorkSpine : Face from TopoDS;
myOffset : Real from Standard; -- >0 ;
myShape : Shape from TopoDS;
myIsDone : Boolean from Standard;
myJoinType : JoinType from GeomAbs;
myMap : IndexedDataMapOfOrientedShapeListOfShape from BRepFill;
myBilo : BisectingLocus from BRepMAT2d;
myLink : LinkTopoBilo from BRepMAT2d;
myMapSpine : DataMapOfShapeShape from TopTools;
myCallGen : Boolean from Standard;
end OffsetWire;
|