0024530: TKMesh - remove unused package IntPoly
[occt.git] / src / Vrml / Vrml_PointSet.cdl
1 -- Created on: 1997-02-04
2 -- Created by: Alexander BRIVIN
3 -- Copyright (c) 1997-1999 Matra Datavision
4 -- Copyright (c) 1999-2014 OPEN CASCADE SAS
5 --
6 -- This file is part of Open CASCADE Technology software library.
7 --
8 -- This library is free software; you can redistribute it and / or modify it
9 -- under the terms of the GNU Lesser General Public 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.
13 --
14 -- Alternatively, this file may be used under the terms of Open CASCADE
15 -- commercial license or contractual agreement.
16
17 class PointSet from Vrml 
18
19         ---Purpose: defines a PointSet node of VRML specifying geometry shapes.
20
21         --  This node represents a set of points located at the current coordinates. PointSet uses the
22         --  current coordinates in order, starting at the index specified by the startIndex field. The
23         --  number of points in the set is specified by the numPoints field. A value of -1 for this field
24         --  indicates that all remaining values in the current coordinates are to be used as points. 
25         --  The points are drawn with the current material and texture. 
26
27         --  Treatment of the current material and normal binding is as follows: PER_PART,
28         --  PER_FACE, and PER_VERTEX bindings bind one material or normal to each point. The
29         --  DEFAULT material binding is equal to OVERALL. The DEFAULT normal binding is
30         --  equal to PER_VERTEX. The startIndex is also used for materials or normals when the
31         --  binding indicates that they should be used per vertex. 
32 is
33
34     Create ( aStartIndex : Integer from Standard = 0;
35              aNumPoints  : Integer from Standard = -1 )
36         returns PointSet from Vrml;
37
38     SetStartIndex ( me : in out; aStartIndex :  Integer from Standard );
39     StartIndex ( me ) returns Integer from Standard;
40     
41     SetNumPoints ( me : in out; aNumPoints :  Integer from Standard );
42     NumPoints ( me )  returns Integer from Standard;
43
44     Print  ( me;  anOStream: in out OStream from Standard) returns OStream from Standard;
45     ---C++:  return  & 
46     
47 fields
48
49     myStartIndex : Integer from Standard;   -- Index of 1st coordinate of shape
50     myNumPoints  : Integer from Standard;   -- Number of points to draw
51     
52 end PointSet;