Blender V5.3
attribute.cpp File Reference
#include "scene/attribute.h"
#include "scene/hair.h"
#include "scene/image.h"
#include "scene/mesh.h"
#include "scene/pointcloud.h"
#include "util/guarded_allocator.h"
#include "util/log.h"
#include "util/string.h"
#include "util/transform.h"

Go to the source code of this file.

Functions

static size_t attribute_alloc_bytes (const size_t element_size, const size_t size)
static void free_step_buffer (Attribute::Buffer &buf, const AttributeElement element, const size_t data_sizeof, const size_t size)
static char * buffer_for_write (Attribute::Buffer &buf, const size_t element_size, const size_t size)
static bool standard_type_element (const Geometry *geometry, const AttributeStandard std, TypeDesc &type, AttributeElement &element)

Function Documentation

◆ attribute_alloc_bytes()

size_t attribute_alloc_bytes ( const size_t element_size,
const size_t size )
static

◆ buffer_for_write()

char * buffer_for_write ( Attribute::Buffer & buf,
const size_t element_size,
const size_t size )
static

◆ free_step_buffer()

◆ standard_type_element()

bool standard_type_element ( const Geometry * geometry,
const AttributeStandard std,
TypeDesc & type,
AttributeElement & element )
static

Definition at line 762 of file attribute.cpp.

References ATTR_ELEMENT_CORNER, ATTR_ELEMENT_CORNER_BYTE, ATTR_ELEMENT_CORNER_NORMAL, ATTR_ELEMENT_CURVE, ATTR_ELEMENT_CURVE_KEY, ATTR_ELEMENT_CURVE_KEY_NORMAL, ATTR_ELEMENT_FACE, ATTR_ELEMENT_MESH, ATTR_ELEMENT_VERTEX, ATTR_ELEMENT_VERTEX_NORMAL, ATTR_ELEMENT_VOXEL, ATTR_STD_CORNER_NORMAL, ATTR_STD_CURVE_INTERCEPT, ATTR_STD_CURVE_LENGTH, ATTR_STD_CURVE_RANDOM, ATTR_STD_GENERATED, ATTR_STD_GENERATED_TRANSFORM, ATTR_STD_GSPLAT_RADIANCE, ATTR_STD_GSPLAT_RADIANCE_BASE, ATTR_STD_GSPLAT_RADIANCE_SPHERICAL_HARMONICS_REST, ATTR_STD_GSPLAT_ROTATION, ATTR_STD_GSPLAT_SCALE, ATTR_STD_NORMAL_UNDISPLACED, ATTR_STD_POINT_RANDOM, ATTR_STD_POINTINESS, ATTR_STD_POSITION, ATTR_STD_POSITION_UNDEFORMED, ATTR_STD_POSITION_UNDISPLACED, ATTR_STD_PTEX_FACE_ID, ATTR_STD_PTEX_UV, ATTR_STD_RADIUS, ATTR_STD_RANDOM_PER_ISLAND, ATTR_STD_SHADOW_TRANSPARENCY, ATTR_STD_UV, ATTR_STD_UV_TANGENT, ATTR_STD_UV_TANGENT_SIGN, ATTR_STD_UV_TANGENT_SIGN_UNDISPLACED, ATTR_STD_UV_TANGENT_UNDISPLACED, ATTR_STD_VERTEX_COLOR, ATTR_STD_VERTEX_NORMAL, ATTR_STD_VOLUME_COLOR, ATTR_STD_VOLUME_DENSITY, ATTR_STD_VOLUME_FLAME, ATTR_STD_VOLUME_HEAT, ATTR_STD_VOLUME_TEMPERATURE, ATTR_STD_VOLUME_VELOCITY, ATTR_STD_VOLUME_VELOCITY_X, ATTR_STD_VOLUME_VELOCITY_Y, ATTR_STD_VOLUME_VELOCITY_Z, Geometry::is_hair(), Geometry::is_mesh(), Geometry::is_pointcloud(), Geometry::is_volume(), and standard_type_element().

Referenced by AttributeSet::add(), AttributeSet::add_shared(), Attribute::matches_standard(), and standard_type_element().