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

Create a shell

Declaration Syntax

public IShell3D CreateShell(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 [C0, C1, C2, ...].