1 -- Created on: 1996-02-13
2 -- Created by: Jacques GOUSSARD
3 -- Copyright (c) 1996-1999 Matra Datavision
4 -- Copyright (c) 1999-2012 OPEN CASCADE SAS
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.
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.
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.
23 class MakeRevol from BRepFeat inherits Form from BRepFeat
25 ---Purpose: Describes functions to build revolved shells from basis shapes.
27 uses Shape from TopoDS,
30 DataMapOfShapeListOfShape from TopTools,
32 DataMapOfShapeShape from TopTools,
33 SequenceOfCurve from TColGeom,
35 SequenceOfCurve from TColGeom,
36 StatusError from BRepFeat
38 raises ConstructionError from Standard
45 returns MakeRevol from BRepFeat;
46 ---Purpose: initializes the revolved shell class.
50 Create(Sbase : Shape from TopoDS;
51 Pbase : Shape from TopoDS;
52 Skface : Face from TopoDS;
54 Fuse : Integer from Standard;
55 Modify : Boolean from Standard)
57 ---Purpose: a face Pbase is selected in the
58 -- shape Sbase to serve as the basis for the
59 -- revolved shell. The revolution will be defined
60 -- by the axis Axis and Fuse offers a choice between:
61 -- - removing matter with a Boolean cut using the setting 0
62 -- - adding matter with Boolean fusion using the setting 1.
63 -- The sketch face Skface serves to determine
64 -- the type of operation. If it is inside the basis
65 -- shape, a local operation such as glueing can be performed.
67 returns MakeRevol from BRepFeat;
70 Init(me: in out; Sbase : Shape from TopoDS;
71 Pbase : Shape from TopoDS;
72 Skface : Face from TopoDS;
74 Fuse : Integer from Standard;
75 Modify : Boolean from Standard)
80 Add(me: in out; E: Edge from TopoDS; OnFace: Face from TopoDS)
82 ---Purpose: Indicates that the edge <E> will slide on the face
83 -- <OnFace>. Raises ConstructionError if the face does not belong to the
84 -- basis shape, or the edge to the prismed shape.
85 raises ConstructionError from Standard
90 Perform(me: in out; Angle: Real from Standard)
95 Perform(me: in out; Until: Shape from TopoDS)
100 Perform(me: in out; From : Shape from TopoDS;
101 Until: Shape from TopoDS)
104 ---Purpose: Reconstructs the feature topologically.
106 PerformThruAll(me: in out)
109 ---Purpose: Builds an infinite shell. The infinite descendants
110 -- will not be kept in the result.
112 PerformUntilAngle(me: in out; Until : Shape from TopoDS;
113 Angle : Real from Standard)
116 ---Purpose: Assigns both a limiting shape, Until from
117 -- TopoDS_Shape, and an angle, Angle at
118 -- which to stop generation of the revolved shell feature.
119 Curves(me: in out; S : in out SequenceOfCurve from TColGeom);
122 BarycCurve(me: in out)
123 returns Curve from Geom;
128 myPbase : Shape from TopoDS;
129 mySlface : DataMapOfShapeListOfShape from TopTools;
130 myAxis : Ax1 from gp;
131 myCurves : SequenceOfCurve from TColGeom;
132 myBCurve : Curve from Geom;
133 myStatusError : StatusError from BRepFeat;