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
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
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.
14 -- Alternatively, this file may be used under the terms of Open CASCADE
15 -- commercial license or contractual agreement.
17 class PointSet from Vrml
19 ---Purpose: defines a PointSet node of VRML specifying geometry shapes.
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.
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.
34 Create ( aStartIndex : Integer from Standard = 0;
35 aNumPoints : Integer from Standard = -1 )
36 returns PointSet from Vrml;
38 SetStartIndex ( me : in out; aStartIndex : Integer from Standard );
39 StartIndex ( me ) returns Integer from Standard;
41 SetNumPoints ( me : in out; aNumPoints : Integer from Standard );
42 NumPoints ( me ) returns Integer from Standard;
44 Print ( me; anOStream: in out OStream from Standard) returns OStream from Standard;
49 myStartIndex : Integer from Standard; -- Index of 1st coordinate of shape
50 myNumPoints : Integer from Standard; -- Number of points to draw