Simple3D
Search Results for

    Show / Hide Table of Contents

    Class ObjReader

    Reads a bounded OBJ geometry subset without loading files or material libraries.

    Inheritance
    object
    ObjReader
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    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
    Type Description
    int
    | Edit this page View Source

    MaximumLineLength

    Maximum characters in one line, excluding its line ending.

    Declaration
    public const int MaximumLineLength = 16384
    Field Value
    Type Description
    int
    | Edit this page View Source

    MaximumTextLength

    Maximum source characters, including comments and line endings.

    Declaration
    public const int MaximumTextLength = 16777216
    Field Value
    Type Description
    int

    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
    Type Description
    Mesh
    | 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
    Type Name Description
    TextReader reader
    Returns
    Type Description
    Mesh
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX