Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Static method: string GenerateObjFile(IEnumerable<Pt[]>, string, AutoNormal, bool)

  • Declared in: RT.Modeling.Md

Declaration

public static string GenerateObjFile(
    IEnumerable<Pt[]> faces,
    string objectName = null,
    AutoNormal autoNormal = AutoNormal.None,
    bool uniqueVertices = false
)

Summary

Writes the specified faces to an .obj file.

Parameters

IEnumerable<Pt[]>faces The faces to output, provided as raw coordinates.
stringobjectName The name of the object.
AutoNormalautoNormal Specifies whether and how to generate normal vectors.
booluniqueVertices Specifies whether to duplicate coordinates for vertices re-used between faces. This exists to work around a bug in Unity.

Returns

The file contents as a string.