This node is one of the eight shape Nodes that specify the geometry of the object. PointSet creates a set of points located at the current coordinates. The node uses the current coordinates in order. This is accomplished by beginning at the index specified by the startIndex field.
FILE FORMAT/DEFAULTS PointSet { startIndex 0 # SFLong numPoints -1 # SFLong
}
The number of points in the set defined by the PointSet node is determined by the value in the numPoints field. If you place a value of -1 in this field it indicates that all remaining values in the current coordinates are to be used as points.
The current cumulative transformation transforms the coordinates of the point. The points in the set are drawn with the current material and texture.
The current material and normal binding are treated in the following ways. One material or normal is bound to each point by PER_PART, PER_FACE, and PER_VERTEX bindings. OVERALL is the DEFAULT material binding. PER_VERTEX is the DEFAULT normal binding. Materials, normals, or texture coordinates use the startIndex when the binding indicates that they are to be used per vertex.
Example Use
The following code fragment is from Allnodes.wrl.
PointSet {
startIndex 0
numPoints -1
}