Table of Contents

Class IndexedMesh

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

Constructors

IndexedMesh(string?, IEnumerable<Vertex>?, IEnumerable<Face>?, IEnumerable<Ngon>?, IEnumerable<Vector3>?, IEnumerable<Vector2>?, IEnumerable<Vector3>?, IEnumerable<Color4<Rgba>>?, IEnumerable<Bone>?)

public IndexedMesh(string? name = null, IEnumerable<Vertex>? vertices = null, IEnumerable<Face>? faces = null, IEnumerable<Ngon>? ngons = null, IEnumerable<Vector3>? positions = null, IEnumerable<Vector2>? textureCoordinates = null, IEnumerable<Vector3>? normals = null, IEnumerable<Color4<Rgba>>? vertexColors = null, IEnumerable<Bone>? bones = null)

Parameters

name string
vertices IEnumerable<Vertex>
faces IEnumerable<Face>
ngons IEnumerable<Ngon>
positions IEnumerable<Vector3>
textureCoordinates IEnumerable<Vector2>
normals IEnumerable<Vector3>
vertexColors IEnumerable<Color4<Rgba>>
bones IEnumerable<Bone>

Fields

bones

protected readonly List<Bone> bones

Field Value

List<Bone>

faces

protected readonly List<Face> faces

Field Value

List<Face>

ngons

protected readonly List<Ngon> ngons

Field Value

List<Ngon>

normals

protected readonly List<Vector3> normals

Field Value

List<Vector3>

positions

protected readonly List<Vector3> positions

Field Value

List<Vector3>

textureCoordinates

protected readonly List<Vector2> textureCoordinates

Field Value

List<Vector2>

vertexColors

protected readonly List<Color4<Rgba>> vertexColors

Field Value

List<Color4<Rgba>>

vertices

protected readonly List<Vertex> vertices

Field Value

List<Vertex>

Properties

Bones

List of bones in the _mesh.

public override IReadOnlyList<Bone> Bones { get; }

Property Value

IReadOnlyList<Bone>

Faces

The faces that form the _mesh.

public override IReadOnlyList<Face> Faces { get; }

Property Value

IReadOnlyList<Face>

Ngons

The polygonal faces of a _mesh.

public override IReadOnlyList<Ngon> Ngons { get; }

Property Value

IReadOnlyList<Ngon>

Normals

Normal vectors.

public override IReadOnlyList<Vector3> Normals { get; }

Property Value

IReadOnlyList<Vector3>

Positions

Position vectors.

public override IReadOnlyList<Vector3> Positions { get; }

Property Value

IReadOnlyList<Vector3>

TextureCoordinates

Texture coordinates of a _mesh.

public override IReadOnlyList<Vector2> TextureCoordinates { get; }

Property Value

IReadOnlyList<Vector2>

VertexColors

Per-vertex color values.

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

Property Value

IReadOnlyList<Color4<Rgba>>

Vertices

public override IReadOnlyList<Vertex> Vertices { get; }

Property Value

IReadOnlyList<Vertex>

Methods

Dispose()

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

public override void Dispose()