This page has been translated automatically.
Видеоуроки
Interface
Essentials
Advanced
Подсказки и советы
Основы
Программирование на C#
Рендеринг
Professional (SIM)
Принципы работы
Свойства (properties)
Компонентная Система
Рендер
Физика
Редактор UnigineEditor
Обзор интерфейса
Работа с ассетами
Настройки и предпочтения
Работа с проектами
Настройка параметров ноды
Setting Up Materials
Настройка свойств
Освещение
Sandworm
Использование инструментов редактора для конкретных задач
Расширение функционала редактора
Встроенные объекты
Ноды (Nodes)
Объекты (Objects)
Эффекты
Декали
Источники света
Geodetics
World-ноды
Звуковые объекты
Объекты поиска пути
Players
Программирование
Основы
Настройка среды разработки
Примеры использования
C++
C#
UnigineScript
UUSL (Unified UNIGINE Shader Language)
Плагины
Форматы файлов
Materials and Shaders
Rebuilding the Engine Tools
Интерфейс пользователя (GUI)
Двойная точность координат
API
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
Работа с контентом
Оптимизация контента
Материалы
Визуальный редактор материалов
Сэмплы материалов
Material Nodes Library
Miscellaneous
Input
Math
Matrix
Textures
Art Samples
Tutorials
Внимание! Эта версия документация УСТАРЕЛА, поскольку относится к более ранней версии SDK! Пожалуйста, переключитесь на самую актуальную документацию для последней версии SDK.
Внимание! Эта версия документации описывает устаревшую версию SDK, которая больше не поддерживается! Пожалуйста, обновитесь до последней версии SDK.

Unigine::ImportSurface 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 surface.

ImportSurface Class

Members

void setBoundBox ( const const Math::WorldBoundBox && box ) #

Sets a new bounding box of the geometry element.

Arguments

  • const const Math::WorldBoundBox && box - The geometry element bounding box.

const Math::WorldBoundBox & getBoundBox() const#

Returns the current bounding box of the geometry element.

Return value

Current geometry element bounding box.

void setData ( void * data ) #

Sets a new metadata of the imported surface.

Arguments

  • void * data - The surface metadata.

void * getData() const#

Returns the current metadata of the imported surface.

Return value

Current surface metadata.

void setName ( const char * name ) #

Sets a new name of the imported surface.

Arguments

  • const char * name - The surface name.

const char * getName() const#

Returns the current name of the imported surface.

Return value

Current surface name.

void setMaterial ( const Ptr<ImportMaterial> & material ) #

Sets a new material assigned to the imported surface.

Arguments

  • const Ptr<ImportMaterial> & material - The surface material: ImportMaterial class instance if a material is assigned to the imported surface; otherwise, nullptr

const Ptr<ImportMaterial> & getMaterial() const#

Returns the current material assigned to the imported surface.

Return value

Current surface material: ImportMaterial class instance if a material is assigned to the imported surface; otherwise, nullptr

void setMaxFadeDistance ( float distance ) #

Sets a new Maximum Fade Distance for the imported surface.

Arguments

  • float distance - The maximum fade distance, in units.

float getMaxFadeDistance() const#

Returns the current Maximum Fade Distance for the imported surface.

Return value

Current maximum fade distance, in units.

void setMinFadeDistance ( float distance ) #

Sets a new Minimum Fade Distance for the imported surface.

Arguments

  • float distance - The minimum fade distance, in units.

float getMinFadeDistance() const#

Returns the current Minimum Fade Distance for the imported surface.

Return value

Current minimum fade distance, in units.

void setMaxVisibleDistance ( float distance ) #

Sets a new Maximum Visibility Distance for the imported surface.

Arguments

  • float distance - The maximum visibility distance, in units.

float getMaxVisibleDistance() const#

Returns the current Maximum Visibility Distance for the imported surface.

Return value

Current maximum visibility distance, in units.

void setMinVisibleDistance ( float distance ) #

Sets a new Minimum Visibility Distance for the imported surface.

Arguments

  • float distance - The minimum visibility distance, in units.

float getMinVisibleDistance() const#

Returns the current Minimum Visibility Distance for the imported surface.

Return value

Current minimum visibility distance, in units.

void setSourceIndex ( int index ) #

Sets a new index of the surface in the source file (FBX, glTF).

Arguments

  • int index - The sufrace index in te source file (FBX, glTF).

int getSourceIndex() const#

Returns the current index of the surface in the source file (FBX, glTF).

Return value

Current sufrace index in te source file (FBX, glTF).

void setTargetSurface ( int surface ) #

Sets a new number of the morph target surface for the imported surface.

Arguments

  • int surface - The morph target surface number if any; otherwise, -1.

int getTargetSurface() const#

Returns the current number of the morph target surface for the imported surface.

Return value

Current morph target surface number if any; otherwise, -1.

void copyFrom ( const Ptr<ImportSurface> & o ) #

Copies the data from the specified source surface.

Arguments

  • const Ptr<ImportSurface> & o - Source surface.
Last update: 14.12.2022
Build: ()