Blender  V3.3
Functions
blender/pointcloud.cpp File Reference
#include <optional>
#include "scene/attribute.h"
#include "scene/pointcloud.h"
#include "scene/scene.h"
#include "blender/sync.h"
#include "blender/util.h"
#include "util/foreach.h"
#include "util/hash.h"

Go to the source code of this file.

Functions

template<typename TypeInCycles , typename GetValueAtIndex >
static CCL_NAMESPACE_BEGIN void fill_generic_attribute (BL::PointCloud &b_pointcloud, TypeInCycles *data, const GetValueAtIndex &get_value_at_index)
 
static void attr_create_motion (PointCloud *pointcloud, BL::Attribute &b_attribute, const float motion_scale)
 
static void copy_attributes (PointCloud *pointcloud, BL::PointCloud b_pointcloud, const bool need_motion, const float motion_scale)
 
static std::optional< BL::FloatAttribute > find_radius_attribute (BL::PointCloud b_pointcloud)
 
static BL::FloatVectorAttribute find_position_attribute (BL::PointCloud b_pointcloud)
 
static void export_pointcloud (Scene *scene, PointCloud *pointcloud, BL::PointCloud b_pointcloud, const bool need_motion, const float motion_scale)
 
static void export_pointcloud_motion (PointCloud *pointcloud, BL::PointCloud b_pointcloud, int motion_step)
 

Function Documentation

◆ attr_create_motion()

static void attr_create_motion ( PointCloud pointcloud,
BL::Attribute b_attribute,
const float  motion_scale 
)
static

◆ copy_attributes()

static void copy_attributes ( PointCloud pointcloud,
BL::PointCloud  b_pointcloud,
const bool  need_motion,
const float  motion_scale 
)
static

◆ export_pointcloud()

static void export_pointcloud ( Scene scene,
PointCloud pointcloud,
BL::PointCloud  b_pointcloud,
const bool  need_motion,
const float  motion_scale 
)
static

◆ export_pointcloud_motion()

static void export_pointcloud_motion ( PointCloud pointcloud,
BL::PointCloud  b_pointcloud,
int  motion_step 
)
static

◆ fill_generic_attribute()

template<typename TypeInCycles , typename GetValueAtIndex >
static CCL_NAMESPACE_BEGIN void fill_generic_attribute ( BL::PointCloud b_pointcloud,
TypeInCycles *  data,
const GetValueAtIndex &  get_value_at_index 
)
static

Definition at line 19 of file blender/pointcloud.cpp.

References data.

Referenced by copy_attributes().

◆ find_position_attribute()

static BL::FloatVectorAttribute find_position_attribute ( BL::PointCloud  b_pointcloud)
static

Definition at line 157 of file blender/pointcloud.cpp.

References Attribute.

Referenced by export_pointcloud(), and export_pointcloud_motion().

◆ find_radius_attribute()

static std::optional<BL::FloatAttribute> find_radius_attribute ( BL::PointCloud  b_pointcloud)
static

Definition at line 143 of file blender/pointcloud.cpp.

References Attribute.

Referenced by export_pointcloud(), and export_pointcloud_motion().