OBJ3DWavefrontLoader 1.0.3

Wavefront 3d object file format loader

Install-Package OBJ3DWavefrontLoader -Version 1.0.3
dotnet add package OBJ3DWavefrontLoader --version 1.0.3
<PackageReference Include="OBJ3DWavefrontLoader" Version="1.0.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add OBJ3DWavefrontLoader --version 1.0.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Wavefront OBJ loader

Usage

 SimpleMesh simpleMesh;
 using (var reader = new StreamReader("G:\\cube2.obj"))
 {
 	simpleMesh = SimpleMesh.LoadFromObj(reader);
 }

SimpleMesh structure

class SimpleMesh
{
    public List<Vector3> vertices = new List<Vector3>();
    public List<Vector3> normals = new List<Vector3>();
    public List<Vector3> uvw = new List<Vector3>();
    public List<List<int>> facesVertsIndxs = new List<List<int>>();
    public List<List<int>> facesUVwIndxs = new List<List<int>>();
    public List<List<int>> facesNormsIndxs = new List<List<int>>();
}

Wavefront OBJ loader

Usage

 SimpleMesh simpleMesh;
 using (var reader = new StreamReader("G:\\cube2.obj"))
 {
 	simpleMesh = SimpleMesh.LoadFromObj(reader);
 }

SimpleMesh structure

class SimpleMesh
{
    public List<Vector3> vertices = new List<Vector3>();
    public List<Vector3> normals = new List<Vector3>();
    public List<Vector3> uvw = new List<Vector3>();
    public List<List<int>> facesVertsIndxs = new List<List<int>>();
    public List<List<int>> facesUVwIndxs = new List<List<int>>();
    public List<List<int>> facesNormsIndxs = new List<List<int>>();
}

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.0.3 48 5/14/2020