SI_TriangleList

Specifies the positions, normals, colors, and uv coordinates for triangle vertices by indexing into the SI_Shape template that defines the mesh.

 

This template corresponds to the CSLTriangleList class.

Introduced

2.0

Template

Version 3.0 and before

SI_TriangleList
{
   <nbTriangles>,
   <elements>

   // indices of triangle vertex positions 
   <v0>, <v1>, <v2>,  // triangle 0 
   ...                   // triangles 1, 2, ... 

   // indices of triangle vertex normals 
   <n0>, <n1>, <n2>,   // triangle 0
   ...                   // triangles 1, 2, ... 

   // indices of triangle vertex colors 
   <c0>, <c1>, <c2>,   // triangle 0
   ...                   // triangles 1, 2, ... 

}

Version 3.5 and beyond

SI_TriangleList
{
   <nbTriangles>,
   <elements>
   <material>

   // indices of triangle vertex positions 
   <v0>, <v1>, <v2>,  // triangle 0 
   ...                   // triangles 1, 2, ... 

   // indices of triangle vertex normals 
   <n0>, <n1>, <n2>,   // triangle 0
   ...                   // triangles 1, 2, ... 

   // indices of triangle vertex colors 
   <c0>, <c1>, <c2>,   // triangle 0
   ...                   // triangles 1, 2, ... 

   // triangle vertex uv coords 
   <uv0>, <uv1>, <uv2>,   // triangle 0
   ...                      // triangles 1, 2, ... 

}

Members

Member

Type

Description

nbTriangles

int

Number of triangles in the tessellation.

elements

char *

Specifies what information is stored in the template. Can be one or more of the following:

• NORMAL = Template contains Normals information (see ni below).

• COLOR = Template contains Color information (see ci below).

• TEX_COORD_UV# = Template contains texture UV coordinates information (see uvi below). The number sign (#) represents the number of the texture UV coordinates starting at 0.

Note: The TEX_COORD_UV# element is only available in v3.5 and beyond.

If more than one of these is present, use a vertical bar to separate the strings (for example, "NORMAL|COLOR|TEX_COORD_UV0|TEX_COORD_UV1").

Note: Vertex positions are always present in a SI_TriangleList template (see vi below).

material

char *

Name of the material.

Note: This is only available in v3.5 and beyond.

vi

int

Index of a vertex position in the POSITIONS section of the SI_TriangleList template for the mesh.

ni

int

Index of a normal in the NORMAL section of the SI_TriangleList template for the mesh.

ci

int

Index of a color in the COLOR section of the SI_TriangleList template for the mesh.

uvi

int

Index of a UV coordinate in the TEX_COORD_UV section of the SI_TriangleList template for the mesh.

Note: The uvi element is only available in v3.5 and beyond.

Example (Softimage Output v3.5)

SI_MaterialLibrary MATLIB-myCube
{
  1,
  SI_Material MAT_SURFACE-TERRACOTTA001.1-1
  {
   0.75,0.55,0.333,1.0,
   250.0,
   1.0,1.0,1.0,
   0.0,0.0,0.0,
   5,
   1.0,0.733,0.444,

   SI_Texture2D {
     "noIcon.pic";
     4;
     50;75;
     0;49;0;74;
     0;
     1;1;
     0;0;
     1.000000;1.000000;
     0.000000;0.000000;
     1.000000,0.000000,0.000000,0.000000,
     0.000000,1.000000,0.000000,0.000000,
     0.000000,0.000000,1.000000,0.000000,
     0.000000,0.000000,0.000000,1.000000;;
     3;
     0.000000;
     0.000000;
     0.000000;
     0.000000;
     0.000000;
     0.000000;
     4.014000;
   }
  }
}


SI_Model MDL-cube2 {
  SI_Transform SRT-cube2
  {
   1.0,1.0,1.0,
   0.0,0.0,0.0,
   0.0,0.0,0.0,
  }

  SI_Mesh MSH-cube2
  {
   SI_Shape SHP-cube2-ORG
   {
     4,
     "ORDERED",
     8,
     "POSITION",
     -0.5,-0.5,-0.5,
     -0.5,-0.5,0.5,
     -0.5,0.5,-0.5,
     -0.5,0.5,0.5,
     0.623872,-0.5,1.375891,
     0.5,-0.5,0.5,
     0.5,0.5,-0.5,
     0.5,0.5,0.5,

     15,
     "NORMAL",
     -1.0,0.0,0.0,
     0.313313,-0.880909,-0.354731,
     0.313313,-0.880909,-0.354731,
     0.0,0.0,1.0,
     0.0,-1.0,0.0,
     0.552001,-0.552001,-0.624972,
     0.0,1.0,0.0,
     0.578086,0.576982,0.576982,
     0.32551,0.324888,0.88797,
     0.32551,0.324888,0.88797,
     0.32551,0.88797,0.324888,
     0.32551,0.88797,0.324888,
     0.250917,0.684485,0.684485,
     0.250917,0.684485,0.684485,
     0.250917,0.684485,0.684485,

     4,
     "COLOR",
     0.74902,0.54902,0.329412,1.0,
     0.058824,0.937255,0.894118,1.0,
     0.184314,0.337255,0.811765,1.0,
     0.984314,0.0,0.419608,1.0,

     4,
     "TEX_COORD_UV",
     0.0,0.0,
     0.0,4.0,
     3.0,0.0,
     3.0,4.0,

   }

   SI_TriangleList
   {
     12,
     "NORMAL|COLOR|TEX_COORD_UV",
     "MAT_SURFACE-TERRACOTTA001.1-1",
     0,1,3,
     0,3,2,
     1,5,7,
     1,7,3,
     7,5,4,
     7,4,6,
     4,0,2,
     4,2,6,
     0,4,5,
     0,5,1,
     2,3,7,
     2,7,6,

     0,0,0,
     0,0,0,
     3,8,12,
     3,12,3,
     13,9,7,
     13,7,10,
     1,1,5,
     1,5,5,
     2,2,4,
     2,4,4,
     6,6,14,
     6,14,11,

     0,0,0,
     0,0,0,
     1,0,3,
     1,3,2,
     0,0,0,
     0,0,0,
     0,0,0,
     0,0,0,
     0,0,0,
     0,0,0,
     0,0,0,
     0,0,0,

     0,0,1,
     0,1,1,
     0,2,3,
     0,3,1,
     3,2,2,
     3,2,3,
     2,0,1,
     2,1,3,
     0,2,2,
     0,2,0,
     1,1,3,
     1,3,3,
   }

}


Autodesk Crosswalk v3.2