Table of Contents

Class ObjFile

Namespace
NeoVeldrid.Utilities
Assembly
NeoVeldrid.Utilities.dll

Represents a parset Wavefront OBJ file.

public class ObjFile
Inheritance
ObjFile
Inherited Members

Constructors

ObjFile(Vector3[], Vector3[], Vector2[], MeshGroup[], string)

public ObjFile(Vector3[] positions, Vector3[] normals, Vector2[] texCoords, ObjFile.MeshGroup[] meshGroups, string materialLibName)

Parameters

positions Vector3[]
normals Vector3[]
texCoords Vector2[]
meshGroups MeshGroup[]
materialLibName string

Properties

MaterialLibName

public string MaterialLibName { get; }

Property Value

string

MeshGroups

public ObjFile.MeshGroup[] MeshGroups { get; }

Property Value

MeshGroup[]

Normals

public Vector3[] Normals { get; }

Property Value

Vector3[]

Positions

public Vector3[] Positions { get; }

Property Value

Vector3[]

TexCoords

public Vector2[] TexCoords { get; }

Property Value

Vector2[]

Methods

GetFirstMesh()

Constructs the first ObjFile.MeshGroup in this file.

public ConstructedMeshInfo GetFirstMesh()

Returns

ConstructedMeshInfo

A new ConstructedMeshInfo.

GetMesh(MeshGroup)

Gets a ConstructedMeshInfo for the given OBJ ObjFile.MeshGroup.

public ConstructedMeshInfo GetMesh(ObjFile.MeshGroup group)

Parameters

group ObjFile.MeshGroup

The OBJ ObjFile.MeshGroup to construct.

Returns

ConstructedMeshInfo

A new ConstructedMeshInfo.