10#include <Alembic/AbcGeom/OGeomParam.h>
22#define ENUMERATE_EXPORTED_TYPES(X) \
23 X(Alembic::AbcGeom::OBoolGeomParam, bool_params) \
24 X(Alembic::AbcGeom::OCharGeomParam, int8_params) \
25 X(Alembic::AbcGeom::OV2sGeomParam, short2_params) \
26 X(Alembic::AbcGeom::OInt32GeomParam, int32_params) \
27 X(Alembic::AbcGeom::OV2iGeomParam, int2_params) \
28 X(Alembic::AbcGeom::OFloatGeomParam, float_params) \
29 X(Alembic::AbcGeom::OV2fGeomParam, float2_params) \
30 X(Alembic::AbcGeom::OV3fGeomParam, float3_params) \
31 X(Alembic::AbcGeom::OC4fGeomParam, color_params) \
32 X(Alembic::AbcGeom::OC4cGeomParam, byte_color_params) \
33 X(Alembic::AbcGeom::OQuatfGeomParam, quat_params) \
34 X(Alembic::AbcGeom::OM44dGeomParam, float4x4_params) \
35 X(Alembic::AbcGeom::OStringGeomParam, string_params)
44#define DECLARE_MAPS(abc_type, map_name) std::map<std::string, abc_type> map_name{};
49#define ENSURE_PARAM_FUNC(ParamType, map) \
50 void ensure_param(const Alembic::Abc::OCompoundProperty &prop, \
52 const StringRefNull name, \
53 Alembic::AbcGeom::GeometryScope scope) \
56 if (!param.valid()) { \
57 param = ParamType(prop, name, false, scope, 1); \
62#undef ENSURE_PARAM_FUNC
76 const bke::AttributeIter &attr,
77 const int timesample_index,
78 const OffsetIndices<int> faces,
79 const StringRefNull object_name,
80 const size_t num_geom_samples);
#define DECLARE_MAPS(abc_type, map_name)
#define ENUMERATE_EXPORTED_TYPES(X)
#define ENSURE_PARAM_FUNC(ParamType, map)
void write_empty_samples(const size_t num_geom_samples)
void create_geom_param_for_attribute(const Alembic::Abc::OCompoundProperty &prop, AttributeParamMaps ¶m_maps, const bke::AttributeIter &attr, const int timesample_index, const OffsetIndices< int > faces, const StringRefNull object_name, const size_t num_geom_samples)