Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/geometry/node_geometry_util.hh
| Show First 20 Lines • Show All 78 Lines • ▼ Show 20 Lines | |||||
| /** | /** | ||||
| * Copies the point domain attributes from `in_component` that are in the mask to `out_component`. | * Copies the point domain attributes from `in_component` that are in the mask to `out_component`. | ||||
| */ | */ | ||||
| void copy_point_attributes_based_on_mask(const GeometryComponent &in_component, | void copy_point_attributes_based_on_mask(const GeometryComponent &in_component, | ||||
| GeometryComponent &result_component, | GeometryComponent &result_component, | ||||
| Span<bool> masks, | Span<bool> masks, | ||||
| const bool invert); | const bool invert); | ||||
| /** | |||||
| * Copy all attributes from #src to #dst, "compressing" the result | |||||
| * arrays by skipping the elements that are not in the mask. | |||||
| */ | |||||
| void copy_all_attributes_with_mask(const bke::CustomDataAttributes &src, | |||||
| bke::CustomDataAttributes &dst, | |||||
| const IndexMask mask); | |||||
| /** | /** | ||||
| * Returns the parts of the geometry that are on the selection for the given domain. If the domain | * Returns the parts of the geometry that are on the selection for the given domain. If the domain | ||||
| * is not applicable for the component, e.g. face domain for point cloud, nothing happens to that | * is not applicable for the component, e.g. face domain for point cloud, nothing happens to that | ||||
| * component. If no component can work with the domain, then `error_message` is set to true. | * component. If no component can work with the domain, then `error_message` is set to true. | ||||
| */ | */ | ||||
| void separate_geometry(GeometrySet &geometry_set, | void separate_geometry(GeometrySet &geometry_set, | ||||
| const AttributeDomain domain, | const AttributeDomain domain, | ||||
| const GeometryNodeDeleteGeometryMode mode, | const GeometryNodeDeleteGeometryMode mode, | ||||
| Show All 27 Lines | |||||