SetAttributes(IEnumerable<double>, IEnumerable<double>, IEnumerable<int>, IEnumerable<int>)

Sets all needed attributes to build the shell, including the vertice colors.

Declaration Syntax

public void SetAttributes(IEnumerable<double> vertices, IEnumerable<double> normals, IEnumerable<int> connectivity, IEnumerable<int> colors)

Parameters

vertices(IEnumerable<double>)

The vertex coordinates. The values should match the following format [X0, Y0, Z0, X1, Y1, Z1, ...].

normals(IEnumerable<double>)

The vertex normals. The values should match the following format [X0, Y0, Z0, X1, Y1, Z1, ...].

connectivity(IEnumerable<int>)

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(IEnumerable<int>)

The vertex colors. The values should match the following format [C1, C2, C3, ...].