This page has been translated automatically.
视频教程
界面
要领
高级
实用建议
专业(SIM)
UnigineEditor
界面概述
资源工作流程
版本控制
设置和首选项
项目开发
调整节点参数
Setting Up Materials
设置属性
照明
Sandworm
使用编辑器工具执行特定任务
如何擴展編輯器功能
嵌入式节点类型
Nodes
Objects
Effects
Decals
光源
Geodetics
World Nodes
Sound Objects
Pathfinding Objects
Players
编程
基本原理
搭建开发环境
使用范例
C++
C#
UnigineScript
UUSL (Unified UNIGINE Shader Language)
Plugins
File Formats
材质和着色器
Rebuilding the Engine Tools
GUI
双精度坐标
应用程序接口
Animations-Related Classes
Containers
Common Functionality
Controls-Related Classes
Engine-Related Classes
Filesystem Functionality
GUI-Related Classes
Math Functionality
Node-Related Classes
Objects-Related Classes
Networking Functionality
Pathfinding-Related Classes
Physics-Related Classes
Plugins-Related Classes
IG Plugin
CIGIConnector Plugin
Rendering-Related Classes
VR-Related Classes
创建内容
内容优化
材质
Material Nodes Library
Miscellaneous
Input
Math
Matrix
Textures
Art Samples
Tutorials

Unigine.ImportMesh Class

Warning
The functionality described in this article is not available in the Community SDK edition.
You should upgrade to Engineering / Sim SDK edition to use it.

This class represents a container of metadata for an imported mesh.

ImportMesh Class

Properties

IntPtr Data#

The metadata of the imported mesh.

string Name#

The name of the mesh.

string Filepath#

The path to the output mesh file.

bool HasAnimations#

The value indicating if the mesh has animations.

string AnimationFilepath#

The path to the output animation file.

Members


ImportMesh ( ) #

Constructor. Creates an empty ImportMesh instance.

int GetNumNodes ( ) #

Returns the number of import nodes to which the mesh is attached as an attribute.

Return value

Number of nodes to which the mesh is attached as an attribute.

void AddNode ( ImportNode node ) #

Adds a new node to the list of import nodes to which the mesh is attached as an attribute.

Arguments

bool RemoveNode ( ImportNode node ) #

Removes the specified import node from the list of import nodes to which the mesh is attached as an attribute.

Arguments

Return value

true if the specified import node was successfully removed from the list; otherwise false.

ImportNode GetNode ( int index ) #

Returns an import node with the specified index from the list of import nodes to which the mesh is attached as an attribute.

Arguments

  • int index - Index of node in the list.

Return value

Import node with the specified index (if it exists).

int GetNumGeometries ( ) #

Returns the number of elements in the mesh geometry list (a set of ImportGeometry elements making up the geometry of the mesh).

Return value

Number of elements in the mesh geometry list.

ImportGeometry AddGeometry ( ) #

Adds a new element to the mesh geometry list and returns the corresponding ImportGeometry instance.

Return value

New added geometry element.

void CopyGeometriesFrom ( ImportMesh other ) #

Copies all geometry elements from the specified source mesh and adds them to the mesh geometry list (a set of ImportGeometry elements making up the geometry of the mesh).

Arguments

  • ImportMesh other - Source mesh.

void MoveGeometriesFrom ( ImportMesh other ) #

Moves all geometry elements from the specified source mesh and adds them to the mesh geometry list (a set of ImportGeometry elements making up the geometry of the mesh).

Arguments

  • ImportMesh other - Source mesh.

ImportGeometry GetGeometry ( int index ) #

Returns an element of mesh geometry by its index. Geometry of the mesh can consist of multiple ImportGeometry elements.

Arguments

  • int index - Index of geometry element.

Return value

Geometry element with the specified index.

void ClearGeometries ( ) #

Clears the geometry list of the mesh (a set of ImportGeometry elements making up the geometry of the mesh).
Last update: 2024-04-19
Build: ()