[This is preliminary documentation and is subject to change.]

Provides limited Wavefront utility methods. (Very limited.)

Namespace: org.critterai.geom
Assembly: cai-util (in cai-util.dll) Version: 0.5.0.0 (0.5.0.0)

Syntax

         
 C#  Visual Basic  Visual C++ 
public static class Wavefront
Public NotInheritable Class Wavefront
public ref class Wavefront abstract sealed

Members

      
 All Members  Methods  
 Public

 Protected
 Instance

 Static 
 Declared

 Inherited
 XNA Framework Only 

 .NET Compact Framework Only 

 MemberDescription
TranslateFrom(String)
Translates a string in Wavefront format into a triangle mesh.
TranslateTo(TriangleMesh, Boolean, Boolean)
Creates a Wavefront format string from a triangle mesh.

Remarks

Only a small subset of Wavefront information is supported.

Only the "v" and "f" entries are recognized. All others are ignored.

The v entries are expected to be in one of the following forms:

"v x y z w"
"v x y z"

The f entries are expected to be in one of the following forms:

(Note that only triangles are supported. Quads are not supported.)

"f v1/vt1/vn1 v2/vt2/vn2 v3/vt3/vn3"
"f v1 v2 v3"

Only the vertex portions of the entries are recognized, and only positive indices supported.

Static methods are thread safe.

Inheritance Hierarchy

System..::..Object
  org.critterai.geom..::..Wavefront

See Also