Search Results for

    Show / Hide Table of Contents

    Class ModelTool

    Models data importing and processing utility.

    Inheritance
    ModelTool
    Inherited Members
    ModelTool
    ModelTool
    ModelTool
    Assembly: FlaxEngine.dll
    File: Engine/Tools/ModelTool/ModelTool.h
    Syntax
    public class ModelTool

    Methods

    CombineTransformsFromNodeIndices(Array<Node>& nodes, int32 rootIndex, int32 index)

    Gets the local transformations to go from rootIndex to index.

    Declaration
    public static Transform CombineTransformsFromNodeIndices(Array<Node>& nodes, int32 rootIndex, int32 index)
    Parameters
    Array<Node> nodes

    The nodes containing the local transformations.

    int32 rootIndex

    The root index.

    int32 index

    The current index.

    Returns
    Transform

    The transformation at this index.

    Type Parameters
    typename Node

    DetectLodIndex(const String& nodeName)

    Declaration
    public static int32 DetectLodIndex(const String& nodeName)
    Parameters
    String nodeName

    Returns
    int32

    FindTexture(const String& sourcePath, const String& file, String& path)

    Declaration
    public static bool FindTexture(const String& sourcePath, const String& file, String& path)
    Parameters
    String sourcePath

    String file

    String path

    Returns
    bool

    ImportData(const String& path, ModelData& data, Options& options, String& errorMsg)

    Imports the model source file data.

    Declaration
    public static bool ImportData(const String& path, ModelData& data, Options& options, String& errorMsg)
    Parameters
    String path

    The file path.

    ModelData data

    The output data.

    Options options

    The import options.

    String errorMsg

    The error message container.

    Returns
    bool

    True if fails, otherwise false.

    ImportModel(const String& path, ModelData& data, Options& options, String& errorMsg, const String& autoImportOutput=String::Empty)

    Imports the model.

    Declaration
    public static bool ImportModel(const String& path, ModelData& data, Options& options, String& errorMsg, const String& autoImportOutput=String::Empty)
    Parameters
    String path

    The file path.

    ModelData data

    The output data.

    Options options

    The import options.

    String errorMsg

    The error message container.

    String autoImportOutput

    The output folder for the additional imported data - optional. Used to auto-import textures and material assets.

    Returns
    bool

    True if fails, otherwise false.

    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © 2012-2024 Wojciech Figat