Test for 0022778: Bug in BRepMesh
[occt.git] / src / IntPatch / IntPatch_PolyArc.cdl
CommitLineData
b311480e 1-- Created on: 1993-01-27
2-- Created by: Isabelle GRIGNON
3-- Copyright (c) 1993-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
22class PolyArc from IntPatch
23
24inherits Polygo from IntPatch
25
26uses Box2d from Bnd,
27 Pnt2d from gp,
28 Array1OfPnt2d from TColgp,
29 Array1OfReal from TColStd,
30 HCurve2d from Adaptor2d
31
32raises ConstructionError from Standard
33
34is
35
36 Create(A: HCurve2d from Adaptor2d; NbSample: Integer from Standard;
37 Pfirst,Plast : Real from Standard;
38 BoxOtherPolygon: Box2d from Bnd)
39
40 ---Purpose: Creates the polygon of the arc A on the surface S.
41 -- The arc is limited by the parameters Pfirst and Plast.
42 -- None of these parameters can be infinite.
43
44 returns PolyArc from IntPatch
45
46 raises ConstructionError from Standard;
47 --- This exception is raised if Pfirst=RealFirst or Plast=RealLast or
48 -- NbSample<=1.
49
9530af27 50 Closed(me) returns Boolean from Standard is redefined virtual;
7fd59977 51
52 NbPoints(me) returns Integer;
53
54 Point(me; Index : Integer) returns Pnt2d from gp;
55
56 Parameter(me ; Index : Integer) returns Real from Standard;
57
58 SetOffset(me:in out; OffsetX,OffsetY: Real from Standard);
59
60
61fields
62
63 brise : Array1OfPnt2d from TColgp;
64 param : Array1OfReal from TColStd;
7fd59977 65 offsetx: Real from Standard;
66 offsety: Real from Standard;
67 ferme : Boolean from Standard;
68
69end PolyArc;