2011-02-21 08:38:53 +00:00
|
|
|
/*
|
2010-06-03 17:41:33 +00:00
|
|
|
* ***** BEGIN GPL LICENSE BLOCK *****
|
|
|
|
|
*
|
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
|
* of the License, or (at your option) any later version.
|
|
|
|
|
*
|
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
|
*
|
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
|
* along with this program; if not, write to the Free Software Foundation,
|
|
|
|
|
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
|
|
|
*
|
|
|
|
|
* Contributor(s): Chingiz Dyussenov, Arystanbek Dyussenov.
|
|
|
|
|
*
|
|
|
|
|
* ***** END GPL LICENSE BLOCK *****
|
|
|
|
|
*/
|
2011-02-21 08:38:53 +00:00
|
|
|
|
|
|
|
|
/** \file collada.h
|
|
|
|
|
* \ingroup collada
|
|
|
|
|
*/
|
|
|
|
|
|
2012-02-17 18:59:41 +00:00
|
|
|
#ifndef __COLLADA_H__
|
|
|
|
|
#define __COLLADA_H__
|
Merge of the COLLADA GSoC branch into trunk.
COLLADA code is disabled by default (it has dependencies requiring manual install).
SCons and CMake builds are supported on Windows and Linux, no Mac building yet. More on building COLLADA code: http://wiki.blender.org/index.php/User:Kazanbas/Building_Collada_Branch.
The detailed command log of the merge (can be useful for educational purposes):
branch=https://svn.blender.org/svnroot/bf-blender/branches/soc-2009-chingachgook
# collada code
svn copy $branch/source/blender/collada source/blender/collada
# operator
svn merge -c 20401,20955,21077,24077,24079 $branch/source/blender/windowmanager/intern/wm_operators.c source/blender/windowmanager/intern/wm_operators.c
# menu
svn merge -c 24079 $branch/release/scripts/ui/space_info.py release/scripts/ui/space_info.py
# scons
svn merge -c 20398 $branch/source/blender/SConscript source/blender/SConscript
svn merge -c 20398,20691,20955,22726 $branch/tools/btools.py tools/btools.py
svn merge -c 20691,20955,22726 $branch/tools/Blender.py tools/Blender.py
svn merge -c 20398,20692,20955 $branch/config/linux2-config.py config/linux2-config.py
svn merge -c 22726 $branch/config/win64-vc-config.py config/win64-vc-config.py
svn merge -c 22726 $branch/config/win32-vc-config.py config/win32-vc-config.py
svn merge -c 24077 $branch/source/blender/windowmanager/SConscript source/blender/windowmanager/SConscript
# cmake
svn merge -c 23319,23905,24077,24158 $branch/CMakeLists.txt CMakeLists.txt
svn merge -c 23319 $branch/source/blender/CMakeLists.txt source/blender/CMakeLists.txt
svn merge -c 23319 $branch/source/creator/CMakeLists.txt source/creator/CMakeLists.txt
svn merge -c 23319 $branch/CMake/macros.cmake CMake/macros.cmake
svn merge -c 24077 $branch/source/blender/windowmanager/CMakeLists.txt source/blender/windowmanager/CMakeLists.txt
2009-10-30 15:35:50 +00:00
|
|
|
|
2012-06-16 23:35:53 +00:00
|
|
|
#include <stdlib.h>
|
Merge of the COLLADA GSoC branch into trunk.
COLLADA code is disabled by default (it has dependencies requiring manual install).
SCons and CMake builds are supported on Windows and Linux, no Mac building yet. More on building COLLADA code: http://wiki.blender.org/index.php/User:Kazanbas/Building_Collada_Branch.
The detailed command log of the merge (can be useful for educational purposes):
branch=https://svn.blender.org/svnroot/bf-blender/branches/soc-2009-chingachgook
# collada code
svn copy $branch/source/blender/collada source/blender/collada
# operator
svn merge -c 20401,20955,21077,24077,24079 $branch/source/blender/windowmanager/intern/wm_operators.c source/blender/windowmanager/intern/wm_operators.c
# menu
svn merge -c 24079 $branch/release/scripts/ui/space_info.py release/scripts/ui/space_info.py
# scons
svn merge -c 20398 $branch/source/blender/SConscript source/blender/SConscript
svn merge -c 20398,20691,20955,22726 $branch/tools/btools.py tools/btools.py
svn merge -c 20691,20955,22726 $branch/tools/Blender.py tools/Blender.py
svn merge -c 20398,20692,20955 $branch/config/linux2-config.py config/linux2-config.py
svn merge -c 22726 $branch/config/win64-vc-config.py config/win64-vc-config.py
svn merge -c 22726 $branch/config/win32-vc-config.py config/win32-vc-config.py
svn merge -c 24077 $branch/source/blender/windowmanager/SConscript source/blender/windowmanager/SConscript
# cmake
svn merge -c 23319,23905,24077,24158 $branch/CMakeLists.txt CMakeLists.txt
svn merge -c 23319 $branch/source/blender/CMakeLists.txt source/blender/CMakeLists.txt
svn merge -c 23319 $branch/source/creator/CMakeLists.txt source/creator/CMakeLists.txt
svn merge -c 23319 $branch/CMake/macros.cmake CMake/macros.cmake
svn merge -c 24077 $branch/source/blender/windowmanager/CMakeLists.txt source/blender/windowmanager/CMakeLists.txt
2009-10-30 15:35:50 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
|
extern "C" {
|
|
|
|
|
#endif
|
2012-06-16 23:35:53 +00:00
|
|
|
|
|
|
|
|
#include "BLI_linklist.h"
|
2013-02-15 15:36:02 +00:00
|
|
|
#include "BLI_path_util.h"
|
2012-06-16 23:35:53 +00:00
|
|
|
#include "RNA_types.h"
|
|
|
|
|
|
|
|
|
|
typedef enum BC_export_mesh_type {
|
|
|
|
|
BC_MESH_TYPE_VIEW,
|
2012-06-17 11:36:28 +00:00
|
|
|
BC_MESH_TYPE_RENDER
|
2012-06-16 23:35:53 +00:00
|
|
|
} BC_export_mesh_type;
|
|
|
|
|
|
2013-03-06 23:21:52 +00:00
|
|
|
typedef enum BC_export_transformation_type {
|
|
|
|
|
BC_TRANSFORMATION_TYPE_MATRIX,
|
2016-11-02 14:11:46 +01:00
|
|
|
BC_TRANSFORMATION_TYPE_TRANSROTLOC
|
2013-03-06 23:21:52 +00:00
|
|
|
} BC_export_transformation_type;
|
|
|
|
|
|
2017-06-24 22:09:08 +02:00
|
|
|
typedef enum BC_export_texture_type {
|
2017-06-25 22:06:04 +02:00
|
|
|
BC_TEXTURE_TYPE_MAT,
|
|
|
|
|
BC_TEXTURE_TYPE_UV
|
2017-06-24 22:09:08 +02:00
|
|
|
} BC_export_texture_type;
|
|
|
|
|
|
2012-06-16 23:35:53 +00:00
|
|
|
struct bContext;
|
|
|
|
|
struct Scene;
|
|
|
|
|
|
2012-06-16 09:16:24 +00:00
|
|
|
/*
|
|
|
|
|
* both return 1 on success, 0 on error
|
|
|
|
|
*/
|
2014-01-28 01:55:10 +11:00
|
|
|
int collada_import(struct bContext *C,
|
2013-03-15 10:48:48 +00:00
|
|
|
const char *filepath,
|
2014-11-29 13:24:26 +01:00
|
|
|
int import_units,
|
|
|
|
|
int find_chains,
|
2016-06-03 18:26:12 +02:00
|
|
|
int auto_connect,
|
2014-12-01 20:31:42 +01:00
|
|
|
int fix_orientation,
|
2017-03-23 00:07:05 +01:00
|
|
|
int min_chain_length,
|
|
|
|
|
|
|
|
|
|
int keep_bind_info);
|
2013-02-09 16:19:30 +00:00
|
|
|
|
2018-02-26 19:33:53 +11:00
|
|
|
int collada_export(struct Scene *sce,
|
2012-06-16 09:16:24 +00:00
|
|
|
const char *filepath,
|
|
|
|
|
int apply_modifiers,
|
2012-06-17 11:36:28 +00:00
|
|
|
BC_export_mesh_type export_mesh_type,
|
2012-06-16 09:16:24 +00:00
|
|
|
|
|
|
|
|
int selected,
|
|
|
|
|
int include_children,
|
|
|
|
|
int include_armatures,
|
2013-01-21 13:45:49 +00:00
|
|
|
int include_shapekeys,
|
2012-06-16 09:16:24 +00:00
|
|
|
int deform_bones_only,
|
2018-02-26 16:34:45 +01:00
|
|
|
int include_animations,
|
2018-02-24 13:11:30 +01:00
|
|
|
int sampling_rate,
|
2012-06-16 09:16:24 +00:00
|
|
|
|
2013-03-15 10:48:48 +00:00
|
|
|
int active_uv_only,
|
2017-06-24 22:09:08 +02:00
|
|
|
BC_export_texture_type export_texture_type,
|
2013-03-15 10:48:48 +00:00
|
|
|
int use_texture_copies,
|
2012-06-22 16:16:58 +00:00
|
|
|
|
2013-03-02 15:58:13 +00:00
|
|
|
int triangulate,
|
2012-06-16 09:16:24 +00:00
|
|
|
int use_object_instantiation,
|
2016-05-26 17:40:56 +02:00
|
|
|
int use_blender_profile,
|
2012-06-16 09:16:24 +00:00
|
|
|
int sort_by_name,
|
2013-03-06 23:21:52 +00:00
|
|
|
BC_export_transformation_type export_transformation_type,
|
2012-06-12 21:25:29 +00:00
|
|
|
|
2017-06-24 22:09:08 +02:00
|
|
|
int open_sim,
|
|
|
|
|
int limit_precision,
|
|
|
|
|
int keep_bind_info);
|
2012-06-12 21:25:29 +00:00
|
|
|
|
Merge of the COLLADA GSoC branch into trunk.
COLLADA code is disabled by default (it has dependencies requiring manual install).
SCons and CMake builds are supported on Windows and Linux, no Mac building yet. More on building COLLADA code: http://wiki.blender.org/index.php/User:Kazanbas/Building_Collada_Branch.
The detailed command log of the merge (can be useful for educational purposes):
branch=https://svn.blender.org/svnroot/bf-blender/branches/soc-2009-chingachgook
# collada code
svn copy $branch/source/blender/collada source/blender/collada
# operator
svn merge -c 20401,20955,21077,24077,24079 $branch/source/blender/windowmanager/intern/wm_operators.c source/blender/windowmanager/intern/wm_operators.c
# menu
svn merge -c 24079 $branch/release/scripts/ui/space_info.py release/scripts/ui/space_info.py
# scons
svn merge -c 20398 $branch/source/blender/SConscript source/blender/SConscript
svn merge -c 20398,20691,20955,22726 $branch/tools/btools.py tools/btools.py
svn merge -c 20691,20955,22726 $branch/tools/Blender.py tools/Blender.py
svn merge -c 20398,20692,20955 $branch/config/linux2-config.py config/linux2-config.py
svn merge -c 22726 $branch/config/win64-vc-config.py config/win64-vc-config.py
svn merge -c 22726 $branch/config/win32-vc-config.py config/win32-vc-config.py
svn merge -c 24077 $branch/source/blender/windowmanager/SConscript source/blender/windowmanager/SConscript
# cmake
svn merge -c 23319,23905,24077,24158 $branch/CMakeLists.txt CMakeLists.txt
svn merge -c 23319 $branch/source/blender/CMakeLists.txt source/blender/CMakeLists.txt
svn merge -c 23319 $branch/source/creator/CMakeLists.txt source/creator/CMakeLists.txt
svn merge -c 23319 $branch/CMake/macros.cmake CMake/macros.cmake
svn merge -c 24077 $branch/source/blender/windowmanager/CMakeLists.txt source/blender/windowmanager/CMakeLists.txt
2009-10-30 15:35:50 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
|
}
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#endif
|