Void IShell3D.SetAttributes(IEnumerable<Double> vertices, IEnumerable<Double> normals, IEnumerable<Int32> connectivity)

Sets all needed attributes to build the shell.

Examples

The following parameters define two triangles to display a 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]

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).