
CGAL
我来自江南
这个作者很懒,什么都没留下…
展开
-
opengl渲染cgal的边和面片
(参考demo/Polyhedron/Scene_polyhedron_item.cpp 注意注释所强调的) 1. 利用opengl渲染cgal的多面体的边 ::glBegin(GL_LINES); Edge_iterator he; for(he = polyhedron.edges_begin(); he != polyhedron.edges_e原创 2012-04-24 20:57:10 · 2665 阅读 · 1 评论 -
CGAL读取一个三维空间边的两个端点坐标
Alpha_shape_3::Finite_edges_iterator editer; for (editer = A3.finite_edges_begin(); editer != A3.finite_edges_end(); editer++) { Point3 p1 = editer->first->vertex(CGAL::Triangulation_cw_ccw_原创 2012-04-18 00:34:01 · 1692 阅读 · 0 评论 -
使用Polyhedron_3<Kernel> 声明和定义变量
typedef CGAL::Cartesian Kernel; typedef Kernel::Vector_3 Vector; typedef Kernel::Point_3 Point;原创 2012-04-19 15:34:40 · 1456 阅读 · 0 评论 -
对cgal的polyhedron的off文件格式的进一步理解
有一合法polyhedron,存于如下off文件数据 那么facets部分的数据的顶点indices的总个数就是该polyhedron半边的总条数。图中四个三角形共12个顶点索引,所以必有12条半边原创 2013-03-31 21:04:29 · 2475 阅读 · 0 评论 -
catmull smarlk-subdivision原来不但可以细分四边形多面体
用catmull smark-subdivision, 三种几何体都可以进行曲面细分: 1. 只包含四边形的多面体 2.只包含三角形的多面体 3包含三角形和四边形的多面体原创 2013-12-03 19:07:07 · 937 阅读 · 0 评论