IShell3D IFactory3D.CreateShell(IEnumerable<Double> vertices, IEnumerable<Double> normals, IEnumerable<Int32> connectivity, IEnumerable<Int32> colors)

Create a shell

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] ExtAPI.Graphics.Scene.Factory3D.CreateShell(vertices, normals, connectivity, colors)

Parameters

  • vertices
    Type: IEnumerable<Double>
    The vertex coordinates. The values should match the following format [X0, Y0, Z0, X1, Y1, Z1, ...].
  • normals
    Type: IEnumerable<Double>
    The vertex normals. The values should match the following format [X0, Y0, Z0, X1, Y1, Z1, ...].
  • connectivity
    Type: IEnumerable<Int32>
    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
    Type: IEnumerable<Int32>
    The vertex colors. The values should match the following format [C0, C1, C2, ...].

Return Value

Type: IShell3D
Returns the shell.