STL,VTK 与ASC 格式的转化
来源:互联网 发布:佛山淘宝客服外包 编辑:程序博客网 时间:2024/05/29 18:20
The only app I know for having this functionality is Alias Spider, a standalone app which complement AliasStudio reverse engineering toolset (www.alias.com).
Otherwise a STL Ascii file can be fairly easily deciphered and converted to a .ASC file. Basically all the information but the vertices XYZ information should be removed from the file.
Depending on the tools you are familiar with and the OS you are running, this can be achieved via simple shell or perl commands.
Or this could also be achieved with an advanced text editor such as Textpad. Here is a way to do it in Textpad:
1. open the STL Ascii file in Textpad
2a. open the Edit > Search dialog
2b. type in "vertex" for Search What
2c. leaving the other options as is, click on the "Mark All" button
(all the lines w/ "vertex" in should be tagged)
2d. close the Search dialog
3. Search > Invert All Bookmarks
(all the lines w/o "vertex" in should be tagged now)
4. Edit > Delete > Bookmarked Lines
(all the remaining lines should have "vertex" w/ their XYZ coordinates)
5. select all the characters and empty spaces before the 1st value (X)
6a. Search > Replace (or hit F8)
6b. the "Find What" field should be automatically filled in with the previous selection
6c. leave the "Replace With" field empty
6d. click on the "Replace All" button
7. save your file w/ a .asc extension
Voila.
This should do it. Otherwise you could pm me and I could convert the file with Spider.
Otherwise a STL Ascii file can be fairly easily deciphered and converted to a .ASC file. Basically all the information but the vertices XYZ information should be removed from the file.
Depending on the tools you are familiar with and the OS you are running, this can be achieved via simple shell or perl commands.
Or this could also be achieved with an advanced text editor such as Textpad. Here is a way to do it in Textpad:
1. open the STL Ascii file in Textpad
2a. open the Edit > Search dialog
2b. type in "vertex" for Search What
2c. leaving the other options as is, click on the "Mark All" button
(all the lines w/ "vertex" in should be tagged)
2d. close the Search dialog
3. Search > Invert All Bookmarks
(all the lines w/o "vertex" in should be tagged now)
4. Edit > Delete > Bookmarked Lines
(all the remaining lines should have "vertex" w/ their XYZ coordinates)
5. select all the characters and empty spaces before the 1st value (X)
6a. Search > Replace (or hit F8)
6b. the "Find What" field should be automatically filled in with the previous selection
6c. leave the "Replace With" field empty
6d. click on the "Replace All" button
7. save your file w/ a .asc extension
Voila.
This should do it. Otherwise you could pm me and I could convert the file with Spider.
0 0
- STL,VTK 与ASC 格式的转化
- 汉字与ASCⅡ码的转化
- Java中的Asc码与字符互相转化
- Dlib格式与Opencv之间的转化
- 关于从asc格式到pcd格式的转换
- vtk实战(二十一)——写入STL格式
- mysql日期格式与字符串格式的转化
- asc ii与unicode的小实验
- 时间的转化格式
- 日期格式的转化
- 日期格式的转化
- 日期格式的转化
- FLTK与VTK的整合
- VTK的编译与安装
- VTK的安装与配置
- VTK与Qt的结合
- VTK的Reader与Writer
- Vtk与opencv的冲突
- 帕累托图(Parete)的使用方法
- SQLServer2008/2005 生成数据字典SQL语句
- asp.net 读取Excel数据并将数据插入到数据库中
- 来自陈沙克日志的收藏
- 主流内存数据库对比
- STL,VTK 与ASC 格式的转化
- 大马盼落实飞行数据即时监控
- 两台机器建立ssh信任链接,访问无须输入密码
- java环境变量的配置
- C++学习笔记->面向对象的三个特性
- 关于代码复查的一些笨想法
- 《勇者斗恶龙 4 被引导的人们》再次突袭手游市场!
- Axis Client 调用asmx 错误No implementation defined for org.apache.commons.logging.LogFactory
- Jqury Ajax火狐浏览器返回的result是object XmlDocument 的问题