网站大量收购独家精品文档,联系QQ:2885784924

数字几何处理试验报告.doc

  1. 1、本文档共12页,可阅读全部内容。
  2. 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
数字几何处理试验报告

Asignment2 完成人 学号: 这一实验主要实现了以下三项要求: Implementation of a simple disk parameterization method (of a disk topology mesh, i.e.,genus zero with a single boundary) using uniform and discrete harmonic (i.e cotangent)barycentric coordinates with circular boundary. Use of parameterization for texture mapping. Computation of parameterization distortion as the overall distortion of triangle areas and angles. 在这一次实验中遇到的问题主要有: 在键盘操作编程中由于数字的处理不合适总会出现当repeat number减小到1时会出现错误导致之后的操作不能运行。经过单独对其进行限制处理后得到解决。 在这几次实验中主要的收获有: 逐渐熟悉使用visual studio来进行图像数字处理的一些基本操作和重要算法的实现。对3D模型有了跟深入的了解并激发了对数字几何处理方面如3D扫描的兴趣。这是一门非常有意思的课程而且很大程度上增强了我动手操作的能力。 主要代码如下: ParamViewer:: ParamViewer(const char* _title, int _width, int _height, int iRepeat) : MeshViewer(_title, _width, _height) { _Repeat = iRepeat*5; mesh_.request_vertex_colors(); mesh_.add_property(vpos_); mesh_.add_property(vparam_u_); mesh_.add_property(vparam_h_); mesh_.add_property(texcoord_u_); mesh_.add_property(texcoord_h_); mesh_.add_property(eweight_); mesh_.add_property(vparam_index_); add_draw_mode(UV Domain); add_draw_mode(Textured mesh); _TextureCoordinates_u=NULL; _TextureCoordinates_h=NULL; _ParameterizationMode_ = NoParameterization; init(); } ParamViewer:: ~ParamViewer() { if (glIsTexture(textureID_)) glDeleteTextures( 1, textureID_); if (_TextureCoordinates_u) delete [] _TextureCoordinates_u; if (_TextureCoordinates_h) delete [] _TextureCoordinates_h; } void ParamViewer:: init() { // base class first MeshViewer::init(); // generate checkerboard-like image GLubyte tex[256][256][3]; int index=0; for (int x=0; x256; ++x) { for (int y=0; y256; ++y) { if ((x128y128) ||(x128y128)) { tex[x][y][0] = 0; tex[x][y][1] = 255; tex[x][y][2] = 0; } else { tex[x][y][0] = 255; tex[x][y][1] = 255; tex[x][y][2] = 255; } } } // generate texture

文档评论(0)

sunshaoying + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档