0022240: Bad triangulation of transformed shapes
[occt.git] / src / Prs3d / Prs3d_ShapeTool.cdl
CommitLineData
b311480e 1-- Created on: 1993-01-27
2-- Created by: Jean-Louis Frenkel
3-- Copyright (c) 1993-1999 Matra Datavision
973c2be1 4-- Copyright (c) 1999-2014 OPEN CASCADE SAS
b311480e 5--
973c2be1 6-- This file is part of Open CASCADE Technology software library.
b311480e 7--
d5f74e42 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
973c2be1 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.
b311480e 13--
973c2be1 14-- Alternatively, this file may be used under the terms of Open CASCADE
15-- commercial license or contractual agreement.
7fd59977 16
17class ShapeTool from Prs3d
18
19
20uses
21 Shape from TopoDS,
22 Face from TopoDS,
23 Edge from TopoDS,
24 Vertex from TopoDS,
25 HSequenceOfShape from TopTools,
26 Box from Bnd,
27 Location from TopLoc,
28 Triangulation from Poly,
29 PolygonOnTriangulation from Poly,
30 Polygon3D from Poly,
31 HArray1OfInteger from TColStd,
32 Explorer from TopExp,
33 IndexedDataMapOfShapeListOfShape from TopTools,
34 IndexedMapOfShape from TopTools
35
36 ---Purpose:
37is
38
39 Create ( TheShape: Shape from TopoDS) returns ShapeTool from Prs3d;
40 InitFace (me: in out);
41 MoreFace (me) returns Boolean from Standard;
42 NextFace (me: in out);
43 GetFace(me) returns Face from TopoDS;
44 ---C++: return const&
45 FaceBound(me) returns Box from Bnd;
46 IsPlanarFace(me) returns Boolean from Standard;
47
48 InitCurve (me: in out);
49 MoreCurve (me) returns Boolean from Standard;
50 NextCurve (me: in out);
51 GetCurve(me) returns Edge from TopoDS;
52 ---C++: return const&
53 CurveBound(me) returns Box from Bnd;
54 Neighbours(me) returns Integer from Standard;
55 FacesOfEdge(me) returns HSequenceOfShape from TopTools;
56
57 InitVertex(me: in out);
58 MoreVertex(me) returns Boolean from Standard;
59 NextVertex(me: in out);
60 GetVertex(me) returns Vertex from TopoDS;
61 ---C++: return const&
62
63 HasSurface(me) returns Boolean;
64
65 CurrentTriangulation(me; l: out Location from TopLoc)
66 returns Triangulation from Poly;
67
68 HasCurve(me) returns Boolean;
69
70 PolygonOnTriangulation(me; Indices: out PolygonOnTriangulation from Poly;
71 T: out Triangulation from Poly;
72 l: out Location from TopLoc);
73
74 Polygon3D(me; l: out Location from TopLoc)
75 returns Polygon3D from Poly;
76
77fields
78 myShape: Shape from TopoDS;
79 myFaceExplorer: Explorer from TopExp;
80 myEdgeMap: IndexedDataMapOfShapeListOfShape from TopTools;
81 myVertexMap: IndexedMapOfShape from TopTools;
82 myEdge : Integer from Standard;
83 myVertex : Integer from Standard;
84
85end ShapeTool from Prs3d;