38 if (pointcloud_ !=
nullptr) {
48 if (pointcloud_ !=
nullptr) {
52 pointcloud_ =
nullptr;
58 return pointcloud_ !=
nullptr;
65 pointcloud_ = pointcloud;
66 ownership_ = ownership;
73 pointcloud_ =
nullptr;
94 return pointcloud_ ==
nullptr;
116 pointcloud_->count_memory(memory);
General operations for point clouds.
AttributeAccessor(const void *owner, const AttributeAccessorFunctions &fn)
GeometryComponent(Type type)
MutableAttributeAccessor(void *owner, const AttributeAccessorFunctions &fn)
GeometryComponentPtr copy() const override
void count_memory(MemoryCounter &memory) const override
bool owns_direct_data() const override
void replace(PointCloud *pointcloud, GeometryOwnershipType ownership=GeometryOwnershipType::Owned)
const PointCloud * get() const
std::optional< MutableAttributeAccessor > attributes_for_write() final
bool is_empty() const final
bool has_pointcloud() const
void ensure_owns_direct_data() override
std::optional< AttributeAccessor > attributes() const final
PointCloud * get_for_write()
~PointCloudComponent() override
ImplicitSharingPtr< GeometryComponent > GeometryComponentPtr
const AttributeAccessorFunctions & pointcloud_attribute_accessor_functions()
PointCloud * BKE_pointcloud_copy_for_eval(const PointCloud *pointcloud_src)
BLI_assert(slot->slot_subtype.map==BMO_OP_SLOT_SUBTYPE_MAP_FLT)
void BKE_id_free(Main *bmain, void *idv)