2008-10-22 20:06:16 +00:00
|
|
|
/*
|
|
|
|
Open Asset Import Library (ASSIMP)
|
|
|
|
----------------------------------------------------------------------
|
|
|
|
|
|
|
|
Copyright (c) 2006-2008, ASSIMP Development Team
|
|
|
|
All rights reserved.
|
|
|
|
|
|
|
|
Redistribution and use of this software in source and binary forms,
|
|
|
|
with or without modification, are permitted provided that the
|
|
|
|
following conditions are met:
|
|
|
|
|
|
|
|
* Redistributions of source code must retain the above
|
|
|
|
copyright notice, this list of conditions and the
|
|
|
|
following disclaimer.
|
|
|
|
|
|
|
|
* Redistributions in binary form must reproduce the above
|
|
|
|
copyright notice, this list of conditions and the
|
|
|
|
following disclaimer in the documentation and/or other
|
|
|
|
materials provided with the distribution.
|
|
|
|
|
|
|
|
* Neither the name of the ASSIMP team, nor the names of its
|
|
|
|
contributors may be used to endorse or promote products
|
|
|
|
derived from this software without specific prior
|
|
|
|
written permission of the ASSIMP Development Team.
|
|
|
|
|
|
|
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
|
|
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
|
|
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
|
|
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
|
|
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
|
|
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
|
|
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
|
|
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
|
|
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
|
|
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
|
|
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
|
|
|
|
----------------------------------------------------------------------
|
|
|
|
*/
|
|
|
|
|
|
|
|
/** @file Declares a helper class, "SceneCombiner" providing various
|
|
|
|
* utilities to merge scenes.
|
|
|
|
*/
|
|
|
|
#ifndef AI_SCENE_COMBINER_H_INC
|
|
|
|
#define AI_SCENE_COMBINER_H_INC
|
|
|
|
|
|
|
|
#include "../include/aiAssert.h"
|
|
|
|
|
|
|
|
namespace Assimp {
|
|
|
|
|
2008-11-02 16:58:31 +00:00
|
|
|
// ---------------------------------------------------------------------------
|
|
|
|
/** \brief Helper data structure for SceneCombiner.
|
|
|
|
*
|
|
|
|
* Describes to which node a scene must be attached to.
|
|
|
|
*/
|
|
|
|
struct AttachmentInfo
|
|
|
|
{
|
|
|
|
AttachmentInfo()
|
|
|
|
: scene (NULL)
|
|
|
|
, attachToNode (NULL)
|
|
|
|
{}
|
|
|
|
|
|
|
|
AttachmentInfo(aiScene* _scene, aiNode* _attachToNode)
|
|
|
|
: scene (_scene)
|
|
|
|
, attachToNode (_attachToNode)
|
|
|
|
{}
|
|
|
|
|
|
|
|
aiScene* scene;
|
|
|
|
aiNode* attachToNode;
|
|
|
|
};
|
2008-10-22 20:06:16 +00:00
|
|
|
|
2008-11-26 13:17:39 +00:00
|
|
|
// ---------------------------------------------------------------------------
|
|
|
|
struct NodeAttachmentInfo
|
|
|
|
{
|
|
|
|
NodeAttachmentInfo()
|
|
|
|
: node (NULL)
|
|
|
|
, attachToNode (NULL)
|
2009-02-12 22:14:35 +00:00
|
|
|
, resolved (false)
|
|
|
|
, src_idx (0xffffffff)
|
2008-11-26 13:17:39 +00:00
|
|
|
{}
|
|
|
|
|
2009-02-12 22:14:35 +00:00
|
|
|
NodeAttachmentInfo(aiNode* _scene, aiNode* _attachToNode,size_t idx)
|
2008-11-26 13:17:39 +00:00
|
|
|
: node (_scene)
|
|
|
|
, attachToNode (_attachToNode)
|
2009-02-12 22:14:35 +00:00
|
|
|
, resolved (false)
|
|
|
|
, src_idx (idx)
|
2008-11-26 13:17:39 +00:00
|
|
|
{}
|
|
|
|
|
|
|
|
aiNode* node;
|
|
|
|
aiNode* attachToNode;
|
2009-02-12 22:14:35 +00:00
|
|
|
bool resolved;
|
|
|
|
size_t src_idx;
|
2008-11-26 13:17:39 +00:00
|
|
|
};
|
|
|
|
|
2009-02-12 22:14:35 +00:00
|
|
|
// ---------------------------------------------------------------------------
|
|
|
|
/** @def AI_INT_MERGE_SCENE_GEN_UNIQUE_NAMES
|
|
|
|
* Generate unique names for all named scene items
|
|
|
|
*/
|
2008-11-26 13:17:39 +00:00
|
|
|
#define AI_INT_MERGE_SCENE_GEN_UNIQUE_NAMES 0x1
|
2009-02-12 22:14:35 +00:00
|
|
|
|
|
|
|
/** @def AI_INT_MERGE_SCENE_GEN_UNIQUE_MATNAMES
|
|
|
|
* Generate unique names for materials, too.
|
|
|
|
* This is not absolutely required to pass the validation.
|
|
|
|
*/
|
2008-11-26 13:17:39 +00:00
|
|
|
#define AI_INT_MERGE_SCENE_GEN_UNIQUE_MATNAMES 0x2
|
2009-02-12 22:14:35 +00:00
|
|
|
|
|
|
|
/** @def AI_INT_MERGE_SCENE_DUPLICATES_DEEP_CPY
|
|
|
|
* Use deep copies of duplicate scenes
|
|
|
|
*/
|
2008-11-26 13:17:39 +00:00
|
|
|
#define AI_INT_MERGE_SCENE_DUPLICATES_DEEP_CPY 0x4
|
|
|
|
|
2009-02-12 22:14:35 +00:00
|
|
|
/** @def AI_INT_MERGE_SCENE_RESOLVE_CROSS_ATTACHMENTS
|
|
|
|
* If attachment nodes are not found in the given master scene,
|
|
|
|
* search the other imported scenes for them in an any order.
|
|
|
|
*/
|
|
|
|
#define AI_INT_MERGE_SCENE_RESOLVE_CROSS_ATTACHMENTS 0x8
|
|
|
|
|
|
|
|
/** @def AI_INT_MERGE_SCENE_GEN_UNIQUE_NAMES_IF_NECESSARY
|
|
|
|
* Can be combined with AI_INT_MERGE_SCENE_GEN_UNIQUE_NAMES.
|
|
|
|
* Unique names are generated, but only if this is absolutely
|
General
- Added format auto-detection to most loaders
- Simplified BaseImporter::CanRead() with some utility methods
- improved fast_atof -> no overruns anymore. Fuck you, irrlicht.
- added assimp_cmd tool to allow command line model processing. Mainly adebugging tool for internal purposes, but others might find it useful, too.
- vc8/vc9: revision number is now written to DLL version header
- mkutil: some batch scripts to simplify tagging & building of release versions
- some API cleanup
- fixing some doxygen markup (+now explicit use of @file <filename>)
- Icon for assimp_view and assimp_cmd
3DS
- Normal vectors are not anymore inverted in some cases
- Improved pivot handling
- Improved handling of x-flipped meshes
Collada
- fixed a minor bug (visual_scene element)
LWS
- WIP implementation. No animations yet, some bugs and crashes.
- Animation system remains disabled, WIP code
- many test files for LWS, but most of them test the anim support, which is, read above, currently disabled.
STL
- fixing a log warning which appears for every model
- added binary&ascii test spider, exported from truespace
MD3
- Cleaning up output tags for automatically joined player models.
IRR
- Fixing coordinate system issues.
- Instance handling improved.
- Some of the reported crashes not yet fixed.
PretransformVertices
- Numerous performance improvements.
- Added config option to preserve the hierarchy during the step.
RemoveRedundantMaterials
- Added config option to specify a list of materials which are kept in every case.
UNREAL
- Added support for the old unreal data format (*.a,*.d,*.uc)
- tested only with exports from Milkshape
- more Unreal stuff to come soon
git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@356 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
2009-03-05 22:32:13 +00:00
|
|
|
* required to avoid name conflicts.
|
2009-02-12 22:14:35 +00:00
|
|
|
*/
|
|
|
|
#define AI_INT_MERGE_SCENE_GEN_UNIQUE_NAMES_IF_NECESSARY 0x10
|
|
|
|
|
2008-11-26 13:17:39 +00:00
|
|
|
|
|
|
|
typedef std::pair<aiBone*,unsigned int> BoneSrcIndex;
|
|
|
|
|
|
|
|
// ---------------------------------------------------------------------------
|
2009-02-12 22:14:35 +00:00
|
|
|
/** @brief Helper data structure for SceneCombiner::MergeBones.
|
2008-11-26 13:17:39 +00:00
|
|
|
*/
|
2009-02-12 22:14:35 +00:00
|
|
|
struct BoneWithHash : public std::pair<uint32_t,aiString*> {
|
2008-11-26 13:17:39 +00:00
|
|
|
std::vector<BoneSrcIndex> pSrcBones;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
General
- Added format auto-detection to most loaders
- Simplified BaseImporter::CanRead() with some utility methods
- improved fast_atof -> no overruns anymore. Fuck you, irrlicht.
- added assimp_cmd tool to allow command line model processing. Mainly adebugging tool for internal purposes, but others might find it useful, too.
- vc8/vc9: revision number is now written to DLL version header
- mkutil: some batch scripts to simplify tagging & building of release versions
- some API cleanup
- fixing some doxygen markup (+now explicit use of @file <filename>)
- Icon for assimp_view and assimp_cmd
3DS
- Normal vectors are not anymore inverted in some cases
- Improved pivot handling
- Improved handling of x-flipped meshes
Collada
- fixed a minor bug (visual_scene element)
LWS
- WIP implementation. No animations yet, some bugs and crashes.
- Animation system remains disabled, WIP code
- many test files for LWS, but most of them test the anim support, which is, read above, currently disabled.
STL
- fixing a log warning which appears for every model
- added binary&ascii test spider, exported from truespace
MD3
- Cleaning up output tags for automatically joined player models.
IRR
- Fixing coordinate system issues.
- Instance handling improved.
- Some of the reported crashes not yet fixed.
PretransformVertices
- Numerous performance improvements.
- Added config option to preserve the hierarchy during the step.
RemoveRedundantMaterials
- Added config option to specify a list of materials which are kept in every case.
UNREAL
- Added support for the old unreal data format (*.a,*.d,*.uc)
- tested only with exports from Milkshape
- more Unreal stuff to come soon
git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@356 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
2009-03-05 22:32:13 +00:00
|
|
|
// ---------------------------------------------------------------------------
|
|
|
|
/** @brief Utility for SceneCombiner
|
|
|
|
*/
|
|
|
|
struct SceneHelper
|
|
|
|
{
|
|
|
|
SceneHelper ()
|
|
|
|
: scene (NULL)
|
|
|
|
, idlen (0)
|
|
|
|
{
|
|
|
|
id[0] = 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
SceneHelper (aiScene* _scene)
|
|
|
|
: scene (_scene)
|
|
|
|
, idlen (0)
|
|
|
|
{
|
|
|
|
id[0] = 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
AI_FORCE_INLINE aiScene* operator-> () const
|
|
|
|
{
|
|
|
|
return scene;
|
|
|
|
}
|
|
|
|
|
|
|
|
// scene we're working on
|
|
|
|
aiScene* scene;
|
|
|
|
|
|
|
|
// prefix to be added to all identifiers in the scene ...
|
|
|
|
char id [32];
|
|
|
|
|
|
|
|
// and its strlen()
|
|
|
|
unsigned int idlen;
|
|
|
|
|
|
|
|
// hash table to quickly check whether a name is contained in the scene
|
|
|
|
std::set<unsigned int> hashes;
|
|
|
|
};
|
|
|
|
|
2008-10-22 20:06:16 +00:00
|
|
|
// ---------------------------------------------------------------------------
|
|
|
|
/** \brief Static helper class providing various utilities to merge two
|
|
|
|
* scenes. It is intended as internal utility and NOT for use by
|
|
|
|
* applications.
|
|
|
|
*
|
|
|
|
* The class is currently being used by various postprocessing steps
|
|
|
|
* and loaders (ie. LWS).
|
|
|
|
*/
|
|
|
|
class ASSIMP_API SceneCombiner
|
|
|
|
{
|
|
|
|
// class cannot be instanced
|
|
|
|
SceneCombiner() {}
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
// -------------------------------------------------------------------
|
|
|
|
/** Merges two or more scenes.
|
|
|
|
*
|
2008-11-26 13:17:39 +00:00
|
|
|
* @param dest Receives a pointer to the destination scene. If the
|
|
|
|
* pointer doesn't point to NULL when the function is called, the
|
|
|
|
* existing scene is cleared and refilled.
|
2008-10-22 20:06:16 +00:00
|
|
|
* @param src Non-empty list of scenes to be merged. The function
|
2008-11-26 13:17:39 +00:00
|
|
|
* deletes the input scenes afterwards. There may be duplicate scenes.
|
2008-10-22 20:06:16 +00:00
|
|
|
* @param flags Combination of the AI_INT_MERGE_SCENE flags defined above
|
|
|
|
*/
|
2008-11-26 13:17:39 +00:00
|
|
|
static void MergeScenes(aiScene** dest,std::vector<aiScene*>& src,
|
2008-11-02 16:58:31 +00:00
|
|
|
unsigned int flags = 0);
|
|
|
|
|
|
|
|
|
|
|
|
// -------------------------------------------------------------------
|
|
|
|
/** Merges two or more scenes and attaches all sceenes to a specific
|
|
|
|
* position in the node graph of the masteer scene.
|
|
|
|
*
|
2008-11-26 13:17:39 +00:00
|
|
|
* @param dest Receives a pointer to the destination scene. If the
|
|
|
|
* pointer doesn't point to NULL when the function is called, the
|
|
|
|
* existing scene is cleared and refilled.
|
2008-11-02 16:58:31 +00:00
|
|
|
* @param master Master scene. It will be deleted afterwards. All
|
|
|
|
* other scenes will be inserted in its node graph.
|
|
|
|
* @param src Non-empty list of scenes to be merged along with their
|
|
|
|
* corresponding attachment points in the master scene. The function
|
2008-11-26 13:17:39 +00:00
|
|
|
* deletes the input scenes afterwards. There may be duplicate scenes.
|
2008-11-02 16:58:31 +00:00
|
|
|
* @param flags Combination of the AI_INT_MERGE_SCENE flags defined above
|
|
|
|
*/
|
2008-11-26 13:17:39 +00:00
|
|
|
static void MergeScenes(aiScene** dest, aiScene* master,
|
2008-11-02 16:58:31 +00:00
|
|
|
std::vector<AttachmentInfo>& src,
|
|
|
|
unsigned int flags = 0);
|
2008-10-22 20:06:16 +00:00
|
|
|
|
|
|
|
|
|
|
|
// -------------------------------------------------------------------
|
|
|
|
/** Merges two or more meshes
|
2008-11-26 13:17:39 +00:00
|
|
|
*
|
|
|
|
* The meshes should have equal vertex formats. Only components
|
|
|
|
* that are provided by ALL meshes will be present in the output mesh.
|
|
|
|
* An exception is made for VColors - they are set to black. The
|
|
|
|
* meshes should have the same material indices, too. The output
|
|
|
|
* material index is always the material index of the first mesh.
|
2008-10-22 20:06:16 +00:00
|
|
|
*
|
|
|
|
* @param dest Destination mesh. Must be empty.
|
|
|
|
* @param flags Currently no parameters
|
2008-11-26 13:17:39 +00:00
|
|
|
* @param begin First mesh to be processed
|
|
|
|
* @param end Points to the mesh after the last mesh to be processed
|
2008-10-22 20:06:16 +00:00
|
|
|
*/
|
2008-11-26 13:17:39 +00:00
|
|
|
static void MergeMeshes(aiMesh** dest,unsigned int flags,
|
|
|
|
std::vector<aiMesh*>::const_iterator begin,
|
|
|
|
std::vector<aiMesh*>::const_iterator end);
|
2008-10-24 20:37:54 +00:00
|
|
|
|
|
|
|
|
2008-11-26 13:17:39 +00:00
|
|
|
// -------------------------------------------------------------------
|
|
|
|
/** Merges two or more bones
|
|
|
|
*
|
|
|
|
* @param out Mesh to receive the output bone list
|
|
|
|
* @param flags Currently no parameters
|
|
|
|
* @param begin First mesh to be processed
|
|
|
|
* @param end Points to the mesh after the last mesh to be processed
|
|
|
|
*/
|
|
|
|
static void MergeBones(aiMesh* out,std::vector<aiMesh*>::const_iterator it,
|
|
|
|
std::vector<aiMesh*>::const_iterator end);
|
|
|
|
|
|
|
|
|
|
|
|
// -------------------------------------------------------------------
|
|
|
|
/** Builds a list of uniquely named bones in a mesh list
|
|
|
|
*
|
|
|
|
* @param asBones Receives the output list
|
|
|
|
* @param it First mesh to be processed
|
|
|
|
* @param end Last mesh to be processed
|
|
|
|
*/
|
|
|
|
static void BuildUniqueBoneList(std::list<BoneWithHash>& asBones,
|
|
|
|
std::vector<aiMesh*>::const_iterator it,
|
|
|
|
std::vector<aiMesh*>::const_iterator end);
|
|
|
|
|
2008-10-24 20:37:54 +00:00
|
|
|
// -------------------------------------------------------------------
|
|
|
|
/** Add a name prefix to all nodes in a scene.
|
|
|
|
*
|
|
|
|
* @param Current node. This function is called recursively.
|
|
|
|
* @param prefix Prefix to be added to all nodes
|
|
|
|
* @param len STring length
|
|
|
|
*/
|
|
|
|
static void AddNodePrefixes(aiNode* node, const char* prefix,
|
|
|
|
unsigned int len);
|
2008-11-26 13:17:39 +00:00
|
|
|
|
|
|
|
// -------------------------------------------------------------------
|
|
|
|
/** Add an offset to all mesh indices in a node graph
|
|
|
|
*
|
|
|
|
* @param Current node. This function is called recursively.
|
|
|
|
* @param offset Offset to be added to all mesh indices
|
|
|
|
*/
|
|
|
|
static void OffsetNodeMeshIndices (aiNode* node, unsigned int offset);
|
|
|
|
|
|
|
|
// -------------------------------------------------------------------
|
|
|
|
/** Attach a list of node graphs to well-defined nodes in a master
|
|
|
|
* graph. This is a helper for MergeScenes()
|
|
|
|
*
|
|
|
|
* @param master Master scene
|
|
|
|
* @param srcList List of source scenes along with their attachment
|
|
|
|
* points. If an attachment point is NULL (or does not exist in
|
|
|
|
* the master graph), a scene is attached to the root of the master
|
|
|
|
* graph (as an additional child node)
|
|
|
|
* @duplicates List of duplicates. If elem[n] == n the scene is not
|
|
|
|
* a duplicate. Otherwise elem[n] links scene n to its first occurence.
|
|
|
|
*/
|
|
|
|
static void AttachToGraph ( aiScene* master,
|
|
|
|
std::vector<NodeAttachmentInfo>& srcList);
|
|
|
|
|
|
|
|
static void AttachToGraph (aiNode* attach,
|
|
|
|
std::vector<NodeAttachmentInfo>& srcList);
|
|
|
|
|
|
|
|
|
|
|
|
// -------------------------------------------------------------------
|
|
|
|
/** Get a deep copy of a scene
|
|
|
|
*
|
|
|
|
* @param dest Receives a pointer to the destination scene
|
|
|
|
* @param src Source scene - remains unmodified.
|
|
|
|
*/
|
|
|
|
static void CopyScene(aiScene** dest,aiScene* source);
|
|
|
|
|
|
|
|
|
|
|
|
// -------------------------------------------------------------------
|
|
|
|
/** Get a flat copy of a scene
|
|
|
|
*
|
|
|
|
* Only the first hierarchy layer is copied. All pointer members of
|
|
|
|
* aiScene are shared by source and destination scene. If the
|
|
|
|
* pointer doesn't point to NULL when the function is called, the
|
|
|
|
* existing scene is cleared and refilled.
|
|
|
|
* @param dest Receives a pointer to the destination scene
|
|
|
|
* @param src Source scene - remains unmodified.
|
|
|
|
*/
|
|
|
|
static void CopySceneFlat(aiScene** dest,aiScene* source);
|
|
|
|
|
|
|
|
|
|
|
|
// -------------------------------------------------------------------
|
|
|
|
/** Get a deep copy of a mesh
|
|
|
|
*
|
|
|
|
* @param dest Receives a pointer to the destination mesh
|
|
|
|
* @param src Source mesh - remains unmodified.
|
|
|
|
*/
|
|
|
|
static void Copy (aiMesh** dest, const aiMesh* src);
|
|
|
|
|
|
|
|
// similar to Copy():
|
|
|
|
static void Copy (aiMaterial** dest, const aiMaterial* src);
|
|
|
|
static void Copy (aiTexture** dest, const aiTexture* src);
|
|
|
|
static void Copy (aiAnimation** dest, const aiAnimation* src);
|
|
|
|
static void Copy (aiCamera** dest, const aiCamera* src);
|
|
|
|
static void Copy (aiBone** dest, const aiBone* src);
|
|
|
|
static void Copy (aiLight** dest, const aiLight* src);
|
|
|
|
static void Copy (aiNodeAnim** dest, const aiNodeAnim* src);
|
|
|
|
|
|
|
|
// recursive, of course
|
|
|
|
static void Copy (aiNode** dest, const aiNode* src);
|
General
- Added format auto-detection to most loaders
- Simplified BaseImporter::CanRead() with some utility methods
- improved fast_atof -> no overruns anymore. Fuck you, irrlicht.
- added assimp_cmd tool to allow command line model processing. Mainly adebugging tool for internal purposes, but others might find it useful, too.
- vc8/vc9: revision number is now written to DLL version header
- mkutil: some batch scripts to simplify tagging & building of release versions
- some API cleanup
- fixing some doxygen markup (+now explicit use of @file <filename>)
- Icon for assimp_view and assimp_cmd
3DS
- Normal vectors are not anymore inverted in some cases
- Improved pivot handling
- Improved handling of x-flipped meshes
Collada
- fixed a minor bug (visual_scene element)
LWS
- WIP implementation. No animations yet, some bugs and crashes.
- Animation system remains disabled, WIP code
- many test files for LWS, but most of them test the anim support, which is, read above, currently disabled.
STL
- fixing a log warning which appears for every model
- added binary&ascii test spider, exported from truespace
MD3
- Cleaning up output tags for automatically joined player models.
IRR
- Fixing coordinate system issues.
- Instance handling improved.
- Some of the reported crashes not yet fixed.
PretransformVertices
- Numerous performance improvements.
- Added config option to preserve the hierarchy during the step.
RemoveRedundantMaterials
- Added config option to specify a list of materials which are kept in every case.
UNREAL
- Added support for the old unreal data format (*.a,*.d,*.uc)
- tested only with exports from Milkshape
- more Unreal stuff to come soon
git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@356 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
2009-03-05 22:32:13 +00:00
|
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
|
|
|
// -------------------------------------------------------------------
|
|
|
|
// Same as AddNodePrefixes, but with an additional check
|
|
|
|
static void AddNodePrefixesChecked(aiNode* node, const char* prefix,
|
|
|
|
unsigned int len,
|
|
|
|
std::vector<SceneHelper>& input,
|
|
|
|
unsigned int cur);
|
|
|
|
|
|
|
|
// -------------------------------------------------------------------
|
|
|
|
// Add node identifiers to a hashing set
|
|
|
|
static void AddNodeHashes(aiNode* node, std::set<unsigned int>& hashes);
|
|
|
|
|
|
|
|
|
|
|
|
// -------------------------------------------------------------------
|
|
|
|
// Search for duplicate names
|
|
|
|
static bool FindNameMatch(const aiString& name,
|
|
|
|
std::vector<SceneHelper>& input, unsigned int cur);
|
2008-10-22 20:06:16 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2008-12-07 20:00:58 +00:00
|
|
|
#endif // !! AI_SCENE_COMBINER_H_INC
|