一个好的3D网格库 [英] A Good 3D mesh library

查看:156
本文介绍了一个好的3D网格库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在找一个好的3D网格库

I'm looking for a good 3D Mesh library

  • 应该能够阅读流行格式(OFF,OBJ ...)
  • 应支持半边结构和三角汤
  • 应容忍错误和非法的网格。
  • 基本几何运算 - 十字路口,正常计算,等'
  • 最重要的是 - 不应该被卷积无尽的模板和继承层次

我都试过CGAL和OpenMesh但在最后一个点两个惨遭失败。

I've tried both CGAL and OpenMesh but both fail miserably in the last point.

具体来说CGAL这是不可能按照即使是最先进的code的分析工具。

Specifically CGAL which is impossible to follow even with the most advanced code analysis tools.

到目前为止,我认真考虑拉我自己的。

So far I'm seriously considering to pull my own.

我的preference是C ++,但我接受其他选择。

My preference is C++ but I'm open to other options.

推荐答案

请问为什么最后一点是需求?

May I ask why the last point is a requirement?

大众消费的书面库的设计,它是通过尽可能多的用户使用的是尽可能地通用。在C ++中,这往往是最好使用的模板。这将极大地吮吸,如果找到了一个好图书馆,却发现这是无用的,你的目的,因为它用来代替双打花车。

Libraries written for public consumption are designed to be as generic as possible so that it is usable by the widest possible audience. In C++, this is often best done using templates. It would suck tremendously if found a good library, only to discover it was useless for your purposes because it used floats instead of doubles.

CGAL,例如,似乎已通过编写通用,可扩展的C ++库的众所周知的,经过严格测试的STL的范式。这确实让人很难遵循与code的分析工具;我怀疑他们是多好,在任一下列STL头。

CGAL, for example, appears to have adopted the well-known and well-tested STL paradigm of writing generic and extensible C++ libraries. This does indeed make it difficult to follow with code analysis tools; I doubt they're much good at following STL headers either.

但你想使用图书馆或修改呢?无论哪种方式,他们似乎有一些非常高质量的文件(如:内核手册),它应该让相对简单的找出你需要做的,而不必诉诸阅读他们的code。

But are you trying to use the library or modify it? Either way, they seem to have some extremely high-quality documentation (e.g. Kernel Manual) that should make it relatively simple to figure out what you need to do, without having to resort to reading their code.

免责声明:我知道这是不是你要求的。但是,我不认为你所要寻找的存在。这是非常罕见的开源$ C ​​$ C与文档一样好,我所看到的扫描通过CGAL。我强烈建议你再看一看吧。

Disclaimer: I know this isn't what you're asking for. But I don't think what you're looking for exists. It is extraordinarily rare to find open source code with documentation as good as what I've seen scanning through CGAL. I would strongly suggest that you take another look at it.

这篇关于一个好的3D网格库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆