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
positionsVector3[]normalsVector3[]texCoordsVector2[]meshGroupsMeshGroup[]materialLibNamestring
Properties
MaterialLibName
public string MaterialLibName { get; }
Property Value
MeshGroups
public ObjFile.MeshGroup[] MeshGroups { get; }
Property Value
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
GetMesh(MeshGroup)
Gets a ConstructedMeshInfo for the given OBJ ObjFile.MeshGroup.
public ConstructedMeshInfo GetMesh(ObjFile.MeshGroup group)
Parameters
groupObjFile.MeshGroupThe OBJ ObjFile.MeshGroup to construct.