Table of Contents

Class Mesh

Namespace
ReFuel.IO.Model
Assembly
ReFuel.dll
public abstract class Mesh : IDisposable
Inheritance
Mesh
Implements
Derived
Inherited Members

Fields

attributes

protected readonly Dictionary<string, object> attributes

Field Value

Dictionary<string, object>

Properties

Attributes

Extra data that doesn't really mean much for me at the moment.

public IReadOnlyDictionary<string, object> Attributes { get; }

Property Value

IReadOnlyDictionary<string, object>

Bones

List of bones in the _mesh.

public abstract IReadOnlyList<Bone> Bones { get; }

Property Value

IReadOnlyList<Bone>

Faces

The faces that form the _mesh.

public abstract IReadOnlyList<Face> Faces { get; }

Property Value

IReadOnlyList<Face>

Name

The name of the _mesh, if any.

public string? Name { get; protected set; }

Property Value

string

Ngons

The polygonal faces of a _mesh.

public abstract IReadOnlyList<Ngon> Ngons { get; }

Property Value

IReadOnlyList<Ngon>

Normals

Normal vectors.

public abstract IReadOnlyList<Vector3> Normals { get; }

Property Value

IReadOnlyList<Vector3>

Positions

Position vectors.

public abstract IReadOnlyList<Vector3> Positions { get; }

Property Value

IReadOnlyList<Vector3>

TextureCoordinates

Texture coordinates of a _mesh.

public abstract IReadOnlyList<Vector2> TextureCoordinates { get; }

Property Value

IReadOnlyList<Vector2>

VertexColors

Per-vertex color values.

public abstract IReadOnlyList<Color4<Rgba>> VertexColors { get; }

Property Value

IReadOnlyList<Color4<Rgba>>

Vertices

public abstract IReadOnlyList<Vertex> Vertices { get; }

Property Value

IReadOnlyList<Vertex>

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public virtual void Dispose()

Triangulate(NgonTriangulation)

public void Triangulate(NgonTriangulation triangulation = NgonTriangulation.Ear)

Parameters

triangulation NgonTriangulation