Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

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

  • Declared in: RT.Modeling.Md

Declaration

public static string GenerateObjFile(
    IEnumerable<ValueTuple<IEnumerable<VertexInfo[]>, string>> models,
    AutoNormal autoNormal = AutoNormal.None,
    bool uniqueVertices = false
)

Summary

Writes the specified models to an .obj file.

Parameters

IEnumerable<ValueTuple<IEnumerable<VertexInfo[]>, string>>models The models and their names to output.
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.