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

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

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

Return Value

Type: IShell3D
Returns the shell.