快速、模板化、C++ 八叉树实现

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/5963954/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-28 19:14:43  来源:igfitidea点击:

Fast, templated, C++ Octree implementation

c++treestructure

提问by Robinson

I've been searching high and low (mostly on google) for a fast, efficient, templated (ie. with STL-like properties) octree implementation, without success. I want to use this in the context of a 3D scene graph.

我一直在高低(主要是在谷歌上)搜索快速、高效、模板化(即具有类似 STL 的属性)八叉树实现,但没有成功。我想在 3D 场景图的上下文中使用它。

Does such a thing exist, or do people generally roll their own? I'm hoping my friends at stackoverflow will know where to find one.

这样的东西是否存在,或者人们通常自己滚动?我希望我在 stackoverflow 的朋友会知道在哪里可以找到。

回答by Janus Troelsen

回答by Jeroen Baert

Also recently released: http://www.openvdb.org/

最近也发布了:http: //www.openvdb.org/

A volume hierarchy format by Dreamworks.

Dreamworks 的卷层次结构格式。