Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/BKE_geometry_set.hh
| Show First 20 Lines • Show All 366 Lines • ▼ Show 20 Lines | public: | ||||
| void add(const GeometryComponent &component); | void add(const GeometryComponent &component); | ||||
| /** | /** | ||||
| * Get all geometry components in this geometry set for read-only access. | * Get all geometry components in this geometry set for read-only access. | ||||
| */ | */ | ||||
| blender::Vector<const GeometryComponent *> get_components_for_read() const; | blender::Vector<const GeometryComponent *> get_components_for_read() const; | ||||
| void compute_boundbox_without_instances(blender::float3 *r_min, blender::float3 *r_max) const; | bool compute_boundbox_without_instances(blender::float3 *r_min, blender::float3 *r_max) const; | ||||
| friend std::ostream &operator<<(std::ostream &stream, const GeometrySet &geometry_set); | friend std::ostream &operator<<(std::ostream &stream, const GeometrySet &geometry_set); | ||||
| /** | /** | ||||
| * Remove all geometry components from the geometry set. | * Remove all geometry components from the geometry set. | ||||
| */ | */ | ||||
| void clear(); | void clear(); | ||||
| ▲ Show 20 Lines • Show All 533 Lines • ▼ Show 20 Lines | public: | ||||
| blender::Span<int> instance_reference_handles() const; | blender::Span<int> instance_reference_handles() const; | ||||
| blender::MutableSpan<int> instance_reference_handles(); | blender::MutableSpan<int> instance_reference_handles(); | ||||
| blender::MutableSpan<blender::float4x4> instance_transforms(); | blender::MutableSpan<blender::float4x4> instance_transforms(); | ||||
| blender::Span<blender::float4x4> instance_transforms() const; | blender::Span<blender::float4x4> instance_transforms() const; | ||||
| int instances_amount() const; | int instances_amount() const; | ||||
| int references_amount() const; | int references_amount() const; | ||||
| /** | |||||
| * Remove the indices that are not contained in the mask input, and remove unused instance | |||||
| * references afterwards. | |||||
| */ | |||||
| void remove_instances(const blender::IndexMask mask); | |||||
| blender::Span<int> almost_unique_ids() const; | blender::Span<int> almost_unique_ids() const; | ||||
| blender::bke::CustomDataAttributes &attributes(); | blender::bke::CustomDataAttributes &attributes(); | ||||
| const blender::bke::CustomDataAttributes &attributes() const; | const blender::bke::CustomDataAttributes &attributes() const; | ||||
| int attribute_domain_size(const AttributeDomain domain) const final; | int attribute_domain_size(const AttributeDomain domain) const final; | ||||
| void foreach_referenced_geometry( | void foreach_referenced_geometry( | ||||
| ▲ Show 20 Lines • Show All 185 Lines • Show Last 20 Lines | |||||