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
|
-- File: BRepOffset.cdl
-- Created: Thu Oct 12 10:59:22 1995
-- Author: Bruno DUMORTIER
-- <dub@fuegox>
---Copyright: Matra Datavision 1995
package BRepOffset
---Purpose:
uses
MMgt,
Geom,
TopoDS,
TopAbs,
TCollection,
TopTools,
GeomAbs,
BRepAlgo
is
enumeration Type is
Concave,
Convex,
Tangent,
FreeBoundary,
Other
end Type;
enumeration Mode is
Skin,
Pipe,
RectoVerso
end Mode;
---Purpose:
-- Lists the offset modes. These are the following:
-- - BRepOffset_Skin which describes the offset along
-- the surface of a solid, used to obtain a manifold topological space,
-- - BRepOffset_Pipe which describes the offset of a
-- curve, used to obtain a pre-surface,
-- - BRepOffset_RectoVerso which describes the offset
-- of a given surface shell along both sides of the surface.
enumeration Status is
---Purpose: status of an offset face
-- Good :
-- Reversed : e.g. Offset > Radius of a cylinder
-- Degenerated : e.g. Offset = Radius of a cylinder
-- Unknown : e.g. for a Beziersurf
Good,
Reversed,
Degenerated,
Unknown
end Status;
enumeration Error is
NoError,
OffsetSurfaceFailed,
UnCorrectClosingFace,
ExtentFaceFailed,
RadiusEqualOffset,
UnknownError
end Error;
class MakeOffset;
--class Loop;
class Inter3d;
class Inter2d;
class Offset;
---Purpose: This class compute elemenary offset surface.
-- Evaluate the offset generated :
-- 1 - from a face.
-- 2 - from an edge.
-- 3 - from a vertex.
--
class Analyse;
class MakeLoops;
class Tool;
--class Image;
--class AsDes;
class Interval;
class ListOfInterval instantiates
List from TCollection (Interval from BRepOffset);
class DataMapOfShapeListOfInterval instantiates
DataMap from TCollection(Shape from TopoDS,
ListOfInterval from BRepOffset,
ShapeMapHasher from TopTools );
class DataMapOfShapeOffset instantiates
DataMap from TCollection(Shape from TopoDS,
Offset from BRepOffset,
ShapeMapHasher from TopTools );
class DataMapOfShapeMapOfShape instantiates
DataMap from TCollection(Shape from TopoDS,
MapOfShape from TopTools,
ShapeMapHasher from TopTools);
Surface( Surface : in Surface from Geom;
Offset : in Real from Standard;
Status : out Status from BRepOffset)
---Purpose: returns the Offset surface computed from the
-- surface <Surface> at an OffsetDistance <Offset>.
--
-- If possible, this method returns the real type of
-- the surface ( e.g. An Offset of a plane is a plane).
--
-- If no particular case is detected, the returned
-- surface will have the Type Geom_OffsetSurface.
returns Surface from Geom;
end BRepOffset;
|