This page has been translated automatically.
Видеоуроки
Интерфейс
Основы
Продвинутый уровень
Подсказки и советы
Основы
Программирование на C#
Рендеринг
Профессиональный уровень (SIM)
Принципы работы
Свойства (properties)
Компонентная Система
Рендер
Физика
Редактор UnigineEditor
Обзор интерфейса
Работа с ассетами
Контроль версий
Настройки и предпочтения
Работа с проектами
Настройка параметров ноды
Setting Up Materials
Настройка свойств
Освещение
Sandworm
Использование инструментов редактора для конкретных задач
Расширение функционала редактора
Встроенные объекты
Ноды (Nodes)
Объекты (Objects)
Эффекты
Декали
Источники света
Geodetics
World-ноды
Звуковые объекты
Объекты поиска пути
Player-ноды
Программирование
Основы
Настройка среды разработки
Примеры использования
C++
C#
UnigineScript
UUSL (Unified UNIGINE Shader Language)
Плагины
Форматы файлов
Материалы и шейдеры
Rebuilding the Engine Tools
Интерфейс пользователя (GUI)
Двойная точность координат
API
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
Учебные материалы

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.
Header: #include <UnigineImport.h>

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

ImportMesh Class

Members

void setData ( void * data ) #

Sets a new metadata of the imported mesh.

Arguments

  • void * data - The mesh metadata.

void * getData() const#

Returns the current metadata of the imported mesh.

Return value

Current mesh metadata.

void setName ( const char * name ) #

Sets a new name of the mesh.

Arguments

  • const char * name - The mesh name.

const char * getName() const#

Returns the current name of the mesh.

Return value

Current mesh name.

void setFilepath ( const char * filepath ) #

Sets a new path to the output mesh file.

Arguments

  • const char * filepath - The output mesh file path.

const char * getFilepath() const#

Returns the current path to the output mesh file.

Return value

Current output mesh file path.

void setHasAnimations ( bool animations ) #

Sets a new value indicating if the mesh has animations.

Arguments

  • bool animations - Set true to enable the mesh has animations; false - to disable it.

bool isHasAnimations() const#

Returns the current value indicating if the mesh has animations.

Return value

true if the mesh has animations is enabled; otherwise false.

void setAnimationFilepath ( const char * filepath ) #

Sets a new path to the output animation file.

Arguments

  • const char * filepath - The output animation file path.

const char * getAnimationFilepath() const#

Returns the current path to the output animation file.

Return value

Current output animation file path.

ImportMesh ( ) #

Constructor. Creates an empty ImportMesh instance.

int getNumNodes ( ) const#

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 ( const Ptr<ImportNode> & node ) #

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

Arguments

bool removeNode ( const Ptr<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.

Ptr<ImportNode> getNode ( int index ) const#

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 ( ) const#

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.

Ptr<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 ( const Ptr<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

  • const Ptr<ImportMesh> & other - Source mesh.

void moveGeometriesFrom ( const Ptr<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

  • const Ptr<ImportMesh> & other - Source mesh.

Ptr<ImportGeometry> getGeometry ( int index ) const#

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: 28.11.2022
Build: ()