Class ObjReader
Reads a bounded OBJ geometry subset without loading files or material libraries.
Namespace: Simple3D.Core
Assembly: Simple3D.Core.dll
Syntax
public static class ObjReader
Fields
|
Edit this page
View Source
MaximumFaceVertices
Maximum corners in a single convex planar face.
Declaration
public const int MaximumFaceVertices = 256
Field Value
|
Edit this page
View Source
MaximumLineLength
Maximum characters in one line, excluding its line ending.
Declaration
public const int MaximumLineLength = 16384
Field Value
|
Edit this page
View Source
MaximumTextLength
Maximum source characters, including comments and line endings.
Declaration
public const int MaximumTextLength = 16777216
Field Value
Methods
|
Edit this page
View Source
Parse(string)
Parses OBJ text. Invalid or unsupported geometry throws FormatException with a line number.
Declaration
public static Mesh Parse(string text)
Parameters
| Type |
Name |
Description |
| string |
text |
|
Returns
|
Edit this page
View Source
Read(TextReader)
Reads triangles and strictly convex planar polygons; leaves the reader open. Supports v x y z [1],
vt u [v [0]], vn x y z, and independent positive/negative face indices. Every face must use the same
attribute layout. Named objects/groups, material references and smoothing directives are ignored.
Source attribute counts, output vertices and triangles are limited to MaximumElements.
Declaration
public static Mesh Read(TextReader reader)
Parameters
Returns