Android代码-安卓设备展示STL 3D模型

上传者: 39840914 | 上传时间: 2021-06-28 09:52:20 | 文件大小: 329KB | 文件类型: ZIP
STL文件解析 去年一个关于3D打印的项目里用到 趁着这几天有时间 弄出个展示STL文件格式的demo 很感谢github上另一个分享者的STLViewer项目,本项目是在其代码的原有基础上进行修改的 ,优化了一些东西,修复了展示卡顿,展示不全,展示绘制三角时法线等等问题,增加了适配屏幕的矫正功能。 支持 STl 两种文件格式 ASCII格式和二进制格式 STL格式简介 ASCII格式 ASCII码格式的STL文件逐行给出三角面片的几何信息,每一行以1个或2个关键字开头。 在STL文件中的三角面片的信息单元 facet 是一个带矢量方向的三角面片,STL三维模型就是由一系列这样的三角面片构成。 整个STL文件的首行给出了文件路径及文件名。 在一个 STL文件中,每一个facet由7 行数据组成, facet normal 是三角面片指向实体外部的法矢量坐标, outer loop 说明随后的3行数据分别是三角面片的3个顶点坐标,3顶点沿指向实体外部的法矢量方向逆时针排列。[1] ASCII格式的STL 文件结构如下: 明码://字符段意义 solidfilenamestl//文件路径

文件下载

资源详情

[{"title":"( 44 个子文件 329KB ) Android代码-安卓设备展示STL 3D模型","children":[{"title":"STLShowView-master","children":[{"title":"gradlew.bat <span style='color:#111;'> 2.26KB </span>","children":null,"spread":false},{"title":"gradlew <span style='color:#111;'> 4.96KB </span>","children":null,"spread":false},{"title":"gradle.properties <span style='color:#111;'> 855B </span>","children":null,"spread":false},{"title":"showImage","children":[{"title":"QQ20150729-2@2x.png <span style='color:#111;'> 134.41KB </span>","children":null,"spread":false},{"title":"QQ20150729-4@2x.png <span style='color:#111;'> 117.50KB </span>","children":null,"spread":false}],"spread":true},{"title":"ShowSTLView.iml <span style='color:#111;'> 917B </span>","children":null,"spread":false},{"title":"app","children":[{"title":"proguard-rules.pro <span style='color:#111;'> 678B </span>","children":null,"spread":false},{"title":"src","children":[{"title":"main","children":[{"title":"res","children":[{"title":"drawable","children":[{"title":"ic_menu_archive.png <span style='color:#111;'> 1.32KB </span>","children":null,"spread":false}],"spread":true},{"title":"mipmap-hdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 3.34KB </span>","children":null,"spread":false}],"spread":true},{"title":"values","children":[{"title":"strings.xml <span style='color:#111;'> 1.34KB </span>","children":null,"spread":false},{"title":"styles.xml <span style='color:#111;'> 739B </span>","children":null,"spread":false},{"title":"dimens.xml <span style='color:#111;'> 211B </span>","children":null,"spread":false}],"spread":true},{"title":"mipmap-xxhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 7.54KB </span>","children":null,"spread":false}],"spread":false},{"title":"mipmap-mdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 2.15KB </span>","children":null,"spread":false}],"spread":false},{"title":"mipmap-xhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 4.73KB </span>","children":null,"spread":false}],"spread":false},{"title":"layout","children":[{"title":"preferences.xml <span style='color:#111;'> 7.80KB </span>","children":null,"spread":false},{"title":"stl.xml <span style='color:#111;'> 2.00KB </span>","children":null,"spread":false}],"spread":false},{"title":"values-w820dp","children":[{"title":"dimens.xml <span style='color:#111;'> 358B </span>","children":null,"spread":false}],"spread":false}],"spread":true},{"title":"java","children":[{"title":"com","children":[{"title":"example","children":[{"title":"zhaowencong","children":[{"title":"showstlview","children":[{"title":"STLRenderer.java <span style='color:#111;'> 9.06KB </span>","children":null,"spread":false},{"title":"othershow","children":[{"title":"PreferencesActivity.java <span style='color:#111;'> 4.96KB </span>","children":null,"spread":false},{"title":"FileListDialog.java <span style='color:#111;'> 5.01KB </span>","children":null,"spread":false}],"spread":false},{"title":"STLViewActivity.java <span style='color:#111;'> 6.58KB </span>","children":null,"spread":false},{"title":"STLView.java <span style='color:#111;'> 6.12KB </span>","children":null,"spread":false},{"title":"stlbean","children":[{"title":"STLObject.java <span style='color:#111;'> 9.67KB </span>","children":null,"spread":false}],"spread":false},{"title":"util","children":[{"title":"IOUtils.java <span style='color:#111;'> 2.02KB </span>","children":null,"spread":false},{"title":"Log.java <span style='color:#111;'> 1.82KB </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"AndroidManifest.xml <span style='color:#111;'> 1.06KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"app.iml <span style='color:#111;'> 7.43KB </span>","children":null,"spread":false},{"title":".gitignore <span style='color:#111;'> 7B </span>","children":null,"spread":false},{"title":"build.gradle <span style='color:#111;'> 601B </span>","children":null,"spread":false}],"spread":true},{"title":"gradle","children":[{"title":"wrapper","children":[{"title":"gradle-wrapper.jar <span style='color:#111;'> 48.73KB </span>","children":null,"spread":false},{"title":"gradle-wrapper.properties <span style='color:#111;'> 232B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":".idea","children":[{"title":"gradle.xml <span style='color:#111;'> 608B </span>","children":null,"spread":false},{"title":"misc.xml <span style='color:#111;'> 4.91KB </span>","children":null,"spread":false},{"title":"vcs.xml <span style='color:#111;'> 164B </span>","children":null,"spread":false},{"title":".name <span style='color:#111;'> 11B </span>","children":null,"spread":false},{"title":"copyright","children":[{"title":"profiles_settings.xml <span style='color:#111;'> 74B </span>","children":null,"spread":false}],"spread":true},{"title":"modules.xml <span style='color:#111;'> 359B </span>","children":null,"spread":false},{"title":"dictionaries","children":[{"title":"zhaowencong.xml <span style='color:#111;'> 90B </span>","children":null,"spread":false}],"spread":false},{"title":"compiler.xml <span style='color:#111;'> 686B </span>","children":null,"spread":false}],"spread":true},{"title":".gitignore <span style='color:#111;'> 91B </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 2.82KB </span>","children":null,"spread":false},{"title":"settings.gradle <span style='color:#111;'> 15B </span>","children":null,"spread":false},{"title":"build.gradle <span style='color:#111;'> 436B </span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

免责申明

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