diff options
author | Jacques Lucke <jacques@blender.org> | 2021-02-16 14:07:10 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2021-02-16 14:07:10 +0300 |
commit | 21de1f91480ac2165517a4ba244fa0708a939baf (patch) | |
tree | 6be424f6019f0ebe0bba08fbda667270c7f9be42 /source/blender/blenkernel/BKE_geometry_set.hh | |
parent | 39f60e6909e61b8b7982e637a2091a84d618ddd7 (diff) |
Geometry Nodes: move geometry set instance handling to separate file
In an upcoming commit I'll also move the make-instances-real functionality
to this file. This code is not essential to working with geometry sets in general,
so it makes sense to move it to a separate header.
Diffstat (limited to 'source/blender/blenkernel/BKE_geometry_set.hh')
-rw-r--r-- | source/blender/blenkernel/BKE_geometry_set.hh | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/source/blender/blenkernel/BKE_geometry_set.hh b/source/blender/blenkernel/BKE_geometry_set.hh index 5b429a61b3f..02b3c88183a 100644 --- a/source/blender/blenkernel/BKE_geometry_set.hh +++ b/source/blender/blenkernel/BKE_geometry_set.hh @@ -467,25 +467,3 @@ class VolumeComponent : public GeometryComponent { static constexpr inline GeometryComponentType static_type = GeometryComponentType::Volume; }; - -/** - * Used to keep track of a group of instances using the same geometry data. - */ -struct GeometryInstanceGroup { - /** - * The geometry set instanced on each of the transforms. The components are not necessarily - * owned here. For example, they may be owned by the instanced object. This cannot be a - * reference because not all instanced data will necessarily have a #geometry_set_eval. - */ - GeometrySet geometry_set; - - /** - * As an optimization to avoid copying, the same geometry set can be associated with multiple - * instances. Each instance is stored as a transform matrix here. Again, these must be owned - * because they may be transformed from the original data. TODO: Validate that last statement. - */ - blender::Vector<blender::float4x4> transforms; -}; - -blender::Vector<GeometryInstanceGroup> BKE_geometry_set_gather_instances( - const GeometrySet &geometry_set); |