|
Blender V5.3
|
#include <BKE_geometry_set.hh>
Inherits blender::bke::GeometryComponent.
Static Public Attributes | |
| static constexpr GeometryComponent::Type | static_type = Type::PointCloud |
Additional Inherited Members | |
| Public Types inherited from blender::bke::GeometryComponent | |
| enum class | Type { Mesh = 0 , PointCloud = 1 , Instance = 2 , Volume = 3 , Curve = 4 , Edit = 5 , GreasePencil = 6 } |
| static GeometryComponentPtr | create (Type component_type) |
A geometry component that stores a point cloud, corresponding to the PointCloud data structure. While a point cloud is technically a subset of a mesh in some respects, it is useful because of its simplicity, partly on a conceptual level for the user, but also in the code, though partly for historical reasons. Point clouds can also be rendered in special ways, based on the built-in radius attribute.
Attributes on point clouds are all stored in contiguous arrays in its CustomData, which makes them efficient to process, relative to some legacy built-in mesh attributes.
Definition at line 552 of file BKE_geometry_set.hh.
Definition at line 23 of file geometry_component_pointcloud.cc.
| blender::bke::PointCloudComponent::PointCloudComponent | ( | PointCloud * | pointcloud, |
| GeometryOwnershipType | ownership = GeometryOwnershipType::Owned ) |
Definition at line 25 of file geometry_component_pointcloud.cc.
Definition at line 30 of file geometry_component_pointcloud.cc.
|
finalvirtual |
Get access to the attributes in this geometry component. May return none if the geometry does not support the attribute system.
Reimplemented from blender::bke::GeometryComponent.
Definition at line 130 of file geometry_component_pointcloud.cc.
|
finalvirtual |
Reimplemented from blender::bke::GeometryComponent.
Definition at line 135 of file geometry_component_pointcloud.cc.
|
overridevirtual |
Remove referenced data from the geometry component.
Implements blender::bke::GeometryComponent.
Definition at line 45 of file geometry_component_pointcloud.cc.
|
overridevirtual |
Copies the component. The returned component only has a single user and is therefor mutable.
Implements blender::bke::GeometryComponent.
Definition at line 35 of file geometry_component_pointcloud.cc.
|
overridevirtual |
Reimplemented from blender::bke::GeometryComponent.
Definition at line 113 of file geometry_component_pointcloud.cc.
|
overridevirtual |
Implements blender::bke::GeometryComponent.
Definition at line 102 of file geometry_component_pointcloud.cc.
| const PointCloud * blender::bke::PointCloudComponent::get | ( | ) | const |
Get the point cloud from this component. This method can be used by multiple threads at the same time. Therefore, the returned point cloud should not be modified. No ownership is transferred.
Definition at line 77 of file geometry_component_pointcloud.cc.
Get the point cloud from this component. This method can only be used when the component is mutable, i.e. it is not shared. The returned point cloud can be modified. No ownership is transferred.
Definition at line 82 of file geometry_component_pointcloud.cc.
| bool blender::bke::PointCloudComponent::has_pointcloud | ( | ) | const |
Definition at line 56 of file geometry_component_pointcloud.cc.
|
finalvirtual |
Reimplemented from blender::bke::GeometryComponent.
Definition at line 92 of file geometry_component_pointcloud.cc.
|
overridevirtual |
Implements blender::bke::GeometryComponent.
Definition at line 97 of file geometry_component_pointcloud.cc.
Return the point cloud and clear the component. The caller takes over responsibility for freeing the point cloud (if the component was responsible before).
Definition at line 69 of file geometry_component_pointcloud.cc.
| void blender::bke::PointCloudComponent::replace | ( | PointCloud * | pointcloud, |
| GeometryOwnershipType | ownership = GeometryOwnershipType::Owned ) |
Clear the component and replace it with the new point cloud.
Definition at line 61 of file geometry_component_pointcloud.cc.
|
staticconstexpr |
Definition at line 600 of file BKE_geometry_set.hh.