CGameEditorMesh

Trackmania Next API


CGameEditorMesh

ID 0x0328B000
Uninstantiable

Inherits from Game::CGameEditorAsset → Game::CGameCtnEditor → Game::CGameEditorParent → Game::CGameSwitcherModule → MwFoundations::CMwNod

API for the mesh modeler.

Methods

void Parts_Repair()

void UVEditor_UVMode()

void UVEditor_AtlasMode()

uint Layers_GetCount()

MwId Layers_GetLayerIdFromIndex(uint LayerIndex)

wstring Layers_GetLayerNameFromIndex(uint LayerIndex)

CGameEditorMesh::ELayerType Layers_GetLayerTypeFromIndex(uint LayerIndex)

bool Layers_GetLayerGeneratableFromIndex(uint LayerIndex)

void Layers_SetLayerGeneratableFromIndex(uint LayerIndex, bool LayerGeneratability)

void Layers_AddLayer(CGameEditorMesh::ELayerType LayerType)

MwId Layers_GetLayerIdSelected()

void Layers_SetLayerIdSelected(MwId LayerId)

CGameEditorMesh::ELayerType Layers_GetLayerSelectedType()

uint Layers_GetLayerSelectedIndex()

CGameEditorMesh::ELayerType Layers_GetEditedLayerType()

wstring Layers_GetLayerSelectedName()

void Layers_EditMask(uint LayerIndex)

void Layers_EditMaskValidate(uint LayerIndex)

void Layers_MoveSelectedLayerUp()

void Layers_MoveSelectedLayerDown()

void Layers_EditSelectedLayer(bool RegenerateSolid)

void Layers_CloseEditSelectedLayer()

void Layers_DeleteSelectedLayer()

uint Transitions_GetCount()

void Transitions_AddTransition(wstring TransitionName, int TransitionPosition, float TransitionSize)

void Transitions_DeleteCurrentTransition()

int Transitions_GetTransitionSelectedIndex()

void Transitions_SetTransitionSelectedIndex(int TransitionIndex)

uint Transitions_GetTransitionCurrentPage()

void Transitions_SetTransitionCurrentPage(uint TransitionCurrentPage)

wstring Transitions_GetTransitionNameFromIndex(int TransitionIndex)

void Transitions_SetTransitionNameFromIndex(int TransitionIndex, float TransitionName)

bool Transitions_GetTransitionVisibilityFromIndex(int TransitionIndex)

void Transitions_SetTransitionVisibilityFromIndex(int TransitionIndex, bool TransitionVisibility)

float Transitions_GetTransitionSizeFromIndex(int TransitionIndex)

void Transitions_SetTransitionSizeFromIndex(int TransitionIndex, float TransitionSize)

int Transitions_GetTransitionPositionFromIndex(int TransitionIndex)

void Transitions_SetTransitionPositionFromIndex(int TransitionIndex, int TransitionPosition)

void EditionBox_SetStep(float Step)

void EditedMesh_Clear()

void EditedMesh_Simplify()

void EditedMesh_SimplifySelection()

void EditedMesh_Lod(float FacesRatio)

void UVUnwrap(MwId SetHandle, CGameEditorMesh::ETexCoordLayer ETexCoordLayer)

void Undo()

void Redo()

void SwitchPlane()

void GridSnap_SetActive(bool IsActive)

vec3 PickInfo_GetNormal()

vec3 PickInfo_GetPosition()

MwId PickInfo_GetAnchorId()

float PickInfo_GetEdgeLength()

vec3 PickInfo_GetNextVertexPosition()

MwId PickInfo_GetMaterial()

wstring PickInfo_GetError()

void Part_SetAnchorPos(vec3 Position)

void Part_SetIsJoint(bool IsJoint)

void Part_ClearAnchor()

void Joint_Add(vec3 Position)

void Joint_Link(MwId IdChild, MwId IdParent)

void Anchor_Remove(MwId Id)

MwId Material_GetMaterialIdSelected()

void Material_SetMaterialIdSelected(MwId MaterialEditorId)

MwId MaterialDyna_GetMaterialIdSelected()

void MaterialDyna_SetMaterialIdSelected(MwId DynaMaterialType)

uint Material_GetSubTexIndexSelected()

uint Material_MaterialLibGetCount()

void Material_SetDefault(MwId MaterialId)

MwId Material_GetDefault()

MwId MaterialPhysic_GetDefault()

uint MaterialPhysic_GetIndex()

uint MaterialPhysic_GetGameplayId(MwId MaterialId)

CPlugBitmap@ MaterialPhysic_GetNextBitmap()

MwId MaterialDyna_GetDefault()

void MaterialDyna_SetDefault(MwId MaterialId)

CPlugBitmap@ Material_GetBitmapBase(MwId MaterialId)

CPlugBitmap@ Material_GetBitmap(MwId MaterialId)

CPlugBitmap@ MaterialDyna_GetBitmap(MwId MaterialId)

bool Material_IsSpecialColored(MwId MaterialId)

bool Material_MatchesCriterion(MwId MaterialId, CGameEditorMesh::EMaterialFilterCriterion ResultSetHandle)

void Material_SetFilter(CGameEditorMesh::EMaterialFilterCriterion Criterion, CGameEditorMesh::EFilterKind FilterKind)

CGameEditorMesh::EFilterKind Material_GetFilter(CGameEditorMesh::EMaterialFilterCriterion Criterion)

void Material_ClearFilters()

void Material_UVEditor_SetIsRotation(bool IsRotation)

void Material_UVEditor_SetIsScale(bool IsScale)

void Material_UVEditor_SetIsScale1D(bool IsScale)

void Material_UVEditor_Open(MwId MaterialId, CGameManialinkQuad@ LocationQuad)

void Material_UVEditor_Close()

bool Material_UVEditor_IsRunning()

void Material_UVEditor_SetMode(CGameEditorMesh::EUVEditorMode Mode)

CGameEditorMesh::EUVEditorMode Material_UVEditor_GetMode()

void Material_UVEditor_SetProjectionType(CGameEditorMesh::EUVEditorProjectionType ProjectionType)

bool Material_IsGameMaterial()

bool Material_IsCustomLinkFull(MwId MaterialId)

void Material_UVEditor_Apply()

void Material_CopyMaterial(MwId SetHandle)

void Material_PasteMaterial(MwId SetHandle)

void Interaction_Close()

void Interaction_SetPreview(MwId SetToPreview)

bool Interaction_StartCreation(MwId CreationSetHandle, CGameEditorMesh::EElemType ElemType, MwId SetToPickFromHandle)

void Interaction_Creation_GetElems(MwId ResultSetHandle)

void Interaction_Creation_ClearParams()

void Interaction_Creation_SetEdgesConstraint(CGameEditorMesh::EEdgesConstraint EdgesConstraint)

void Interaction_Creation_SetAutoMerge(bool AutoMerge)

bool Interaction_StartPaste()

bool Interaction_StartBlocTransformation(MwId TransformationSetHandle)

bool Interaction_StartCurve2D(MwId BordersSetHandle)

void Interaction_CloseCurve2D(bool CanDoCurve2D)

bool Interaction_StartPick(CGameEditorMesh::EElemType ElemType, MwId SetToPickFrom)

bool Interaction_StartPickJoint()

bool Interaction_StartVoxelPickDrag_Base(CGameEditorMesh::EElemType ElemType)

bool Interaction_StartVoxelPickDrag_Creation()

bool Interaction_StartVoxelPickDrag_Delete()

bool Interaction_StartVoxelPickDrag_Select(MwId SelectionSetHandle)

void Interaction_CloseVoxelPickDrag_Select()

bool Interaction_StartVoxelPickDrag_Pick()

void Interaction_CloseVoxelPickDrag_Pick()

bool Interaction_StartVoxelPickDrag_SelectTranslation()

bool Interaction_StartVoxelPickDrag_SelectRotation()

bool Interaction_StartVoxelPickDrag_Paste()

void CutVoxels()

void CopyVoxels()

bool Interaction_StartMerge(MwId MergeSetHandle)

bool Interaction_StartMirror(MwId SetHandle)

void Interaction_Selection_ClearParams()

void Interaction_Selection_SetUseParts(bool UseParts)

void Interaction_Selection_SetCanEnterLeaf(bool CanEnterLeaf)

bool Interaction_StartSelection(MwId SelectionSetHandle, CGameEditorMesh::EElemType ElemType, MwId SelectionSetToPickFrom, bool IsFromALayer, bool AllowDoubleClick)

void Interaction_CloseSelection()

bool Interaction_StartTranslation(MwId TranslationSetHandle)

bool Interaction_StartPickTranslation(MwId TranslationSetHandle)

bool Interaction_StartRotation(MwId RotationSetHandle)

bool Interaction_StartPickRotation(MwId RotationSetHandle)

void Interaction_Rotation_SetStep(float RotationStep)

bool Interaction_StartPickScale(MwId ScalingSetHandle)

void Interaction_Scale_SetStep(float ScalingStep)

bool Interaction_StartSplit()

void Display_HighlightSet(MwId SetHandle)

void Display_ClearHighlighting()

void Display_HideElemsByDistance_Start(MwId SetHandle)

void Display_HideElemsByDistance_Stop()

void Display_HideMap()

void Display_ShowMap()

void MergeAllSuperposedElements(MwId SetHandle)

void Selection_Undo()

void Selection_Redo()

void Selection_Invert()

void Selection_SelectAllByMaterial()

MwId SetOfElements_Create()

void SetOfElements_CopyFrom(MwId DestinationSet, MwId SourceSet)

void SetOfElements_Append(MwId DestinationSet, MwId SourceSet)

void SetOfElements_Destroy(MwId SetHandle)

void SetOfElements_Empty(MwId SetHandle)

void SetOfElements_SetAllElements(MwId SetHandle)

void SetOfElements_SetAllFaces(MwId SetHandle)

void SetOfElements_DeleteElements(MwId SetHandle)

void SetOfElements_DeleteElements_NoSpread(MwId SetHandle, bool Spread)

bool SetOfElements_HasHorizontalFaces(MwId SetHandle)

bool SetOfElements_HasVerticalFaces(MwId SetHandle)

uint SetOfElements_GetElemsCount(MwId SetHandle)

uint SetOfElements_GetVerticesCount(MwId SetHandle)

uint SetOfElements_GetEdgesCount(MwId SetHandle)

uint SetOfElements_GetFacesCount(MwId SetHandle)

void ExtendSelectedSet(MwId SetHandle)

bool GetBordersSet(MwId SetHandle, MwId SetBordersHandle)

void GetBordersVertexs(MwId SetHandle, MwId SetVertexHandle)

void SelectionSet_SelectAll()

void Curve2DPolygon(MwId FourVertexSetHandle, MwId Sethandle, uint SubTexIndex)

void Preview_Clear()

void VoxelSpace_SetVec3(vec3 Pos)

uint VoxelSpace_GetVoxelsCount()

void VoxelSpace_SelectAll()

void VoxelSpace_DeleteOneVoxel()

void VoxelSpace_DeleteSelection()

void VoxelSpace_ApplyMaterialToVoxel()

void VoxelSpace_GenerateMesh()

void SetOfElements_ProjectOnPlane(MwId SetHandle)

void SetOfElements_ProjectOnGround(MwId SetHandle, float Height)

void SetOfElements_SplitEdgeWithVertex(MwId SetHandle)

void SetOfElements_CollapseEdgeWithVertex(MwId SetHandle)

void SetOfElements_Subdivide(MwId SetHandle)

void SetOfElements_Subdivide_Interpolation(MwId SetHandle)

void SetOfVertices_DrawCircle(MwId InputSetHandle, MwId ResultSetHandle)

void SetOfVertices_DrawDisc(MwId InputSetHandle, MwId ResultSetHandle)

void SetOfVertices_DrawCircle2(MwId CenterSetHandle, vec3 PointOnCircle, MwId ResultSetHandle)

void SetOfVertices_DrawIcosahedron(MwId InputSetHandle, MwId ResultSetHandle)

void SetOfVertices_DrawIcosahedron2(MwId CenterSetHandle, vec3 PointOnCircle, MwId ResultSetHandle)

void SetOfVertices_DrawIcosahedricSphere(MwId InputSetHandle, MwId ResultSetHandle)

void SetOfVertices_DrawPoly(MwId InputSetHandle, MwId ResultSetHandle, int VerticesCount)

void SetOfVertices_DrawPoly2(MwId CenterSetHandle, vec3 PointOnPoly, MwId ResultSetHandle, int VerticesCount)

void SetOfVertices_DrawSpline(MwId ControlSetHandle, MwId ResultSetHandle)

void SetOfVertices_Weld(MwId VerticesSetHandle)

void SetOfVertices_DrawBox(MwId ControlSetHandle, MwId ResultSetHandle)

void SetOfEdges_Fill(MwId SetHandle)

void SetOfEdges_Flip(MwId SetHandle, MwId ResultSetHandle)

void SetOfEdges_BorderExpand(MwId SetHandle)

void SetOfOneEdge_FaceLoopExpand(MwId SetHandle)

void SetOfOneEdge_EdgeLoopExpand(MwId SetHandle)

void SetOfOneFace_CutHole(MwId FaceSetHandle, MwId EdgesSetHandle)

void SetOfFaces_Extrude(MwId SetHandle, MwId ResultSetHandle)

void SetOfFaces_QuadsToTriangles(MwId SetHandle, MwId ResultSetHandle)

void SetOfFaces_TrianglesToQuads(MwId SetHandle, MwId ResultSetHandle)

void SetOfFaces_ApplyMaterial(MwId SetHandle, MwId MaterialId)

void SetOfFaces_PlanarExpand(MwId FacesSetHandle)

void SetOfFaces_ChangeOrientation(MwId FacesSetHandle)

void Prefabs_Reload()

void Prefab_Export()

void Prefab_Import(uint PrefabIndex)

bool Parts_CanMergeParts()

bool Parts_CanGroupParts()

bool Parts_CanUngroupParts()

int3 Parts_GetOpsState()

void Parts_MergeSelectedParts()

void Parts_Group()

void Parts_UngroupSelectedParts()

void Cut()

void Copy()

void AddUndoState()

bool AutoSave(wstring FileName)

CGameEditorMesh::ETitleCoreType GetTitleCoreType()

Members

bool GoToMaterialEditor

bool IsCreateMaterial

bool IsEditingLayer

uint SubdivideSmooth_NbSteps

float LayerValueAxisX

float LayerValueAxisY

float LayerValueAxisZ

bool LayerIndep

float LayerValueParam1

float LayerValueParam2

float LayerValueParam3

float LayerValueParam4

bool LayerIndexAxisX

bool LayerIndexAxisY

bool LayerIndexAxisZ

bool Layer_IsVisible

bool Layer_IsCollidable

wstring LayerName

bool LayerGeneratable

bool AddTransitionInProgress

wstring NewTransitionName

int NewTransitionPosition

float NewTransitionSize

uint RotateAxis

const bool Tmp_UseParts

const bool IsDebug

bool CameraEatingInputsScript

const CControlFrame@ UIRoot

const CMwNod@ EditedNod

CPlugMaterialUserInst@ MatUserInstToEdit

const uint VertexCount

const uint EdgeCount

const uint FaceCount

const bool EditionBox_IsPlaneOriented

const float Scale

const float Step

const float Size

const int RotationStep

const float RotationValue

const float ScalingStep

const float ScalingRatio

bool DisplayVertices

bool DisplayFaces

bool DisplayJoints

CGameEditorMesh::EEdgesDisplay DisplayEdges

EEdgesDisplay::Any
EEdgesDisplay::Borders
EEdgesDisplay::None

const bool GridSnap_IsActive

bool IsUsingPhysicMatLib

const int MaterialGameplayIdNumber

const int MaterialsUpdateId

const MwFastBuffer<CPlugBitmap@> AllBitmaps

const MwFastBuffer<MwId> MaterialIds

const MwSArray<MwId> MaterialPhysicsIds

const MwSArray<MwId> MaterialDynaIds

const MwSArray<wstring> MaterialNames

const MwSArray<wstring> MaterialPhysicsNames

const MwSArray<uint> MaterialPhysics_GameplayRemap

const MwSArray<wstring> MaterialDynaNames

MwFastArray<vec3> MaterialLastUsedColors

const MwFastArray<vec3> MaterialBaseColors

vec3 CurrentColorForSpecialMaterials

const uint Material_Atlas_SelectedSubTexIndex

const CGameEditorMesh::EInteraction CurrentInteraction

EInteraction::Creation
EInteraction::Pick
EInteraction::PickJoint
EInteraction::VoxelPickDrag_Base
EInteraction::VoxelPickDrag_Creation
EInteraction::VoxelPickDrag_Delete
EInteraction::VoxelPickDrag_Select
EInteraction::VoxelPickDrag_Pick
EInteraction::VoxelPickDrag_SelectTranslation
EInteraction::VoxelPickDrag_SelectRotation
EInteraction::VoxelPickDrag_Paste
EInteraction::Selection
EInteraction::Translation
EInteraction::PickTranslation
EInteraction::ExtrudeTranslation
EInteraction::Rotation
EInteraction::PickRotation
EInteraction::Scale
EInteraction::Curve2D
EInteraction::Merge
EInteraction::Split
EInteraction::Mirror
EInteraction::Paste
EInteraction::PasteMaterial
EInteraction::BlocTransformation
EInteraction::None

const uint CreationElemsCount

const bool Display_HideElemsByDistance_IsActive

uint Display_HideElemsByDistance_Distance

float Display_HideElemsByDistance_Opacity

const MwId SelectionSet

vec3 VoxelSpaceCenter

vec3 VoxelSpaceAngle

float VoxelSpaceStep

bool VoxelSpaceIsInteractive

const MwFastBuffer<wstring> PrefabNames

const int PrefabNamesUpdateId

uint PrefabListCurrentPage

uint Prefab_TotalNb

const MwFastBuffer<CGameEditorEvent@> PendingEvents

bool MustClearLastSaveBuffer

const bool IsExperimental

Inherited members CMwNod

string IdName

const MwId Id

Enums

EEdgesDisplay

EEdgesDisplay::Any
EEdgesDisplay::Borders
EEdgesDisplay::None

EEdgesConstraint

EEdgesConstraint::Any
EEdgesConstraint::Adjacent
EEdgesConstraint::Closed

EElemType

EElemType::Vertex
EElemType::Edge
EElemType::Face
EElemType::EVoxel
EElemType::Any

EInteraction

EInteraction::Creation
EInteraction::Pick
EInteraction::PickJoint
EInteraction::VoxelPickDrag_Base
EInteraction::VoxelPickDrag_Creation
EInteraction::VoxelPickDrag_Delete
EInteraction::VoxelPickDrag_Select
EInteraction::VoxelPickDrag_Pick
EInteraction::VoxelPickDrag_SelectTranslation
EInteraction::VoxelPickDrag_SelectRotation
EInteraction::VoxelPickDrag_Paste
EInteraction::Selection
EInteraction::Translation
EInteraction::PickTranslation
EInteraction::ExtrudeTranslation
EInteraction::Rotation
EInteraction::PickRotation
EInteraction::Scale
EInteraction::Curve2D
EInteraction::Merge
EInteraction::Split
EInteraction::Mirror
EInteraction::Paste
EInteraction::PasteMaterial
EInteraction::BlocTransformation
EInteraction::None

ETexCoordLayer

ETexCoordLayer::Lightmap

EMaterialFilterCriterion

EMaterialFilterCriterion::IsAutomatic
EMaterialFilterCriterion::IsBadForHorizontalFaces
EMaterialFilterCriterion::IsBadForVerticalFaces

EFilterKind

EFilterKind::NoFilter
EFilterKind::PassIfMatches
EFilterKind::CutIfMatches

EUVEditorMode

EUVEditorMode::UV
EUVEditorMode::Atlas_ApplyOnClic
EUVEditorMode::Atlas_SelectOnClic

EUVEditorProjectionType

EUVEditorProjectionType::Planar
EUVEditorProjectionType::Curve2D
EUVEditorProjectionType::Cylindrical2D
EUVEditorProjectionType::Cubic
EUVEditorProjectionType::Polyedric
EUVEditorProjectionType::Cylindrical
EUVEditorProjectionType::ApplyOnlyMaterial

ELayerType

ELayerType::AddGeometry
ELayerType::SubdivideSmooth
ELayerType::Translation
ELayerType::Rotation
ELayerType::Scale
ELayerType::Mirror
ELayerType::MoveToGround
ELayerType::Extrude
ELayerType::Subdivide
ELayerType::Chaos
ELayerType::Smooth
ELayerType::BorderTransition
ELayerType::BlocTransfo
ELayerType::Voxels
ELayerType::TriggerShape
ELayerType::RespawnPos
ELayerType::Sector
ELayerType::Light
ELayerType::LightModel
ELayerType::WaterShape
ELayerType::None

ETitleCoreType

ETitleCoreType::TrackMania
ETitleCoreType::ShootMania

Documentation from build 2024-02-26 11:36:11
(Page rendering: 0.06 seconds, 15.95 MB)