diff options
author | Gaia Clary <gaia.clary@machinimatrix.org> | 2015-04-16 20:02:00 +0300 |
---|---|---|
committer | Gaia Clary <gaia.clary@machinimatrix.org> | 2015-04-16 20:02:26 +0300 |
commit | bbae0664a3df0ec3b3dcc199ab3a52a998bc5290 (patch) | |
tree | 352cf84873fa800290838b5f40fa76bed791dbc2 /source/blender/collada/GeometryExporter.h | |
parent | a7cae2987d078da8a3cb9a293fbcdf3b6ab43ddb (diff) |
Added Support for Custom Vertex Normals to Collada exporter
Diffstat (limited to 'source/blender/collada/GeometryExporter.h')
-rw-r--r-- | source/blender/collada/GeometryExporter.h | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/source/blender/collada/GeometryExporter.h b/source/blender/collada/GeometryExporter.h index 4d54e79d796..69d1067e6f4 100644 --- a/source/blender/collada/GeometryExporter.h +++ b/source/blender/collada/GeometryExporter.h @@ -48,6 +48,20 @@ extern Object *bc_get_highest_selected_ancestor_or_self(Object *ob); +class Normal +{ + public: + float x; + float y; + float z; + + friend bool operator< (const Normal &, const Normal &); + +}; + +bool operator< (const Normal &, const Normal &); + + // TODO: optimize UV sets by making indexed list with duplicates removed class GeometryExporter : COLLADASW::LibraryGeometries { @@ -56,10 +70,7 @@ class GeometryExporter : COLLADASW::LibraryGeometries unsigned int v1, v2, v3, v4; }; - struct Normal - { - float x, y, z; - }; + Normal n; Scene *mScene; |