首页 开发技术 其它     /    PyWavefront:用于导入Wavefront.obj文件的Python库-源码

PyWavefront:用于导入Wavefront.obj文件的Python库-源码

上传者: weixin_38656297 | 上传时间:2024/5/3 10:16:33 | 文件大小:3.39MB | 文件类型:ZIP
PyWavefront:用于导入Wavefront.obj文件的Python库-源码
PyWavefrontPyWavefront读取Wavefront3D对象文件(something.obj,something.obj.gz和something.mtl),并为准备渲染的每种材质生成交错的顶点数据。
1.x版本支持Python3.4+0.x版本支持Python2.7还提供了一个简单的(可选)可视化模块来渲染对象。
交错的数据也可以由更现代的渲染器(如VBO或VAO)使用。
当前,已实现最常用的功能:职位纹理坐标法线顶点颜色材料解析纹理和纹理参数我们目前不支持参数空间顶点,线元素或平滑组。
如果缺少所需的功能,请在github上创建一个问题或请求请求。
该软件包位于或可以在上克隆。
pipinstallpywavefront还请查看以制定未来计划。
用法加载obj文件的基本示例:importpywavefrontscene=pywavefront.Wavefront('something.obj')一个更复杂的例子如果在obj或mtl文件中发现了不受支持的功能,则strict(默认值 本软件ID:14949435

文件下载

资源详情

[{"title":"(70个子文件3.39MB)PyWavefront:用于导入Wavefront.obj文件的Python库-源码","children":[{"title":"PyWavefront-master","children":[{"title":"MANIFEST.in <span style='color:#111;'>158B</span>","children":null,"spread":false},{"title":"test-requirements.txt <span style='color:#111;'>18B</span>","children":null,"spread":false},{"title":".github","children":[{"title":"workflows","children":[{"title":"python-package.yml <span style='color:#111;'>1.31KB</span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":".circleci","children":[{"title":"config.yml <span style='color:#111;'>1.77KB</span>","children":null,"spread":false}],"spread":true},{"title":"examples","children":[{"title":"globe_simple.py <span style='color:#111;'>1.32KB</span>","children":null,"spread":false},{"title":"requirements.txt <span style='color:#111;'>12B</span>","children":null,"spread":false},{"title":"boxes.py <span style='color:#111;'>1.93KB</span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'>860B</span>","children":null,"spread":false},{"title":"globe_complex.py <span style='color:#111;'>1.96KB</span>","children":null,"spread":false},{"title":"data","children":[{"title":"uv_sphere.mtl <span style='color:#111;'>229B</span>","children":null,"spread":false},{"title":"terran.png <span style='color:#111;'>63.57KB</span>","children":null,"spread":false},{"title":"earthmap.2k.jpg <span style='color:#111;'>2.94MB</span>","children":null,"spread":false},{"title":"box","children":[{"title":"box-T2F_C3F_V3F.obj <span style='color:#111;'>907B</span>","children":null,"spread":false},{"title":"box-C3F_V3F.obj <span style='color:#111;'>508B</span>","children":null,"spread":false},{"title":"box-T2F_N3F_V3F.obj <span style='color:#111;'>1010B</span>","children":null,"spread":false},{"title":"box-N3F_V3F.obj <span style='color:#111;'>635B</span>","children":null,"spread":false},{"title":"box-T2F_V3F.obj <span style='color:#111;'>811B</span>","children":null,"spread":false},{"title":"box-V3F.obj <span style='color:#111;'>412B</span>","children":null,"spread":false},{"title":"box.png <span style='color:#111;'>115.94KB</span>","children":null,"spread":false},{"title":"box.mtl <span style='color:#111;'>248B</span>","children":null,"spread":false}],"spread":false},{"title":"earth.obj <span style='color:#111;'>1.11MB</span>","children":null,"spread":false},{"title":"earth.mtl <span style='color:#111;'>247B</span>","children":null,"spread":false},{"title":"uv_sphere.obj <span style='color:#111;'>289.87KB</span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"LICENSE <span style='color:#111;'>1.51KB</span>","children":null,"spread":false},{"title":"setup.py <span style='color:#111;'>1.33KB</span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'>6.93KB</span>","children":null,"spread":false},{"title":"pywavefront","children":[{"title":"exceptions.py <span style='color:#111;'>1.80KB</span>","children":null,"spread":false},{"title":"wavefront.py <span style='color:#111;'>3.26KB</span>","children":null,"spread":false},{"title":"parser.py <span style='color:#111;'>5.85KB</span>","children":null,"spread":false},{"title":"obj.py <span style='color:#111;'>16.22KB</span>","children":null,"spread":false},{"title":"__init__.py <span style='color:#111;'>2.13KB</span>","children":null,"spread":false},{"title":"visualization.py <span style='color:#111;'>6.20KB</span>","children":null,"spread":false},{"title":"cache.py <span style='color:#111;'>7.44KB</span>","children":null,"spread":false},{"title":"material.py <span style='color:#111;'>8.95KB</span>","children":null,"spread":false},{"title":"mesh.py <span style='color:#111;'>2.78KB</span>","children":null,"spread":false},{"title":"texture.py <span style='color:#111;'>8.66KB</span>","children":null,"spread":false}],"spread":true},{"title":"tests","children":[{"title":"test_parser.py <span style='color:#111;'>11.73KB</span>","children":null,"spread":false},{"title":"fixtures","children":[{"title":"simple_zero_indices.obj <span style='color:#111;'>370B</span>","children":null,"spread":false},{"title":"simple_one_vertex.obj <span style='color:#111;'>36B</span>","children":null,"spread":false},{"title":"arbitrary-faces.obj <span style='color:#111;'>401B</span>","children":null,"spread":false},{"title":"simple_negative_indices.obj <span style='color:#111;'>388B</span>","children":null,"spread":false},{"title":"simple_vt.obj <span style='color:#111;'>346B</span>","children":null,"spread":false},{"title":"simple.obj.gz <span style='color:#111;'>210B</span>","children":null,"spread":false},{"title":"simple_colors.obj <span style='color:#111;'>466B</span>","children":null,"spread":false},{"title":"simple.mtl <span style='color:#111;'>206B</span>","children":null,"spread":false},{"title":"3x4.png <span style='color:#111;'>171B</span>","children":null,"spread":false},{"title":"simple.obj <span style='color:#111;'>370B</span>","children":null,"spread":false},{"title":"simple_parsetest.mtl <span style='color:#111;'>314B</span>","children":null,"spread":false},{"title":"simple_missing_normal.obj <span style='color:#111;'>406B</span>","children":null,"spread":false},{"title":"simple_unknown_usemtl.obj <span style='color:#111;'>198B</span>","children":null,"spread":false},{"title":"simple_no_mtl.obj <span style='color:#111;'>616B</span>","children":null,"spread":false},{"title":"simple_no_object_no_mtl.obj <span style='color:#111;'>544B</span>","children":null,"spread":false},{"title":"simple_extra_empty_lines.obj <span style='color:#111;'>379B</span>","children":null,"spread":false},{"title":"simple_missing_material.obj <span style='color:#111;'>378B</span>","children":null,"spread":false},{"title":"simple_missing_uv.obj <span style='color:#111;'>406B</span>","children":null,"spread":false},{"title":"4x4.png <span style='color:#111;'>167B</span>","children":null,"spread":false},{"title":"simple_normals.obj <span style='color:#111;'>296B</span>","children":null,"spread":false},{"title":"simple_positions.obj <span style='color:#111;'>245B</span>","children":null,"spread":false}],"spread":false},{"title":"utils.py <span style='color:#111;'>231B</span>","children":null,"spread":false},{"title":"test_texture.py <span style='color:#111;'>2.74KB</span>","children":null,"spread":false},{"title":"test_mesh.py <span style='color:#111;'>259B</span>","children":null,"spread":false},{"title":"test_cache.py <span style='color:#111;'>6.25KB</span>","children":null,"spread":false},{"title":"test_wavefront.py <span style='color:#111;'>3.40KB</span>","children":null,"spread":false},{"title":"test_material.py <span style='color:#111;'>2.74KB</span>","children":null,"spread":false}],"spread":true},{"title":".gitignore <span style='color:#111;'>174B</span>","children":null,"spread":false},{"title":"ROADMAP.md <span style='color:#111;'>3.07KB</span>","children":null,"spread":false},{"title":"CHANGELOG.md <span style='color:#111;'>4.39KB</span>","children":null,"spread":false},{"title":"extras","children":[{"title":"profiler.py <span style='color:#111;'>460B</span>","children":null,"spread":false},{"title":"RELEASE.md <span style='color:#111;'>444B</span>","children":null,"spread":false},{"title":"logo.png <span style='color:#111;'>81.58KB</span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":true}]

评论信息

免责申明

【好快吧下载】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【好快吧下载】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【好快吧下载】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,8686821#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明