STL,VTK 与ASC 格式的转化

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.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值