diff options
author | Krzysztof Recko <yetioszek@gmail.com> | 2015-04-07 05:44:39 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2015-04-07 06:19:50 +0300 |
commit | 98f41066943d8b1cf9236d6b358d1e84c9e7cc4b (patch) | |
tree | fc72244cb769c05daa4b45dfca090ad1b90adcd7 /source/blender/blenkernel/BKE_mball_tessellate.h | |
parent | 9510137d1237f0bb493313cb65a79479ec77e4ce (diff) |
Metaball tessellation optimization (Octree to BVH)
Speedup is non-linear, 2x-10x faster is quite normal.
Patch T43678.
- Switched from an Octree to BVH.
- Finding first points of surface no longer "wastes" density function evaluation: every result is cached.
- Use MemArena instead of using own memory management.
- Correct calculation of metaelem bounding box.
- Remove mball_count(): mballs are now counted "on the go".
Diffstat (limited to 'source/blender/blenkernel/BKE_mball_tessellate.h')
-rw-r--r-- | source/blender/blenkernel/BKE_mball_tessellate.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/blenkernel/BKE_mball_tessellate.h b/source/blender/blenkernel/BKE_mball_tessellate.h index a3d3e1934b7..361f31b704c 100644 --- a/source/blender/blenkernel/BKE_mball_tessellate.h +++ b/source/blender/blenkernel/BKE_mball_tessellate.h @@ -31,4 +31,6 @@ void BKE_mball_polygonize( struct EvaluationContext *eval_ctx, struct Scene *scene, struct Object *ob, struct ListBase *dispbase); +void BKE_mball_cubeTable_free(void); + #endif /* __BKE_MBALL_TESSELLATE_H__ */ |