Adding of testing cases from subgroups 937 940 and 941 of CHL group
[occt.git] / src / BRepOffset / BRepOffset.cdl
CommitLineData
b311480e 1-- Created on: 1995-10-12
2-- Created by: Bruno DUMORTIER
3-- Copyright (c) 1995-1999 Matra Datavision
4-- Copyright (c) 1999-2012 OPEN CASCADE SAS
5--
6-- The content of this file is subject to the Open CASCADE Technology Public
7-- License Version 6.5 (the "License"). You may not use the content of this file
8-- except in compliance with the License. Please obtain a copy of the License
9-- at http://www.opencascade.org and read it completely before using this file.
10--
11-- The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
12-- main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
13--
14-- The Original Code and all software distributed under the License is
15-- distributed on an "AS IS" basis, without warranty of any kind, and the
16-- Initial Developer hereby disclaims all such warranties, including without
17-- limitation, any warranties of merchantability, fitness for a particular
18-- purpose or non-infringement. Please see the License for the specific terms
19-- and conditions governing the rights and limitations under the License.
20
7fd59977 21
22
23
24package BRepOffset
25
26 ---Purpose:
27
28uses
29 MMgt,
30 Geom,
31 TopoDS,
32 TopAbs,
33 TCollection,
34 TopTools,
35 GeomAbs,
36 BRepAlgo
37
38is
39 enumeration Type is
40 Concave,
41 Convex,
42 Tangent,
43 FreeBoundary,
44 Other
45 end Type;
46
47 enumeration Mode is
48 Skin,
49 Pipe,
50 RectoVerso
51 end Mode;
52---Purpose:
53-- Lists the offset modes. These are the following:
54-- - BRepOffset_Skin which describes the offset along
55-- the surface of a solid, used to obtain a manifold topological space,
56-- - BRepOffset_Pipe which describes the offset of a
57-- curve, used to obtain a pre-surface,
58-- - BRepOffset_RectoVerso which describes the offset
59-- of a given surface shell along both sides of the surface.
60
61 enumeration Status is
62 ---Purpose: status of an offset face
63 -- Good :
64 -- Reversed : e.g. Offset > Radius of a cylinder
65 -- Degenerated : e.g. Offset = Radius of a cylinder
66 -- Unknown : e.g. for a Beziersurf
67 Good,
68 Reversed,
69 Degenerated,
70 Unknown
71 end Status;
72
73 enumeration Error is
74 NoError,
75 OffsetSurfaceFailed,
76 UnCorrectClosingFace,
77 ExtentFaceFailed,
78 RadiusEqualOffset,
79 UnknownError
80 end Error;
81
82 class MakeOffset;
83
84 --class Loop;
85
86 class Inter3d;
87
88 class Inter2d;
89
90 class Offset;
91 ---Purpose: This class compute elemenary offset surface.
92 -- Evaluate the offset generated :
93 -- 1 - from a face.
94 -- 2 - from an edge.
95 -- 3 - from a vertex.
96 --
97
98 class Analyse;
99
100 class MakeLoops;
101
102 class Tool;
103
104 --class Image;
105
106 --class AsDes;
107
108
109 class Interval;
110
111 class ListOfInterval instantiates
112 List from TCollection (Interval from BRepOffset);
113
114 class DataMapOfShapeListOfInterval instantiates
115 DataMap from TCollection(Shape from TopoDS,
116 ListOfInterval from BRepOffset,
117 ShapeMapHasher from TopTools );
118
119 class DataMapOfShapeOffset instantiates
120 DataMap from TCollection(Shape from TopoDS,
121 Offset from BRepOffset,
122 ShapeMapHasher from TopTools );
123
124 class DataMapOfShapeMapOfShape instantiates
125 DataMap from TCollection(Shape from TopoDS,
126 MapOfShape from TopTools,
127 ShapeMapHasher from TopTools);
128
129
130 Surface( Surface : in Surface from Geom;
131 Offset : in Real from Standard;
132 Status : out Status from BRepOffset)
133 ---Purpose: returns the Offset surface computed from the
134 -- surface <Surface> at an OffsetDistance <Offset>.
135 --
136 -- If possible, this method returns the real type of
137 -- the surface ( e.g. An Offset of a plane is a plane).
138 --
139 -- If no particular case is detected, the returned
140 -- surface will have the Type Geom_OffsetSurface.
141 returns Surface from Geom;
142
143end BRepOffset;