1 -- Created on: 1993-01-09
2 -- Created by: CKY / Contract Toubro-Larsen ( Kiran )
3 -- Copyright (c) 1993-1999 Matra Datavision
4 -- Copyright (c) 1999-2014 OPEN CASCADE SAS
6 -- This file is part of Open CASCADE Technology software library.
8 -- This library is free software; you can redistribute it and/or modify it under
9 -- the terms of the GNU Lesser General Public License version 2.1 as published
10 -- by the Free Software Foundation, with special exception defined in the file
11 -- OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12 -- distribution for complete text of the license and disclaimer of any warranty.
14 -- Alternatively, this file may be used under the terms of Open CASCADE
15 -- commercial license or contractual agreement.
17 class RuledSurface from IGESGeom inherits IGESEntity
19 ---Purpose: defines IGESRuledSurface, Type <118> Form <0-1>
20 -- in package IGESGeom
21 -- A ruled surface is formed by moving a line connecting points
22 -- of equal relative arc length or equal relative parametric
23 -- value on two parametric curves from a start point to a
24 -- terminate point on the curves. The parametric curves may be
25 -- points, lines, circles, conics, rational B-splines,
26 -- parametric splines or any parametric curve defined in
27 -- the IGES specification.
35 Create returns RuledSurface;
37 -- Specific Methods pertaining to the class
40 aCurve, anotherCurve : IGESEntity;
41 aDirFlag, aDevFlag : Integer);
42 ---Purpose : This method is used to set the fields of the class
44 -- - aCurve : First parametric curve
45 -- - anotherCurve : Second parametric curve
46 -- - aDirFlag : Direction Flag
47 -- 0 = Join first to first, last to last
48 -- 1 = Join first to last, last to first
49 -- - aDevFlag : Developable Surface Flag
53 SetRuledByParameter (me : mutable; mode : Boolean);
54 ---Purpose : Sets <me> to be Ruled by Parameter (Form 1) if <mode> is
55 -- True, or Ruled by Length (Form 0) else
57 IsRuledByParameter (me) returns Boolean;
58 ---Purpose : Returns True if Form is 1
61 FirstCurve (me) returns IGESEntity;
62 ---Purpose : returns the first curve
64 SecondCurve (me) returns IGESEntity;
65 ---Purpose : returns the second curve
67 DirectionFlag (me) returns Integer;
68 ---Purpose : return the sense of direction
69 -- 0 = Join first to first, last to last
70 -- 1 = Join first to last, last to first
72 IsDevelopable (me) returns Boolean;
73 ---Purpose : returns True if developable else False
78 -- Class : IGESGeom_RuledSurface
80 -- Purpose : Declaration of variables specific to the definition
81 -- of the Class RuledSurface.
83 -- Reminder : A RuledSurface instance is defined by :
84 -- Two parametric curves, and a flag indicating direction
85 -- (whether first point of one curve is joined to first
86 -- point of another or last point of one curve is joined
87 -- to the first point of another), and a flag indicating
88 -- whether the surface is developable or not.
90 theCurve1 : IGESEntity;
91 theCurve2 : IGESEntity;