|
Blender V4.3
|
#include <optional>#include "scene/attribute.h"#include "scene/pointcloud.h"#include "scene/scene.h"#include "blender/attribute_convert.h"#include "blender/sync.h"#include "blender/util.h"#include "util/color.h"#include "util/foreach.h"#include "util/hash.h"#include "BKE_attribute.hh"#include "BKE_attribute_math.hh"#include "BKE_pointcloud.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 ::PointCloud &b_pointcloud, const bool need_motion, const float motion_scale) |
| static void | export_pointcloud (Scene *scene, PointCloud *pointcloud, const ::PointCloud &b_pointcloud, const bool need_motion, const float motion_scale) |
| static void | export_pointcloud_motion (PointCloud *pointcloud, const ::PointCloud &b_pointcloud, int motion_step) |
|
static |
Definition at line 25 of file blender/pointcloud.cpp.
References AttributeSet::add(), ATTR_STD_MOTION_VERTEX_POSITION, Geometry::attributes, Attribute::data_float4(), AttributeSet::find(), make_float3(), make_float4(), P, float3::x, float3::y, and float3::z.
Referenced by copy_attributes().
|
static |
Definition at line 57 of file blender/pointcloud.cpp.
References attr_create_motion_from_velocity(), Geometry::attributes, blender::bke::attribute_math::convert_to_static_type(), blender::bke::AttributeAccessor::domain_size(), blender::bke::AttributeAccessor::foreach_attribute(), blender::bke::AttributeIter::get(), blender::bke::AttributeIter::name, blender::bke::Point, blender::GVArrayCommon::type(), and blender::bke::GAttributeReader::varray.
Referenced by export_pointcloud(), export_pointcloud_motion(), and blender::bke::gather_attributes().
|
static |
Definition at line 99 of file blender/pointcloud.cpp.
References AttributeSet::add(), ATTR_STD_POINT_RANDOM, Geometry::attributes, copy_attributes(), blender::Span< T >::data(), Attribute::data_float(), hash_uint2_to_float(), blender::Span< T >::index_range(), blender::Span< T >::is_empty(), make_float3(), Geometry::need_attribute(), blender::bke::Point, PointCloud::resize(), and blender::Span< T >::size().
|
static |
Definition at line 139 of file blender/pointcloud.cpp.
References AttributeSet::add(), ATTR_STD_MOTION_VERTEX_POSITION, Geometry::attributes, copy_attributes(), PointCloud::copy_center_to_motion_step(), Attribute::data_float4(), AttributeSet::find(), blender::Span< T >::is_empty(), make_float3(), make_float4(), PointCloud::num_points(), P, blender::bke::Point, AttributeSet::remove(), and blender::Span< T >::size().