三角网的生成算法.docVIP

  • 14
  • 0
  • 约9.37千字
  • 约 11页
  • 2018-10-18 发布于江苏
  • 举报
三角网的生成算法

三角网的生成算法 #ifndef TIN_H #define TIN_H #includeiostream #includecmath #includevector #includefstream #includeWGraphics.h using namespace std; typedef struct mo { ?int m; ?int n; ?int mark; }mo; typedef struct o { ?double x; ?double y; }Point; typedef struct sample//文件读入的采样点结构 { ?Point point; ?int Mark; ?int Number;//采样点编号 }Sample; class TIN { public: ?void GetData(); ? ?void Display(int scale); ? //--------------------------------------------------------------------- ?~TIN() ?{?delete [] dot; } ?inline double Distance(Point p1,Point p2)//计算两点之间的距离 ?{?return(sqrt((p1.x-p2.x)*(p1.x-p2.x)+(p

文档评论(0)

1亿VIP精品文档

相关文档