Sets all needed attributes to build the shell, including the vertice colors.
Examples
The following parameters define two triangles to display a light blue square of length 1 in XY plan:
vertices = [0.,0.,0., 1.,0.,0., 1.,1.,0., 0.,1.,0.]
normals = [0.,0.,1., 0.,0.,1., 0.,0.,1., 0.,0.,1.]
connectivity = [0,1,2, 0,2,3]
colors = [(173<<16) + (216<<8) + 230, (173<<16) + (216<<8) + 230]
Parameters
-
vertices
The vertex coordinates. The values should match the following format [X0, Y0, Z0, X1, Y1, Z1, ...].
-
normals
The vertex normals. The values should match the following format [X0, Y0, Z0, X1, Y1, Z1, ...].
-
connectivity
The facets connectivity. The connectivity defines the triangles constituting the shell, it should match the following format [I0, I1, I2, ...], where I0, I1 and I2 are the indices of the corresponding vertex coordinates (0 being the first vertex coordinates X0, Y0, Z0).
-
colors
The vertex colors. The values should match the following format [C1, C2, C3, ...].