createIndexedFaceSet
Syntax
createIndexedFaceSet(Nodes:length[3,*], Faces:length[][][, Colors:integer[]]) → any |
The method createIndexedFaceSet creates an indexed face set in the scene window.
Parameters
The parameter Nodes is a two-dimensional array of data type length which sets the positions of the nodes, which follow, in space.
The parameter Faces is an array of arrays of data type length which sets the number of faces which follow. Each inner array contains a sequence of node indexes which set the contour of the respective face.
Note:The function only works correctly, when you define convex faces.
The optional parameter Colors of data type integer sets the color. When you pass a single color, this color is used for the entire graphic. When you pass an array of colors, each color applies to one of the faces.
Return Value
The return value has the data type any and specifies the created graphic, compare the method _3D.getGraphic.
Example
var Nodes: real[3, 8] |
Related Topics