Blender V5.3
blender::io::alembic Namespace Reference

Namespaces

namespace  utils

Classes

class  ABCAbstractWriter
class  ABCArchive
class  AbcCameraReader
class  ABCCameraWriter
class  ABCCurveMeshWriter
class  AbcCurveReader
class  ABCCurveWriter
class  AbcEmptyReader
class  ABCGenericMeshWriter
class  ABCHairWriter
class  ABCHierarchyIterator
class  ABCInstanceWriter
struct  AbcMeshData
class  AbcMeshReader
class  ABCMeshWriter
class  ABCMetaballWriter
class  ABCNurbsMeshWriter
class  AbcNurbsReader
class  ABCNurbsWriter
class  AbcObjectReader
class  ABCPointCloudWriter
class  AbcPointsReader
class  ABCPointsWriter
struct  AbcReaderConstructorArgs
struct  AbcReadGeometryParams
class  AbcSubDReader
class  ABCTransformWriter
struct  ABCWriterConstructorArgs
class  AlembicExportTest
class  ArchiveReader
class  AttributeParamMaps
class  CameraFCurveCreationHelper
struct  CDStreamConfig
class  CustomPropertiesExporter
class  FCurveCreationHelper
struct  FrameSampleInfo
struct  ImportSettings
struct  PreprocessedSampleData
struct  SampleInterpolationSettings
struct  TimeInfo
struct  TypeTraitConverter
struct  TypeTraitConverter< bool >
struct  TypeTraitConverter< ColorGeometry4b >
struct  TypeTraitConverter< ColorGeometry4f >
struct  TypeTraitConverter< float >
struct  TypeTraitConverter< float2 >
struct  TypeTraitConverter< float3 >
struct  TypeTraitConverter< float4x4 >
struct  TypeTraitConverter< int >
struct  TypeTraitConverter< int2 >
struct  TypeTraitConverter< int8_t >
struct  TypeTraitConverter< math::Quaternion >
struct  TypeTraitConverter< MStringProperty >
struct  TypeTraitConverter< short2 >
struct  UVSample
class  VisibilityFCurveCreationHelper

Typedefs

using index_time_pair_t = std::pair<Alembic::AbcCoreAbstract::index_t, Alembic::AbcGeom::chrono_t>

Enumerations

enum  AbcAxisSwapMode { ABC_ZUP_FROM_YUP = 1 , ABC_YUP_FROM_ZUP = 2 }
enum  AbcMatrixMode { ABC_MATRIX_WORLD = 1 , ABC_MATRIX_LOCAL = 2 }
enum  AbcUvScope { ABC_UV_SCOPE_NONE , ABC_UV_SCOPE_LOOP , ABC_UV_SCOPE_VERTEX }
enum class  AbcFaceVaryingInterpolateBoundary : int { ALL = 0 , EDGE_AND_CORNERS = 1 , NONE = 2 , BOUNDARIES = 3 }
enum class  AbcInterpolateBoundary : int { NONE = 0 , EDGE_AND_CORNERS = 1 , EDGE_ONLY = 2 }

Functions

static MetaData create_abc_metadata (const Main *bmain, double scene_fps)
static OArchive * create_archive (std::ofstream *abc_ostream, const std::string &filepath, MetaData &abc_metadata)
static void get_shutter_samples (double scene_fps, const AlembicExportParams &params, int nr_of_samples, bool time_relative, std::vector< double > &r_samples)
static TimeSamplingPtr create_time_sampling (double scene_fps, const AlembicExportParams &params, int nr_of_samples)
static void get_frames (double scene_fps, const AlembicExportParams &params, uint nr_of_samples, std::set< double > &r_frames)
void get_positions (const Span< float3 > positions, std::vector< Imath::V3f > &points)
bool get_velocities (const bke::AttributeAccessor &attributes, std::vector< Imath::V3f > &velocities)
static bool build_depsgraph (ExportJobData *job)
static void report_job_duration (const ExportJobData *data)
static void export_startjob (void *customdata, wmJobWorkerStatus *worker_status)
static void export_endjob (void *customdata)
static GeometryScope get_scope_for_attribute_domain (bke::AttrDomain domain)
template<typename GeomParamType>
static void write_empty_samples (GeomParamType &param, const size_t num_geom_samples)
template<typename BlenderDataType>
static void create_geom_param_for_attribute (const Alembic::Abc::OCompoundProperty &prop, AttributeParamMaps &param_maps, const VArray< BlenderDataType > &buffer, const StringRefNull name, const StringRefNull valid_name, const GeometryScope scope, const int timesample_index, const OffsetIndices< int > faces, const StringRefNull object_name, const size_t num_geom_samples)
void create_geom_param_for_attribute (const Alembic::Abc::OCompoundProperty &prop, AttributeParamMaps &param_maps, const bke::AttributeIter &attr, const int timesample_index, const OffsetIndices< int > faces, const StringRefNull object_name, const size_t num_geom_samples)
static Imath::V3f to_yup_V3f (float3 v)
static bool is_excluded_attr (StringRefNull name)
static void get_topology (Mesh *mesh, std::vector< int32_t > &face_verts, std::vector< int32_t > &loop_counts)
static void get_edge_creases (Mesh *mesh, std::vector< int32_t > &indices, std::vector< int32_t > &lengths, std::vector< float > &sharpnesses)
static void get_vert_creases (Mesh *mesh, std::vector< int32_t > &indices, std::vector< float > &sharpnesses)
static void get_loop_normals (const Mesh *mesh, std::vector< Imath::V3f > &normals)
static const SubsurfModifierData * get_last_subdiv_modifier (eEvaluationMode eval_mode, Object *obj)
static void write_empty_samples (OFaceSet &face_set, const size_t num_geom_samples)
static void get_knots (std::vector< float > &knots, const int num_knots, float *nu_knots)
void create_swapped_rotation_matrix (float rot_x_mat[3][3], float rot_y_mat[3][3], float rot_z_mat[3][3], const float euler[3], AbcAxisSwapMode mode)
void copy_m44_axis_swap (float dst_mat[4][4], float src_mat[4][4], AbcAxisSwapMode mode)
void create_transform_matrix (Object *obj, float r_yup_mat[4][4], AbcMatrixMode mode, Object *proxy_from)
BLI_INLINE void copy_zup_from_yup (float zup[3], const float yup[3])
BLI_INLINE void copy_zup_from_yup (short zup[3], const short yup[3])
BLI_INLINE void copy_yup_from_zup (float yup[3], const float zup[3])
BLI_INLINE void copy_yup_from_zup (short yup[3], const short zup[3])
static void get_uvs (const CDStreamConfig &config, std::vector< Imath::V2f > &uvs, std::vector< uint32_t > &uvidx, const Span< float2 > uv_map_array)
const char * get_uv_sample (UVSample &sample, const CDStreamConfig &config, const Mesh &mesh)
static void write_uv (const OCompoundProperty &prop, CDStreamConfig &config, const Span< float2 > data, const std::string &uv_map_name)
void write_generated_coordinates (const OCompoundProperty &prop, CDStreamConfig &config)
void write_uv_maps (const OCompoundProperty &prop, CDStreamConfig &config, const Mesh &mesh)
static void read_uvs (const CDStreamConfig &config, MutableSpan< float2 > uv_map, const AbcUvScope uv_scope, const Alembic::AbcGeom::V2fArraySamplePtr &uvs, const UInt32ArraySamplePtr &indices)
static int64_t mcols_out_of_bounds_check (const int64_t color_index, const int64_t array_size, const std::string &iobject_full_name, const PropertyHeader &prop_header, bool &r_is_out_of_bounds, bool &r_bounds_warning_given)
static void read_custom_data_mcols (const std::string &iobject_full_name, const ICompoundProperty &arbGeomParams, const PropertyHeader &prop_header, const CDStreamConfig &config, const Alembic::Abc::ISampleSelector &iss)
static void read_custom_data_uvs (const ICompoundProperty &prop, const PropertyHeader &prop_header, const CDStreamConfig &config, const Alembic::Abc::ISampleSelector &iss)
void read_velocity (const V3fArraySamplePtr &velocities, const CDStreamConfig &config, const float velocity_scale)
void read_generated_coordinates (const ICompoundProperty &prop, const CDStreamConfig &config, const Alembic::Abc::ISampleSelector &iss)
void read_custom_data (const std::string &iobject_full_name, const ICompoundProperty &prop, const CDStreamConfig &config, const Alembic::Abc::ISampleSelector &iss)
AbcUvScope get_uv_scope (const Alembic::AbcGeom::GeometryScope scope, const CDStreamConfig &config, const Alembic::AbcGeom::UInt32ArraySamplePtr &indices)
static std::string get_string_property (const ICompoundProperty &prop, const StringRefNull name, const Alembic::AbcGeom::ISampleSelector &sample_sel)
void read_active_and_default_color_attributes (Mesh &mesh, const ICompoundProperty &user_props, const Alembic::AbcGeom::ISampleSelector &sample_sel)
static FCurve * create_fcurve (animrig::Channelbag &channelbag, const animrig::FCurveDescriptor &fcurve_descriptor, const int sample_count)
void set_fcurve_sample (FCurve *fcu, int64_t sample_index, const float frame, const float value)
void create_keyframes (Main *bmain, Scene *scene, Span< std::unique_ptr< FCurveCreationHelper > > helpers, const TimeInfo time_info)
static IArchive open_archive (const std::string &filename, const std::vector< std::istream * > &input_streams)
static void read_camera_sample (Camera *bcam, const ICamera::schema_type &schema, const ISampleSelector &sample_sel)
static IndexRange get_sane_range (IndexRange range, size_t alembic_size)
template<>
bool has_animations (Alembic::AbcGeom::ICurvesSchema &schema, ImportSettings *settings)
static int16_t get_curve_resolution (const ICurvesSchema &schema, const Alembic::Abc::ISampleSelector &sample_sel)
static int16_t get_curve_order (const Alembic::AbcGeom::CurveType abc_curve_type, const UcharArraySamplePtr orders, const size_t curve_index)
static int8_t get_knot_mode (const Alembic::AbcGeom::CurveType abc_curve_type)
static int get_curve_overlap (const P3fArraySamplePtr positions, const int idx, const int num_verts, const int16_t order)
static CurveType get_curve_type (const Alembic::AbcGeom::BasisType basis)
static int bezier_point_count (int alembic_count, bool is_cyclic)
static float3 to_zup_float3 (Imath::V3f v)
static bool curves_topology_changed (const bke::CurvesGeometry &curves, Span< int > preprocessed_offsets)
template<typename SampleType>
static bool samples_have_same_topology (const SampleType &sample, const SampleType &ceil_sample)
static std::optional< PreprocessedSampleData > preprocess_sample (StringRefNull iobject_name, const AbcReadGeometryParams &read_params, const ICurvesSchema &schema, const ISampleSelector sample_sel)
BLI_INLINE float3 interpolate_to_zup (const Span< Imath::V3f > &floor_positions, const Span< Imath::V3f > &ceil_positions, int i, float weight)
static void add_bezier_control_point (int cp, int offset, const Span< Imath::V3f > floor_positions, const Span< Imath::V3f > ceil_positions, MutableSpan< float3 > positions, MutableSpan< float3 > handles_left, MutableSpan< float3 > handles_right, float weight)
static void read_mverts_interp (float3 *vert_positions, const P3fArraySamplePtr &positions, const P3fArraySamplePtr &ceil_positions, const double weight)
static void read_mverts (CDStreamConfig &config, const AbcMeshData &mesh_data)
void read_mverts (Mesh &mesh, const P3fArraySamplePtr positions, const N3fArraySamplePtr normals)
static void config_reload_mesh (CDStreamConfig &config)
static CDStreamConfig get_config (Mesh *mesh)
static void read_mpolys (CDStreamConfig &config, const AbcMeshData &mesh_data)
static void process_no_normals (CDStreamConfig &)
static void process_loop_normals (CDStreamConfig &config, const N3fArraySamplePtr loop_normals_ptr)
static void process_vertex_normals (CDStreamConfig &config, const N3fArraySamplePtr vertex_normals_ptr)
static void process_normals (CDStreamConfig &config, const IN3fGeomParam &normals, const ISampleSelector &selector)
BLI_INLINE void read_uvs_params (CDStreamConfig &config, const IV2fGeomParam &uv, const ISampleSelector &selector)
template<typename SampleType>
static bool samples_have_same_topology (const SampleType &sample, const SampleType &ceil_sample)
static bool topology_changed (const AbcMeshData &abc_mesh_data, const Mesh *existing_mesh, const bool is_reading_a_file_sequence)
static Mesh * read_mesh_sample (const AbcMeshData &abc_mesh_data, const ISampleSelector &selector, const AbcReadGeometryParams &read_params, Mesh *existing_mesh, const char **r_err_str, const bool is_reading_a_file_sequence)
static AbcMeshData extract_mesh_data (const IObject &iobject, const IPolyMeshSchema &schema, const ISampleSelector &selector, const AbcReadGeometryParams &params, const bool for_topology_check)
template<class typedGeomParam>
bool is_valid_animated (const ICompoundProperty arbGeomParams, const PropertyHeader &prop_header)
static bool has_animated_geom_params (const ICompoundProperty arbGeomParams)
static Vector< std::string > get_face_set_names (const IPolyMeshSchema &schema)
template<>
bool has_animations (Alembic::AbcGeom::IPolyMeshSchema &schema, ImportSettings *settings)
template<>
bool has_animations (Alembic::AbcGeom::ISubDSchema &schema, ImportSettings *settings)
static AbcMeshData extract_mesh_data (const IObject &iobject, const ISubDSchema &schema, const ISampleSelector &selector, const AbcReadGeometryParams &params, const bool for_topology_check)
static void read_vertex_creases (Mesh *mesh, const Int32ArraySamplePtr &indices, const FloatArraySamplePtr &sharpnesses, const ImportSettings *settings)
static void read_edge_creases (Mesh *mesh, const Int32ArraySamplePtr &indices, const FloatArraySamplePtr &sharpnesses, const ImportSettings *settings)
void read_mverts (Mesh &mesh, const Alembic::AbcGeom::P3fArraySamplePtr positions, const Alembic::AbcGeom::N3fArraySamplePtr normals)
static bool set_knots (const FloatArraySamplePtr &knots, float *&nu_knots)
AbcReaderConstructorArgs create_reader_constructor_args (const IObject &object, ImportSettings &settings)
static Imath::M44d blend_matrices (const Imath::M44d &m0, const Imath::M44d &m1, const double weight)
Imath::M44d get_matrix (const IXformSchema &schema, const chrono_t time)
template<typename Schema>
static bool has_animations (Schema &schema, ImportSettings *settings)
AbcReaderConstructorArgs create_reader_constructor_args (const Alembic::Abc::IObject &object, ImportSettings &settings)
Imath::M44d get_matrix (const Alembic::AbcGeom::IXformSchema &schema, chrono_t time)
template<>
bool has_animations (Alembic::AbcGeom::IPointsSchema &schema, ImportSettings *settings)
static void read_points (const P3fArraySamplePtr positions, MutableSpan< float3 > r_points)
static void read_points_sample (const IPointsSchema &schema, const ISampleSelector &selector, MutableSpan< float3 > r_points)
template<typename TOut, typename TIn>
static TOut convert_abc_value (const TIn &in)
template<>
float3 convert_abc_value (const V3f &in)
template<>
ColorGeometry4f convert_abc_value (const C3f &in)
template<>
float2 convert_abc_value (const V2f &in)
template<typename TArrayProperty, typename TWriteValue>
static void read_typed_property_sample (const ICompoundProperty &parent, const ISampleSelector &selector, const std::string &name, bke::MutableAttributeAccessor &attribute_accessor)
static void read_point_arb_geom_params (const IPointsSchema &schema, const ISampleSelector &selector, bke::MutableAttributeAccessor &attribute_accessor)
bool is_reserved_attribute_name (const StringRefNull name)
std::string get_valid_abc_name (const char *name)
Imath::M44d convert_matrix_datatype (const float mat[4][4])
void convert_matrix_datatype (const Imath::M44d &xform, float r_mat[4][4])
void split (const std::string &s, const char delim, std::vector< std::string > &tokens)
bool has_property (const Alembic::Abc::ICompoundProperty &prop, const std::string &name)
V3fArraySamplePtr get_velocity_prop (const Alembic::Abc::ICompoundProperty &schema, const Alembic::AbcGeom::ISampleSelector &selector, const std::string &name)
std::optional< SampleInterpolationSettings > get_sample_interpolation_settings (const Alembic::AbcGeom::ISampleSelector &selector, const Alembic::AbcCoreAbstract::TimeSamplingPtr &time_sampling, size_t samples_number)
AbcObjectReader * create_reader (const AbcReaderConstructorArgs &args)
template<class TContainer>
bool begins_with (const TContainer &input, const TContainer &match)
 TEST_F (AlembicExportTest, TimeSamplesFullShutterUniform)
 TEST_F (AlembicExportTest, TimeSamplesFullShutterDifferent)
 TEST_F (AlembicExportTest, TimeSamples180degShutter)
 TEST (abc_matrix, CreateRotationMatrixY_YfromZ)
 TEST (abc_matrix, CreateRotationMatrixZ_YfromZ)
 TEST (abc_matrix, CreateRotationMatrixXYZ_YfromZ)
 TEST (abc_matrix, CreateRotationMatrixXYZ_ZfromY)
 TEST (abc_matrix, CopyM44AxisSwap_YfromZ)
 TEST (abc_matrix, CopyM44AxisSwapWithScale_YfromZ)
 TEST (abc_matrix, CopyM44AxisSwap_ZfromY)
 TEST (abc_matrix, CopyM44AxisSwapWithScale_ZfromY)
 TEST (abc_matrix, CopyM44AxisSwapWithScale_gimbal_ZfromY)

Variables

static CLG_LogRef LOG = {"io.alembic"}
static CLG_LogRef LOG = {"io.alembic"}
static CLG_LogRef LOG = {"io.alembic"}
static CLG_LogRef LOG = {"io.alembic"}
static CLG_LogRef LOG = {"io.alembic"}
static const std::string ABC_CURVE_RESOLUTION_U_PROPNAME = "blender:resolution"
static const std::string ABC_ACTIVE_COLOR_ATTRIBUTE_PROPNAME
static const std::string ABC_DEFAULT_COLOR_ATTRIBUTE_PROPNAME
static const std::string propNameOriginalCoordinates = "Pref"

Typedef Documentation

◆ index_time_pair_t

using blender::io::alembic::index_time_pair_t = std::pair<Alembic::AbcCoreAbstract::index_t, Alembic::AbcGeom::chrono_t>

Definition at line 127 of file abc_util.cc.

Enumeration Type Documentation

◆ AbcAxisSwapMode

Enumerator
ABC_ZUP_FROM_YUP 
ABC_YUP_FROM_ZUP 

Definition at line 62 of file abc_axis_conversion.h.

◆ AbcFaceVaryingInterpolateBoundary

Enumerator
ALL 
EDGE_AND_CORNERS 
NONE 
BOUNDARIES 

Definition at line 108 of file abc_util.h.

◆ AbcInterpolateBoundary

Enumerator
NONE 
EDGE_AND_CORNERS 
EDGE_ONLY 

Definition at line 118 of file abc_util.h.

◆ AbcMatrixMode

Enumerator
ABC_MATRIX_WORLD 
ABC_MATRIX_LOCAL 

Definition at line 83 of file abc_axis_conversion.h.

◆ AbcUvScope

Enumerator
ABC_UV_SCOPE_NONE 
ABC_UV_SCOPE_LOOP 
ABC_UV_SCOPE_VERTEX 

Definition at line 45 of file abc_customdata.h.

Function Documentation

◆ add_bezier_control_point()

void blender::io::alembic::add_bezier_control_point ( int cp,
int offset,
const Span< Imath::V3f > floor_positions,
const Span< Imath::V3f > ceil_positions,
MutableSpan< float3 > positions,
MutableSpan< float3 > handles_left,
MutableSpan< float3 > handles_right,
float weight )
static

◆ begins_with()

template<class TContainer>
bool blender::io::alembic::begins_with ( const TContainer & input,
const TContainer & match )

Definition at line 62 of file abc_util.h.

References begins_with().

Referenced by begins_with().

◆ bezier_point_count()

int blender::io::alembic::bezier_point_count ( int alembic_count,
bool is_cyclic )
inlinestatic

Definition at line 177 of file abc_reader_curves.cc.

References bezier_point_count().

Referenced by bezier_point_count(), and preprocess_sample().

◆ blend_matrices()

Imath::M44d blender::io::alembic::blend_matrices ( const Imath::M44d & m0,
const Imath::M44d & m1,
const double weight )
static

◆ build_depsgraph()

◆ config_reload_mesh()

◆ convert_abc_value() [1/4]

template<>
ColorGeometry4f blender::io::alembic::convert_abc_value ( const C3f & in)

◆ convert_abc_value() [2/4]

template<typename TOut, typename TIn>
TOut blender::io::alembic::convert_abc_value ( const TIn & in)
static

◆ convert_abc_value() [3/4]

template<>
float2 blender::io::alembic::convert_abc_value ( const V2f & in)

◆ convert_abc_value() [4/4]

template<>
float3 blender::io::alembic::convert_abc_value ( const V3f & in)

◆ convert_matrix_datatype() [1/2]

◆ convert_matrix_datatype() [2/2]

void blender::io::alembic::convert_matrix_datatype ( const Imath::M44d & xform,
float r_mat[4][4] )

Definition at line 59 of file abc_util.cc.

References convert_matrix_datatype(), and float.

◆ copy_m44_axis_swap()

◆ copy_yup_from_zup() [1/2]

◆ copy_yup_from_zup() [2/2]

BLI_INLINE void blender::io::alembic::copy_yup_from_zup ( short yup[3],
const short zup[3] )

Definition at line 51 of file abc_axis_conversion.h.

References BLI_INLINE, and copy_yup_from_zup().

◆ copy_zup_from_yup() [1/2]

◆ copy_zup_from_yup() [2/2]

BLI_INLINE void blender::io::alembic::copy_zup_from_yup ( short zup[3],
const short yup[3] )

Definition at line 33 of file abc_axis_conversion.h.

References BLI_INLINE, and copy_zup_from_yup().

◆ create_abc_metadata()

MetaData blender::io::alembic::create_abc_metadata ( const Main * bmain,
double scene_fps )
static

◆ create_archive()

OArchive * blender::io::alembic::create_archive ( std::ofstream * abc_ostream,
const std::string & filepath,
MetaData & abc_metadata )
static

◆ create_fcurve()

FCurve * blender::io::alembic::create_fcurve ( animrig::Channelbag & channelbag,
const animrig::FCurveDescriptor & fcurve_descriptor,
const int sample_count )
static

◆ create_geom_param_for_attribute() [1/2]

void blender::io::alembic::create_geom_param_for_attribute ( const Alembic::Abc::OCompoundProperty & prop,
AttributeParamMaps & param_maps,
const bke::AttributeIter & attr,
const int timesample_index,
const OffsetIndices< int > faces,
const StringRefNull object_name,
const size_t num_geom_samples )

◆ create_geom_param_for_attribute() [2/2]

template<typename BlenderDataType>
void blender::io::alembic::create_geom_param_for_attribute ( const Alembic::Abc::OCompoundProperty & prop,
AttributeParamMaps & param_maps,
const VArray< BlenderDataType > & buffer,
const StringRefNull name,
const StringRefNull valid_name,
const GeometryScope scope,
const int timesample_index,
const OffsetIndices< int > faces,
const StringRefNull object_name,
const size_t num_geom_samples )
static

◆ create_keyframes()

◆ create_reader()

◆ create_reader_constructor_args() [1/2]

AbcReaderConstructorArgs blender::io::alembic::create_reader_constructor_args ( const Alembic::Abc::IObject & object,
ImportSettings & settings )

◆ create_reader_constructor_args() [2/2]

AbcReaderConstructorArgs blender::io::alembic::create_reader_constructor_args ( const IObject & object,
ImportSettings & settings )

◆ create_swapped_rotation_matrix()

void blender::io::alembic::create_swapped_rotation_matrix ( float rot_x_mat[3][3],
float rot_y_mat[3][3],
float rot_z_mat[3][3],
const float euler[3],
AbcAxisSwapMode mode )

Create a rotation matrix for each axis from euler angles. Euler angles are swapped to change coordinate system.

Definition at line 22 of file abc_axis_conversion.cc.

References ABC_YUP_FROM_ZUP, ABC_ZUP_FROM_YUP, blender::BLI_assert(), cos, create_swapped_rotation_matrix(), sin, and blender::unit_m3().

Referenced by copy_m44_axis_swap(), create_swapped_rotation_matrix(), TEST(), TEST(), TEST(), and TEST().

◆ create_time_sampling()

TimeSamplingPtr blender::io::alembic::create_time_sampling ( double scene_fps,
const AlembicExportParams & params,
int nr_of_samples )
static

◆ create_transform_matrix()

void blender::io::alembic::create_transform_matrix ( Object * obj,
float r_yup_mat[4][4],
AbcMatrixMode mode,
Object * proxy_from )

Recompute transform matrix of object in new coordinate system (from Z-Up to Y-Up).

Definition at line 132 of file abc_axis_conversion.cc.

References ABC_MATRIX_LOCAL, ABC_YUP_FROM_ZUP, copy_m44_axis_swap(), blender::copy_m4_m4(), create_transform_matrix(), blender::invert_m4_m4(), and blender::mul_m4_m4m4().

Referenced by create_transform_matrix().

◆ curves_topology_changed()

bool blender::io::alembic::curves_topology_changed ( const bke::CurvesGeometry & curves,
Span< int > preprocessed_offsets )
static

◆ export_endjob()

void blender::io::alembic::export_endjob ( void * customdata)
static

◆ export_startjob()

◆ extract_mesh_data() [1/2]

◆ extract_mesh_data() [2/2]

◆ get_config()

CDStreamConfig blender::io::alembic::get_config ( Mesh * mesh)
static

◆ get_curve_order()

int16_t blender::io::alembic::get_curve_order ( const Alembic::AbcGeom::CurveType abc_curve_type,
const UcharArraySamplePtr orders,
const size_t curve_index )
static

Definition at line 97 of file abc_reader_curves.cc.

References ATTR_FALLTHROUGH, and get_curve_order().

Referenced by get_curve_order(), and preprocess_sample().

◆ get_curve_overlap()

int blender::io::alembic::get_curve_overlap ( const P3fArraySamplePtr positions,
const int idx,
const int num_verts,
const int16_t order )
static

Definition at line 124 of file abc_reader_curves.cc.

References get_curve_overlap().

Referenced by get_curve_overlap(), and preprocess_sample().

◆ get_curve_resolution()

int16_t blender::io::alembic::get_curve_resolution ( const ICurvesSchema & schema,
const Alembic::Abc::ISampleSelector & sample_sel )
static

◆ get_curve_type()

CurveType blender::io::alembic::get_curve_type ( const Alembic::AbcGeom::BasisType basis)
static

◆ get_edge_creases()

void blender::io::alembic::get_edge_creases ( Mesh * mesh,
std::vector< int32_t > & indices,
std::vector< int32_t > & lengths,
std::vector< float > & sharpnesses )
static

◆ get_face_set_names()

◆ get_frames()

void blender::io::alembic::get_frames ( double scene_fps,
const AlembicExportParams & params,
uint nr_of_samples,
std::set< double > & r_frames )
static

◆ get_knot_mode()

int8_t blender::io::alembic::get_knot_mode ( const Alembic::AbcGeom::CurveType abc_curve_type)
static

◆ get_knots()

void blender::io::alembic::get_knots ( std::vector< float > & knots,
const int num_knots,
float * nu_knots )
static

Definition at line 94 of file abc_writer_nurbs.cc.

References get_knots().

Referenced by blender::io::alembic::ABCNurbsWriter::do_write(), and get_knots().

◆ get_last_subdiv_modifier()

◆ get_loop_normals()

void blender::io::alembic::get_loop_normals ( const Mesh * mesh,
std::vector< Imath::V3f > & normals )
static

◆ get_matrix() [1/2]

Imath::M44d blender::io::alembic::get_matrix ( const Alembic::AbcGeom::IXformSchema & schema,
chrono_t time )

References get_matrix().

◆ get_matrix() [2/2]

Imath::M44d blender::io::alembic::get_matrix ( const IXformSchema & schema,
const chrono_t time )

◆ get_positions()

void blender::io::alembic::get_positions ( const Span< float3 > positions,
std::vector< Imath::V3f > & points )

◆ get_sample_interpolation_settings()

std::optional< SampleInterpolationSettings > blender::io::alembic::get_sample_interpolation_settings ( const Alembic::AbcGeom::ISampleSelector & selector,
const Alembic::AbcCoreAbstract::TimeSamplingPtr & time_sampling,
size_t samples_number )

Check whether the requested time from the selector falls between two sampling time from the time_sampling. If so, returns a SampleInterpolationSettings with the required data to interpolate. If not, returns nothing and we can assume that the requested time falls on a specific sampling time of time_sampling and no interpolation is necessary.

Definition at line 129 of file abc_util.cc.

References fabs(), and get_sample_interpolation_settings().

Referenced by extract_mesh_data(), extract_mesh_data(), get_matrix(), get_sample_interpolation_settings(), and preprocess_sample().

◆ get_sane_range()

IndexRange blender::io::alembic::get_sane_range ( IndexRange range,
size_t alembic_size )
static

◆ get_scope_for_attribute_domain()

◆ get_shutter_samples()

void blender::io::alembic::get_shutter_samples ( double scene_fps,
const AlembicExportParams & params,
int nr_of_samples,
bool time_relative,
std::vector< double > & r_samples )
static

◆ get_string_property()

std::string blender::io::alembic::get_string_property ( const ICompoundProperty & prop,
const StringRefNull name,
const Alembic::AbcGeom::ISampleSelector & sample_sel )
static

◆ get_topology()

void blender::io::alembic::get_topology ( Mesh * mesh,
std::vector< int32_t > & face_verts,
std::vector< int32_t > & loop_counts )
static

◆ get_uv_sample()

const char * blender::io::alembic::get_uv_sample ( UVSample & sample,
const CDStreamConfig & config,
const Mesh & mesh )

◆ get_uv_scope()

AbcUvScope blender::io::alembic::get_uv_scope ( const Alembic::AbcGeom::GeometryScope scope,
const CDStreamConfig & config,
const Alembic::AbcGeom::UInt32ArraySamplePtr & indices )

UVs can be defined per-loop (one value per vertex per face), or per-vertex (one value per vertex). The first case is the most common, as this is the standard way of storing this data given that some vertices might be on UV seams and have multiple possible UV coordinates; the second case can happen when the mesh is split according to the UV islands, in which case storing a single UV value per vertex allows to de-duplicate data and thus to reduce the file size since vertices are guaranteed to only have a single UV coordinate.

Definition at line 540 of file abc_customdata.cc.

References ABC_UV_SCOPE_LOOP, ABC_UV_SCOPE_NONE, ABC_UV_SCOPE_VERTEX, ELEM, get_uv_scope(), blender::io::alembic::CDStreamConfig::totloop, and blender::io::alembic::CDStreamConfig::totvert.

Referenced by get_uv_scope(), read_custom_data_uvs(), and read_uvs_params().

◆ get_uvs()

◆ get_valid_abc_name()

◆ get_velocities()

◆ get_velocity_prop()

V3fArraySamplePtr blender::io::alembic::get_velocity_prop ( const Alembic::Abc::ICompoundProperty & schema,
const Alembic::AbcGeom::ISampleSelector & selector,
const std::string & name )

◆ get_vert_creases()

void blender::io::alembic::get_vert_creases ( Mesh * mesh,
std::vector< int32_t > & indices,
std::vector< float > & sharpnesses )
static

◆ has_animated_geom_params()

bool blender::io::alembic::has_animated_geom_params ( const ICompoundProperty arbGeomParams)
static

◆ has_animations() [1/5]

◆ has_animations() [2/5]

template<>
bool blender::io::alembic::has_animations ( Alembic::AbcGeom::IPointsSchema & schema,
ImportSettings * settings )

◆ has_animations() [3/5]

template<>
bool blender::io::alembic::has_animations ( Alembic::AbcGeom::IPolyMeshSchema & schema,
ImportSettings * settings )

◆ has_animations() [4/5]

template<>
bool blender::io::alembic::has_animations ( Alembic::AbcGeom::ISubDSchema & schema,
ImportSettings * settings )

◆ has_animations() [5/5]

template<typename Schema>
bool blender::io::alembic::has_animations ( Schema & schema,
ImportSettings * settings )
static

◆ has_property()

bool blender::io::alembic::has_property ( const Alembic::Abc::ICompoundProperty & prop,
const std::string & name )

◆ interpolate_to_zup()

BLI_INLINE float3 blender::io::alembic::interpolate_to_zup ( const Span< Imath::V3f > & floor_positions,
const Span< Imath::V3f > & ceil_positions,
int i,
float weight )

◆ is_excluded_attr()

bool blender::io::alembic::is_excluded_attr ( StringRefNull name)
static

◆ is_reserved_attribute_name()

bool blender::io::alembic::is_reserved_attribute_name ( const StringRefNull name)

◆ is_valid_animated()

template<class typedGeomParam>
bool blender::io::alembic::is_valid_animated ( const ICompoundProperty arbGeomParams,
const PropertyHeader & prop_header )

Definition at line 699 of file abc_reader_mesh.cc.

References is_valid_animated().

Referenced by has_animated_geom_params(), and is_valid_animated().

◆ mcols_out_of_bounds_check()

int64_t blender::io::alembic::mcols_out_of_bounds_check ( const int64_t color_index,
const int64_t array_size,
const std::string & iobject_full_name,
const PropertyHeader & prop_header,
bool & r_is_out_of_bounds,
bool & r_bounds_warning_given )
static

◆ open_archive()

IArchive blender::io::alembic::open_archive ( const std::string & filename,
const std::vector< std::istream * > & input_streams )
static

Definition at line 39 of file abc_reader_archive.cc.

References blender::e, blender::gpu::shader::parser::filename(), and open_archive().

Referenced by open_archive().

◆ preprocess_sample()

◆ process_loop_normals()

void blender::io::alembic::process_loop_normals ( CDStreamConfig & config,
const N3fArraySamplePtr loop_normals_ptr )
static

◆ process_no_normals()

void blender::io::alembic::process_no_normals ( CDStreamConfig & )
static

◆ process_normals()

void blender::io::alembic::process_normals ( CDStreamConfig & config,
const IN3fGeomParam & normals,
const ISampleSelector & selector )
static

◆ process_vertex_normals()

void blender::io::alembic::process_vertex_normals ( CDStreamConfig & config,
const N3fArraySamplePtr vertex_normals_ptr )
static

◆ read_active_and_default_color_attributes()

void blender::io::alembic::read_active_and_default_color_attributes ( Mesh & mesh,
const ICompoundProperty & user_props,
const Alembic::AbcGeom::ISampleSelector & sample_sel )

◆ read_camera_sample()

void blender::io::alembic::read_camera_sample ( Camera * bcam,
const ICamera::schema_type & schema,
const ISampleSelector & sample_sel )
static

◆ read_custom_data()

void blender::io::alembic::read_custom_data ( const std::string & iobject_full_name,
const ICompoundProperty & prop,
const CDStreamConfig & config,
const Alembic::Abc::ISampleSelector & iss )

◆ read_custom_data_mcols()

◆ read_custom_data_uvs()

void blender::io::alembic::read_custom_data_uvs ( const ICompoundProperty & prop,
const PropertyHeader & prop_header,
const CDStreamConfig & config,
const Alembic::Abc::ISampleSelector & iss )
static

◆ read_edge_creases()

◆ read_generated_coordinates()

void blender::io::alembic::read_generated_coordinates ( const ICompoundProperty & prop,
const CDStreamConfig & config,
const Alembic::Abc::ISampleSelector & iss )

◆ read_mesh_sample()

Mesh * blender::io::alembic::read_mesh_sample ( const AbcMeshData & abc_mesh_data,
const ISampleSelector & selector,
const AbcReadGeometryParams & read_params,
Mesh * existing_mesh,
const char ** r_err_str,
const bool is_reading_a_file_sequence )
static

◆ read_mpolys()

◆ read_mverts() [1/3]

◆ read_mverts() [2/3]

void blender::io::alembic::read_mverts ( Mesh & mesh,
const Alembic::AbcGeom::P3fArraySamplePtr positions,
const Alembic::AbcGeom::N3fArraySamplePtr normals )

References read_mverts().

◆ read_mverts() [3/3]

void blender::io::alembic::read_mverts ( Mesh & mesh,
const P3fArraySamplePtr positions,
const N3fArraySamplePtr normals )

◆ read_mverts_interp()

void blender::io::alembic::read_mverts_interp ( float3 * vert_positions,
const P3fArraySamplePtr & positions,
const P3fArraySamplePtr & ceil_positions,
const double weight )
static

◆ read_point_arb_geom_params()

void blender::io::alembic::read_point_arb_geom_params ( const IPointsSchema & schema,
const ISampleSelector & selector,
bke::MutableAttributeAccessor & attribute_accessor )
static

◆ read_points()

void blender::io::alembic::read_points ( const P3fArraySamplePtr positions,
MutableSpan< float3 > r_points )
static

Definition at line 113 of file abc_reader_points.cc.

References copy_zup_from_yup(), and read_points().

Referenced by read_points(), and read_points_sample().

◆ read_points_sample()

void blender::io::alembic::read_points_sample ( const IPointsSchema & schema,
const ISampleSelector & selector,
MutableSpan< float3 > r_points )
static

◆ read_typed_property_sample()

template<typename TArrayProperty, typename TWriteValue>
void blender::io::alembic::read_typed_property_sample ( const ICompoundProperty & parent,
const ISampleSelector & selector,
const std::string & name,
bke::MutableAttributeAccessor & attribute_accessor )
static

◆ read_uvs()

void blender::io::alembic::read_uvs ( const CDStreamConfig & config,
MutableSpan< float2 > uv_map,
const AbcUvScope uv_scope,
const Alembic::AbcGeom::V2fArraySamplePtr & uvs,
const UInt32ArraySamplePtr & indices )
static

◆ read_uvs_params()

◆ read_velocity()

◆ read_vertex_creases()

◆ report_job_duration()

void blender::io::alembic::report_job_duration ( const ExportJobData * data)
static

◆ samples_have_same_topology() [1/2]

template<typename SampleType>
bool blender::io::alembic::samples_have_same_topology ( const SampleType & sample,
const SampleType & ceil_sample )
static

◆ samples_have_same_topology() [2/2]

template<typename SampleType>
bool blender::io::alembic::samples_have_same_topology ( const SampleType & sample,
const SampleType & ceil_sample )
static

Definition at line 443 of file abc_reader_mesh.cc.

References sample, and samples_have_same_topology().

◆ set_fcurve_sample()

◆ set_knots()

bool blender::io::alembic::set_knots ( const FloatArraySamplePtr & knots,
float *& nu_knots )
static

◆ split()

void blender::io::alembic::split ( const std::string & s,
const char delim,
std::vector< std::string > & tokens )

Definition at line 68 of file abc_util.cc.

References split().

Referenced by blender::io::alembic::AbcObjectReader::AbcObjectReader(), blender::nodes::add_attribute_search_or_value_buttons(), blender::nodes::add_layer_name_search_button(), blender::adduplicateflagNurb(), blender::ui::alert_create(), blender::area_split(), blender::bchunk_list_ensure_min_size_last(), blender::BKE_unit_value_as_string_adaptive(), blender::ed::vse::blade_edit_point_update(), blender::ed::vse::blade_paint_cursor_draw(), blender::ed::vse::blade_split_draw(), blender::ed::vse::blade_split_get(), blender::ed::vse::blade_tooltip_init(), blender::block_create__close_file_dialog(), blender::block_create_autorun_warning(), blender::block_create_save_file_overwrite_dialog(), blender::block_create_save_modified_images_dialog(), blender::BM_edgeloop_expand(), blender::bke::pbvh::build_nodes_recursive_grids(), blender::bke::pbvh::build_nodes_recursive_mesh(), blender::seq::colorBalance_panel_draw(), blender::ui::colorband_buttons_layout(), blender::curve_delete_segments(), blender::ui::curvemap_buttons_layout(), blender::ui::def_but_rna__menu(), blender::nodes::draw_named_attributes_panel(), blender::nodes::draw_property_for_output_socket(), blender::ed_preview_draw_rect(), blender::find_iobject(), blender::generator_panel_draw(), blender::io::usd::get_asset_base_name(), blender::get_dface(), blender::graph_panel_key_properties(), blender::MOD_solidify_nonmanifold_modifyMesh(), blender::ed::space_node::node_buts_image_user(), blender::nodes::node_composite_color_balance_cc::node_declare(), blender::panel_draw(), blender::bke::pbvh::partition_along_axis(), blender::bke::partition_faces_recursively(), blender::bke::pbvh::partition_material_indices(), blender::project_new_ui(), blender::remap_faces_15(), blender::remap_faces_19_21_22(), blender::remap_faces_23(), blender::remap_faces_3_6_9_12(), blender::remap_faces_5_10(), blender::remap_faces_7_11_13_14(), blender::remap_uvs_15(), blender::remap_uvs_19_21_22(), blender::remap_uvs_23(), blender::remap_uvs_3_6_9_12(), blender::remap_uvs_5_10(), blender::remap_uvs_7_11_13_14(), blender::remdoubles_splitface(), blender::screen_draw_dock_preview(), blender::shader_preview_render(), blender::seq::sound_equalizermodifier_draw(), blender::sound_mixdown_exec(), split(), blender::ui::template_any_id(), blender::ui::template_filepath_buttons(), blender::ui::template_ID_session_uid(), blender::ed::space_node::ui_template_node_link_menu(), blender::undo_history_draw_menu(), blender::unit_as_string_main(), blender::v3d_transform_butsR(), blender::view3d_panel_curve_data(), blender::view3d_panel_vgroup(), blender::wm_block_dialog_create(), blender::wm_block_insert_unicode_create(), and blender::wm_block_splash_create().

◆ TEST() [1/9]

blender::io::alembic::TEST ( abc_matrix ,
CopyM44AxisSwap_YfromZ  )

Definition at line 149 of file abc_matrix_test.cc.

References ABC_YUP_FROM_ZUP, copy_m44_axis_swap(), blender::result, and TEST().

◆ TEST() [2/9]

blender::io::alembic::TEST ( abc_matrix ,
CopyM44AxisSwap_ZfromY  )

Definition at line 209 of file abc_matrix_test.cc.

References ABC_ZUP_FROM_YUP, copy_m44_axis_swap(), blender::result, and TEST().

◆ TEST() [3/9]

blender::io::alembic::TEST ( abc_matrix ,
CopyM44AxisSwapWithScale_gimbal_ZfromY  )

Definition at line 265 of file abc_matrix_test.cc.

References ABC_ZUP_FROM_YUP, copy_m44_axis_swap(), blender::result, and TEST().

◆ TEST() [4/9]

blender::io::alembic::TEST ( abc_matrix ,
CopyM44AxisSwapWithScale_YfromZ  )

Definition at line 180 of file abc_matrix_test.cc.

References ABC_YUP_FROM_ZUP, copy_m44_axis_swap(), blender::result, and TEST().

◆ TEST() [5/9]

blender::io::alembic::TEST ( abc_matrix ,
CopyM44AxisSwapWithScale_ZfromY  )

Definition at line 236 of file abc_matrix_test.cc.

References ABC_ZUP_FROM_YUP, copy_m44_axis_swap(), blender::result, and TEST().

◆ TEST() [6/9]

blender::io::alembic::TEST ( abc_matrix ,
CreateRotationMatrixXYZ_YfromZ  )

◆ TEST() [7/9]

blender::io::alembic::TEST ( abc_matrix ,
CreateRotationMatrixXYZ_ZfromY  )

◆ TEST() [8/9]

blender::io::alembic::TEST ( abc_matrix ,
CreateRotationMatrixY_YfromZ  )

◆ TEST() [9/9]

blender::io::alembic::TEST ( abc_matrix ,
CreateRotationMatrixZ_YfromZ  )

◆ TEST_F() [1/3]

blender::io::alembic::TEST_F ( AlembicExportTest ,
TimeSamples180degShutter  )

Definition at line 139 of file abc_export_test.cc.

References blender::e, blender::EXPECT_EQ(), EXPECT_NEAR, and TEST_F().

◆ TEST_F() [2/3]

blender::io::alembic::TEST_F ( AlembicExportTest ,
TimeSamplesFullShutterDifferent  )

◆ TEST_F() [3/3]

blender::io::alembic::TEST_F ( AlembicExportTest ,
TimeSamplesFullShutterUniform  )

Definition at line 73 of file abc_export_test.cc.

References blender::e, blender::EXPECT_EQ(), EXPECT_NEAR, EXPECT_TRUE, and TEST_F().

Referenced by TEST_F(), TEST_F(), and TEST_F().

◆ to_yup_V3f()

Imath::V3f blender::io::alembic::to_yup_V3f ( float3 v)
inlinestatic

◆ to_zup_float3()

float3 blender::io::alembic::to_zup_float3 ( Imath::V3f v)
inlinestatic

◆ topology_changed()

◆ write_empty_samples() [1/2]

template<typename GeomParamType>
void blender::io::alembic::write_empty_samples ( GeomParamType & param,
const size_t num_geom_samples )
static

Definition at line 182 of file abc_writer_attribute.cc.

References sample, and write_empty_samples().

Referenced by create_geom_param_for_attribute(), and write_empty_samples().

◆ write_empty_samples() [2/2]

void blender::io::alembic::write_empty_samples ( OFaceSet & face_set,
const size_t num_geom_samples )
static

Definition at line 436 of file abc_writer_mesh.cc.

References write_empty_samples().

Referenced by write_empty_samples().

◆ write_generated_coordinates()

◆ write_uv()

void blender::io::alembic::write_uv ( const OCompoundProperty & prop,
CDStreamConfig & config,
const Span< float2 > data,
const std::string & uv_map_name )
static

◆ write_uv_maps()

void blender::io::alembic::write_uv_maps ( const OCompoundProperty & prop,
CDStreamConfig & config,
const Mesh & mesh )

Variable Documentation

◆ ABC_ACTIVE_COLOR_ATTRIBUTE_PROPNAME

const std::string blender::io::alembic::ABC_ACTIVE_COLOR_ATTRIBUTE_PROPNAME
inlinestatic
Initial value:
=
"blender:active_color_attribute"

Definition at line 41 of file abc_util.h.

◆ ABC_CURVE_RESOLUTION_U_PROPNAME

const std::string blender::io::alembic::ABC_CURVE_RESOLUTION_U_PROPNAME = "blender:resolution"
inlinestatic

Definition at line 40 of file abc_util.h.

◆ ABC_DEFAULT_COLOR_ATTRIBUTE_PROPNAME

const std::string blender::io::alembic::ABC_DEFAULT_COLOR_ATTRIBUTE_PROPNAME
inlinestatic
Initial value:
=
"blender:default_color_attribute"

Definition at line 43 of file abc_util.h.

◆ LOG [1/5]

CLG_LogRef blender::io::alembic::LOG = {"io.alembic"}
static

Definition at line 49 of file abc_reader_curves.cc.

◆ LOG [2/5]

◆ LOG [3/5]

CLG_LogRef blender::io::alembic::LOG = {"io.alembic"}
static

◆ LOG [4/5]

CLG_LogRef blender::io::alembic::LOG = {"io.alembic"}
static

Definition at line 47 of file abc_reader_object.cc.

Referenced by blender::io::alembic::AbcObjectReader::xform().

◆ LOG [5/5]

CLG_LogRef blender::io::alembic::LOG = {"io.alembic"}
static

◆ propNameOriginalCoordinates

const std::string blender::io::alembic::propNameOriginalCoordinates = "Pref"
inlinestatic

Definition at line 48 of file abc_util.h.