首页 > 其他 > 详细

数字几何处理(3)

时间:2019-09-27 20:19:55      阅读:94      评论:0      收藏:0      [点我收藏+]

半边数据结构:

  网格的顶点,边,面的数据储存在半边数据结构中,半边数据结构写成类似于C语言如下:

  半边:

  struct HE_edge
    {

        HE_vert* vert;   // vertex at the end of the half-edge
        HE_edge* pair;   // oppositely oriented adjacent half-edge
        HE_face* face;   // face the half-edge borders
        HE_edge* next;   // next half-edge around the face
   
    };

 

  顶点

   struct HE_vert
    {

        float x;
        float y;
        float z;

        HE_edge* edge;  // one of the half-edges emantating from the vertex
   
    };
 

  面:

  struct HE_face
    {

        HE_edge* edge;  // one of the half-edges bordering the face

    };

 

原文链接

  

数字几何处理(3)

原文:https://www.cnblogs.com/picturesqueillusion/p/11600126.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!