|
Blender V5.3
|
#include "scene/pointcloud.h"#include "scene/attribute.h"#include "scene/scene.h"#include "util/hash.h"#include "util/tbb.h"#include "blender/attribute_convert.h"#include "blender/sync.h"#include "blender/util.h"#include "DNA_pointcloud_types.h"#include "BKE_attribute.hh"#include "BKE_attribute_math.hh"Go to the source code of this file.
Functions | |
| static CCL_NAMESPACE_BEGIN void | attr_create_motion_from_velocity (PointCloud *pointcloud, const blender::Span< blender::float3 > b_attribute, const float motion_scale) |
| static void | copy_attributes (PointCloud *pointcloud, const blender::PointCloud &b_pointcloud, const bool need_motion, const float motion_scale) |
| static void | export_pointcloud_gsplat_attributes (PointCloud *pointcloud, const blender::bke::AttributeAccessor &b_attributes) |
| static void | export_pointcloud_motion_gsplat_attributes (PointCloud *pointcloud, Attribute *attr_radiance_base, Attribute *attr_scale, Attribute *attr_rotation, const blender::PointCloud &b_pointcloud, const blender::bke::AttributeAccessor &b_attributes, const int attr_step) |
| static void | export_pointcloud (Scene *scene, PointCloud *pointcloud, const blender::PointCloud &b_pointcloud, const bool need_motion, const float motion_scale) |
| static void | export_pointcloud_motion (PointCloud *pointcloud, const blender::PointCloud &b_pointcloud, const int motion_step) |
|
static |
Definition at line 23 of file blender/pointcloud.cpp.
References Attribute::add_motion(), attr_create_motion_from_velocity(), ATTR_STD_POSITION, ATTR_STD_RADIUS, Geometry::attributes, Attribute::data_for_write(), AttributeSet::find(), Geometry::get_position(), Geometry::get_radius(), make_float3(), PointCloud::num_points(), P, and step.
|
static |
Definition at line 55 of file blender/pointcloud.cpp.
References attr_create_motion_from_velocity(), Geometry::attributes, copy_attributes(), blender::bke::AttributeAccessor::domain_size(), AttributeSet::find(), blender::bke::AttributeAccessor::foreach_attribute(), blender::bke::AttributeIter::get(), blender::bke::AttributeIter::name, blender::bke::Point, blender::bke::attribute_math::to_static_type(), blender::GVArrayCommon::type(), and blender::bke::GAttributeReader::varray.
Referenced by copy_attributes(), export_pointcloud(), and export_pointcloud_motion().
|
static |
Definition at line 257 of file blender/pointcloud.cpp.
References AttributeSet::add(), ATTR_STD_POINT_RANDOM, ATTR_STD_POSITION, ATTR_STD_RADIUS, Geometry::attributes, copy_attributes(), Attribute::data_for_write(), export_pointcloud(), export_pointcloud_gsplat_attributes(), Geometry::get_radius_for_write(), blender::GSplat, hash_uint2_to_float(), blender::Span< T >::index_range(), blender::bke::AttributeAccessor::lookup(), Geometry::need_attribute(), blender::bke::Point, PointCloud::RENDER_AS_GSPLATS, PointCloud::resize(), blender::Span< T >::size(), sync_attribute_from_blender(), Geometry::tag_position_modified(), Geometry::tag_radius_modified(), and blender::PointCloud::type.
Referenced by export_pointcloud().
|
static |
Definition at line 119 of file blender/pointcloud.cpp.
References AttributeSet::add(), ATTR_STD_GSPLAT_RADIANCE_BASE, ATTR_STD_GSPLAT_RADIANCE_SPHERICAL_HARMONICS_REST, ATTR_STD_GSPLAT_ROTATION, ATTR_STD_GSPLAT_SCALE, Geometry::attributes, PointCloud::create_missing_gsplat_attributes(), Attribute::data_for_write(), export_pointcloud_gsplat_attributes(), blender::bke::AttributeAccessor::lookup(), make_float3(), PackedSphericalHarmonicsRest::MAX_COEFFICIENTS, PointCloud::num_points(), blender::bke::Point, spherical_harmonics_rest_fill_zero(), spherical_harmonics_rest_set_coefficient(), sync_attribute_from_blender(), x, y, and z().
Referenced by export_pointcloud(), and export_pointcloud_gsplat_attributes().
|
static |
Definition at line 309 of file blender/pointcloud.cpp.
References Attribute::add_motion(), ATTR_STD_GSPLAT_RADIANCE_BASE, ATTR_STD_GSPLAT_ROTATION, ATTR_STD_GSPLAT_SCALE, ATTR_STD_POSITION, ATTR_STD_RADIUS, Geometry::attributes, copy_attributes(), PointCloud::copy_center_to_motion_step(), Attribute::data(), Attribute::data_for_write(), export_pointcloud_motion(), export_pointcloud_motion_gsplat_attributes(), AttributeSet::find(), Geometry::get_position(), blender::GSplat, Attribute::has_motion(), blender::blender::Span< T >::is_empty(), blender::bke::AttributeAccessor::lookup(), make_float3(), PointCloud::num_points(), blender::bke::Point, Attribute::remove_motion(), blender::Span< T >::size(), step, sync_attribute_motion_step_from_blender(), and blender::PointCloud::type.
Referenced by export_pointcloud_motion().
|
static |
Definition at line 181 of file blender/pointcloud.cpp.
References Attribute::data_for_write(), PointCloud::DEFAULT_GSPLAT_RADIANCE_BASE, PointCloud::DEFAULT_GSPLAT_SCALE, export_pointcloud_motion_gsplat_attributes(), identity_quaternion(), blender::bke::AttributeAccessor::lookup(), PointCloud::num_points(), blender::bke::Point, blender::Span< T >::size(), and sync_attribute_motion_step_from_blender().
Referenced by export_pointcloud_motion(), and export_pointcloud_motion_gsplat_attributes().