IndexedLineSet


Purpose:

This node is another of the nodes that make up the shape Nodes group. It represents a 3D shape created by constructing polylines from vertices located at the currently specified coordinates. The indices in the coordIndex field are used to specify the polylines. An index of -1 tells when the current polyline has ended and the next one is beginning.

Syntax
FILE FORMAT/DEFAULTS
	IndexedLineSet {
		coordIndex		 0	# MFLong
		materialIndex		-1	# MFLong
		normalIndex		-1	# MFLong
		textureCoordIndex	-1	# MFLong
}
Explanation

The current cumulative transformation is used to transform the coordinates of the line set.

The current material and normal binding are treated in the following ways. The material or normal for each segment of the line is specified by the PER_PART binding. The material or normal for each polyline is specified by the PER_FACE binding. The material or normal for each vertex is specified by PER_VERTEX. The corresponding _INDEXED bindings are the same. You will need to use the materialIndex or normalIndex indices, though. The DEFAULT material binding is equal to OVERALL and the DEFAULT normal binding is equal to PER_VERTEX_INDEXED. If there aren't enough normals defined in the world state, the lines will be drawn unlit. The same rules are used for texture coordinate generation as IndexedFaceSet explained previously.

Example Use

The following code fragment is from Allnodes.wrl.

IndexedLineSet {
	coordIndex [ 0 ]
	materialIndex [ -1 ]
	normalIndex [ -1 ]
	textureCoordIndex [ -1 ]
}
See Also

IndexedFaceSet, MFLong, PER_PART, PER_FACE, PER_VERTEX, PER_VERTEX_INDEXED