Scripting API

Scripting API

ImportedModel

Record struct in Abyss.Core, from Abyss.Core.

What an import of a model made: how many meshes, vertices and triangles, the bytes they take, and the textures it carries.

public readonly record struct ImportedModel

Remarks

Laid out to match the engine's own ImportedModel, forty bytes.

Constructors

ImportedModel

public ImportedModel(uint Meshes, uint WithoutTangents, ulong Vertices, ulong Triangles, ulong Bytes, uint Textures = 0, uint TexturesRefused = 0)

What an import of a model made: how many meshes, vertices and triangles, the bytes they take, and the textures it carries.

Parameters

  • Meshes: How many meshes it has: a glTF primitive each.
  • WithoutTangents: How many of its meshes of triangles have no tangents although they were asked for: a mesh with no texture coordinates, which MikkTSpace has nothing to work from.
  • Vertices: How many vertices all its meshes have.
  • Triangles: How many triangles all its meshes of triangles have.
  • Bytes: How many bytes all its meshes' vertices and indices take.
  • Textures: How many textures it carries inside it were imported beside its meshes.
  • TexturesRefused: How many it carries could not be, each one's reason in its description; see ModelDescription.

Laid out to match the engine's own ImportedModel, forty bytes.

Properties

Meshes

public uint Meshes { get; init; }

How many meshes it has: a glTF primitive each.

WithoutTangents

public uint WithoutTangents { get; init; }

How many of its meshes of triangles have no tangents although they were asked for: a mesh with no texture coordinates, which MikkTSpace has nothing to work from.

Vertices

public ulong Vertices { get; init; }

How many vertices all its meshes have.

Triangles

public ulong Triangles { get; init; }

How many triangles all its meshes of triangles have.

Bytes

public ulong Bytes { get; init; }

How many bytes all its meshes' vertices and indices take.

Textures

public uint Textures { get; init; }

How many textures it carries inside it were imported beside its meshes.

TexturesRefused

public uint TexturesRefused { get; init; }

How many it carries could not be, each one's reason in its description; see ModelDescription.