Table of Contents

Class Mesh

Namespace
TaleWorlds.Engine
Assembly
TaleWorlds.Engine.dll
[EngineClass("rglMesh")]
public sealed class Mesh : Resource
Inheritance
Mesh
Inherited Members

Properties

Billboard

public BillboardType Billboard { get; set; }

Property Value

BillboardType

Color

public uint Color { get; set; }

Property Value

uint

Color2

public uint Color2 { get; set; }

Property Value

uint

CullingMode

public MBMeshCullingMode CullingMode { set; }

Property Value

MBMeshCullingMode

EditDataFaceCornerCount

public int EditDataFaceCornerCount { get; }

Property Value

int

MorphTime

public float MorphTime { set; }

Property Value

float

Name

public string Name { get; set; }

Property Value

string

VisibilityMask

public VisibilityMaskFlags VisibilityMask { get; set; }

Property Value

VisibilityMaskFlags

Methods

AddEditDataUser()

public void AddEditDataUser()

AddFace(int, int, int, UIntPtr)

public int AddFace(int patchNode0, int patchNode1, int patchNode2, UIntPtr lockHandle)

Parameters

patchNode0 int
patchNode1 int
patchNode2 int
lockHandle UIntPtr

Returns

int

AddFaceCorner(Vec3, Vec3, Vec2, uint, UIntPtr)

public int AddFaceCorner(Vec3 position, Vec3 normal, Vec2 uvCoord, uint color, UIntPtr lockHandle)

Parameters

position Vec3
normal Vec3
uvCoord Vec2
color uint
lockHandle UIntPtr

Returns

int

AddMesh(string, MatrixFrame)

public void AddMesh(string meshResourceName, MatrixFrame meshFrame)

Parameters

meshResourceName string
meshFrame MatrixFrame

AddMesh(Mesh, MatrixFrame)

public void AddMesh(Mesh mesh, MatrixFrame meshFrame)

Parameters

mesh Mesh
meshFrame MatrixFrame

AddTriangle(Vec3, Vec3, Vec3, Vec2, Vec2, Vec2, uint, UIntPtr)

public void AddTriangle(Vec3 p1, Vec3 p2, Vec3 p3, Vec2 uv1, Vec2 uv2, Vec2 uv3, uint color, UIntPtr lockHandle)

Parameters

p1 Vec3
p2 Vec3
p3 Vec3
uv1 Vec2
uv2 Vec2
uv3 Vec2
color uint
lockHandle UIntPtr

AddTriangleWithVertexColors(Vec3, Vec3, Vec3, Vec2, Vec2, Vec2, uint, uint, uint, UIntPtr)

public void AddTriangleWithVertexColors(Vec3 p1, Vec3 p2, Vec3 p3, Vec2 uv1, Vec2 uv2, Vec2 uv3, uint c1, uint c2, uint c3, UIntPtr lockHandle)

Parameters

p1 Vec3
p2 Vec3
p3 Vec3
uv1 Vec2
uv2 Vec2
uv3 Vec2
c1 uint
c2 uint
c3 uint
lockHandle UIntPtr

ClearMesh()

public void ClearMesh()

ComputeNormals()

public void ComputeNormals()

ComputeTangents()

public void ComputeTangents()

CreateCopy()

public Mesh CreateCopy()

Returns

Mesh

CreateMesh(bool)

public static Mesh CreateMesh(bool editable = true)

Parameters

editable bool

Returns

Mesh

CreateMeshWithMaterial(Material)

public static Mesh CreateMeshWithMaterial(Material material)

Parameters

material Material

Returns

Mesh

DisableContour()

public void DisableContour()

GetBaseMesh()

public Mesh GetBaseMesh()

Returns

Mesh

GetBoundingBoxHeight()

public float GetBoundingBoxHeight()

Returns

float

GetBoundingBoxMax()

public Vec3 GetBoundingBoxMax()

Returns

Vec3

GetBoundingBoxMin()

public Vec3 GetBoundingBoxMin()

Returns

Vec3

GetBoundingBoxWidth()

public float GetBoundingBoxWidth()

Returns

float

GetEditDataFaceCornerVertexColor(int)

public uint GetEditDataFaceCornerVertexColor(int index)

Parameters

index int

Returns

uint

GetFaceCornerCount()

public uint GetFaceCornerCount()

Returns

uint

GetFaceCount()

public uint GetFaceCount()

Returns

uint

GetFromResource(string)

public static Mesh GetFromResource(string meshName)

Parameters

meshName string

Returns

Mesh

GetLocalFrame()

public MatrixFrame GetLocalFrame()

Returns

MatrixFrame

GetMaterial()

public Material GetMaterial()

Returns

Material

GetRandomMeshWithVdecl(int)

public static Mesh GetRandomMeshWithVdecl(int inputLayout)

Parameters

inputLayout int

Returns

Mesh

GetSecondMaterial()

public Material GetSecondMaterial()

Returns

Material

HasTag(string)

public bool HasTag(string str)

Parameters

str string

Returns

bool

HintIndicesDynamic()

public void HintIndicesDynamic()

HintVerticesDynamic()

public void HintVerticesDynamic()

LockEditDataWrite()

public UIntPtr LockEditDataWrite()

Returns

UIntPtr

PreloadForRendering()

public void PreloadForRendering()

RecomputeBoundingBox()

public void RecomputeBoundingBox()

ReleaseEditDataUser()

public void ReleaseEditDataUser()

SetAsNotEffectedBySeason()

public void SetAsNotEffectedBySeason()

SetColorAlpha(uint)

public void SetColorAlpha(uint newAlpha)

Parameters

newAlpha uint

SetColorAndStroke(uint, uint, bool)

public void SetColorAndStroke(uint color, uint strokeColor, bool drawStroke)

Parameters

color uint
strokeColor uint
drawStroke bool

SetContourColor(Vec3, bool, bool)

public void SetContourColor(Vec3 color, bool alwaysVisible, bool maskMesh)

Parameters

color Vec3
alwaysVisible bool
maskMesh bool

SetEditDataFaceCornerVertexColor(int, uint)

public void SetEditDataFaceCornerVertexColor(int index, uint color)

Parameters

index int
color uint

SetEditDataPolicy(EditDataPolicy)

public void SetEditDataPolicy(EditDataPolicy policy)

Parameters

policy EditDataPolicy

SetExternalBoundingBox(BoundingBox)

public void SetExternalBoundingBox(BoundingBox bbox)

Parameters

bbox BoundingBox

SetLocalFrame(MatrixFrame)

public void SetLocalFrame(MatrixFrame meshFrame)

Parameters

meshFrame MatrixFrame

SetMaterial(string)

public void SetMaterial(string newMaterialName)

Parameters

newMaterialName string

SetMaterial(Material)

public void SetMaterial(Material material)

Parameters

material Material

SetMeshRenderOrder(int)

public void SetMeshRenderOrder(int renderOrder)

Parameters

renderOrder int

SetVectorArgument(float, float, float, float)

public void SetVectorArgument(float vectorArgument0, float vectorArgument1, float vectorArgument2, float vectorArgument3)

Parameters

vectorArgument0 float
vectorArgument1 float
vectorArgument2 float
vectorArgument3 float

SetVectorArgument2(float, float, float, float)

public void SetVectorArgument2(float vectorArgument0, float vectorArgument1, float vectorArgument2, float vectorArgument3)

Parameters

vectorArgument0 float
vectorArgument1 float
vectorArgument2 float
vectorArgument3 float

SetVisibilityMask(VisibilityMaskFlags)

public void SetVisibilityMask(VisibilityMaskFlags visibilityMask)

Parameters

visibilityMask VisibilityMaskFlags

UnlockEditDataWrite(UIntPtr)

public void UnlockEditDataWrite(UIntPtr handle)

Parameters

handle UIntPtr

UpdateBoundingBox()

public void UpdateBoundingBox()

This page was last modified at 09/01/2024 16:12:00 +00:00 (UTC).