C# Class ColladaSlimDX.ColladaPipeline.Conditioner

显示文件 Open project: vvvv/ColladaSlimDX

Public Methods

Method Description
ConvexTriangulator ( Document doc ) : void

This method will convert convex polygons to triangles

A more advanced condionner would be required to handle convex, complex polygons

Reindexor ( Document doc ) : void

This method will create a single index for the primitives This will not work on polygons and polylist, since vcount is not taken in count there So you need to first run ConvexTriangulator (or equivalent)

This will make it directly usable as a index vertexArray for drawing

Method Details

ConvexTriangulator() public static method

This method will convert convex polygons to triangles

A more advanced condionner would be required to handle convex, complex polygons

public static ConvexTriangulator ( Document doc ) : void
doc Document
return void

Reindexor() public static method

This method will create a single index for the primitives This will not work on polygons and polylist, since vcount is not taken in count there So you need to first run ConvexTriangulator (or equivalent)

This will make it directly usable as a index vertexArray for drawing

public static Reindexor ( Document doc ) : void
doc Document
return void