XSI_TriangleList

Specifies the vertex indices of triangles for normals (“ImplicitNormal”), user normal properties ("User_Normal_Property" and "XSI_UserNormals"), vertex colors, and texture projections.

 

This template corresponds to the CSLXSITriangleList class.

Introduced

5.0

Template

XSI_TriangleList <triangle-list-name> { 
   <iNbTriangleLists>, 
   "ImplicitNormal",<properties>
   <material>, 
   <iNbTriangles>, 

   // Vertex indices of triangles: see the examples
}

 

Members

Member name

Description

iNbTriangleLists

Number of triangle lists in this template.

properties

A comma-separated list of user normal properties, vertex color properties, and texture projections.

iNbTriangles

Number of triangles.

Examples

XSI_TriangleList TriList00 { 
   5, 
   "ImplicitNormal","User_Normal_Property","XSI_UserNormals","Texture_Projection","Vertex_Color",
   "DefaultLib.Scene_Material", 
   12, 

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

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

   0,4,4,4,4,4,
   1,5,5,5,5,5,
   5,6,6,6,6,6,

   0,4,4,4,4,4,
   5,6,6,6,6,6,
   4,7,7,7,7,7,

   0,8,8,8,8,8,
   4,9,9,9,9,9,
   6,10,10,10,10,10,

   0,8,8,8,8,8,
   6,10,10,10,10,10,
   2,11,11,11,11,11,

   1,12,12,12,12,12,
   3,13,13,13,13,13,
   7,14,14,14,14,14,

   1,12,12,12,12,12,
   7,14,14,14,14,14,
   5,15,15,15,15,15,

   2,16,16,16,16,16,
   6,17,17,17,17,17,
   7,18,18,18,18,18,

   2,16,16,16,16,16,
   7,18,18,18,18,18,
   3,19,19,19,19,19,

   4,20,20,20,20,20,
   5,21,21,21,21,21,
   7,22,22,22,22,22,

   4,20,20,20,20,20,
   7,22,22,22,22,22,
   6,23,23,23,23,23,

}


// Just the normals
XSI_TriangleList TriList00 { 
   1, 
   "ImplicitNormal",
   "DefaultLib.Scene_Material", 
   12, 

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

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

   0,4,
   1,5,
   5,6,

   0,4,
   5,6,
   4,7,

   0,8,
   4,9,
   6,10,

   0,8,
   6,10,
   2,11,

   1,12,
   3,13,
   7,14,

   1,12,
   7,14,
   5,15,

   2,16,
   6,17,
   7,18,

   2,16,
   7,18,
   3,19,

   4,20,
   5,21,
   7,22,

   4,20,
   7,22,
   6,23,

}


Autodesk Crosswalk v4.0