Changeset View
Changeset View
Standalone View
Standalone View
source/blender/alembic/intern/abc_customdata.h
| Show All 22 Lines | |||||
| #ifndef __ABC_CUSTOMDATA_H__ | #ifndef __ABC_CUSTOMDATA_H__ | ||||
| #define __ABC_CUSTOMDATA_H__ | #define __ABC_CUSTOMDATA_H__ | ||||
| #include <Alembic/Abc/All.h> | #include <Alembic/Abc/All.h> | ||||
| #include <Alembic/AbcGeom/All.h> | #include <Alembic/AbcGeom/All.h> | ||||
| struct CustomData; | struct CustomData; | ||||
| struct Mesh; | |||||
| struct MLoop; | struct MLoop; | ||||
| struct MLoopUV; | struct MLoopUV; | ||||
| struct MPoly; | struct MPoly; | ||||
| struct MVert; | struct MVert; | ||||
| using Alembic::Abc::ICompoundProperty; | using Alembic::Abc::ICompoundProperty; | ||||
| using Alembic::Abc::OCompoundProperty; | using Alembic::Abc::OCompoundProperty; | ||||
| Show All 16 Lines | struct CDStreamConfig { | ||||
| CustomData *loopdata; | CustomData *loopdata; | ||||
| bool pack_uvs; | bool pack_uvs; | ||||
| /* TODO(kevin): might need a better way to handle adding and/or updating | /* TODO(kevin): might need a better way to handle adding and/or updating | ||||
| * custom datas such that it updates the custom data holder and its pointers | * custom datas such that it updates the custom data holder and its pointers | ||||
| * properly. */ | * properly. */ | ||||
| void *user_data; | Mesh *mesh; | ||||
| void *(*add_customdata_cb)(void *user_data, const char *name, int data_type); | void *(*add_customdata_cb)(Mesh *mesh, const char *name, int data_type); | ||||
| float weight; | float weight; | ||||
| float time; | float time; | ||||
| Alembic::AbcGeom::index_t index; | Alembic::AbcGeom::index_t index; | ||||
| Alembic::AbcGeom::index_t ceil_index; | Alembic::AbcGeom::index_t ceil_index; | ||||
| CDStreamConfig() | CDStreamConfig() | ||||
| : mloop(NULL), | : mloop(NULL), | ||||
| totloop(0), | totloop(0), | ||||
| mpoly(NULL), | mpoly(NULL), | ||||
| totpoly(0), | totpoly(0), | ||||
| totvert(0), | totvert(0), | ||||
| pack_uvs(false), | pack_uvs(false), | ||||
| user_data(NULL), | mesh(NULL), | ||||
| add_customdata_cb(NULL), | add_customdata_cb(NULL), | ||||
| weight(0.0f), | weight(0.0f), | ||||
| time(0.0f), | time(0.0f), | ||||
| index(0), | index(0), | ||||
| ceil_index(0) | ceil_index(0) | ||||
| { | { | ||||
| } | } | ||||
| }; | }; | ||||
| Show All 18 Lines | |||||