# pb_Stl
An STL importer/exporter for Unity.
**pb_Stl** is the exporter used in ProBuilder to save [STL](http://paulbourke.net/dataformats/stl/) model files.
![stanford_dragon](stanford_dragon.png)
## Install
1. In the `Packages` directory of your Unity project, `git clone https://github.com/karl-/pb_Stl.git co.parabox.stl`
or
1. Open `Packages/manifest.json`
1. Add `"co.parabox.stl":"https://github.com/karl-/pb_Stl.git"` to the `"dependencies"` list
## Quick Start
1. Select a `GameObject` in the Scene View with a `MeshFilter` and valid `Mesh`.
1. In the file menu, `Edit > Export > STL (Ascii)`.
1. View your shiny new STL file.
## Features
- Export and import Binary & ASCII STL files in editor or at runtime.
- Custom AssetPostProcessor automatically creates usable prefabs from any STL imported to Unity.
- Option to convert from left to right handed coordinates (on by default, as per STL spec).
- Automatic merging of multiple selected meshes, including relative transformations.
- Import models with vertex counts larger than Unity max by automatically splitting into multiple meshes.
## Planned Improvements
- Export window with additional options:
- Swap model axis on import/export.
- Export as multiple objects or merge (currently always merges).
- Generate normals on import (with smoothing or no).
## Troubleshooting
#### Model is sideways / horizontal / rotated
Unity's coordinate system is left handed, with Y axis as the vertical. Other 3d modeling programs may have different coordinate systems or axis assignments. **pb_Stl** exports right handed coordinates by default, but can be modified to retain left handed coordinates. Support for swapping axes is planned.
## Contributing
If you would like to submit improvements please include NUnit tests for your changes (and make sure they don't break any existing tests).
## License
It's MIT.
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
pb_Stl Unity的STL导入器/导出器。 pb_Stl是ProBuilder中用于保存模型文件的导出器。 安装 在Unity项目的Packages目录中, git clone https://github.com/karl-/pb_Stl.git co.parabox.stl 要么 打开Packages/manifest.json 将"co.parabox.stl":"https://github.com/karl-/pb_Stl.git"到"dependencies"列表中 快速开始 选择一个GameObject在场景视图与MeshFilter和有效的Mesh 。 在文件菜
资源推荐
资源详情
资源评论
收起资源包目录
pb_Stl-master.zip (72个子文件)
pb_Stl-master
CHANGELOG.md.meta 158B
Editor.meta 191B
Runtime
Parabox.Stl.asmdef.meta 166B
Stl.cs.meta 262B
Importer.cs.meta 243B
Stl.cs 651B
Parabox.Stl.asmdef 30B
Exporter.cs.meta 243B
Exporter.cs 8KB
Importer.cs 11KB
VectorHash.cs 2KB
VectorHash.cs.meta 243B
LICENSE.meta 155B
Test
Parabox.Stl.Test.asmdef.meta 166B
Models
CubedShape_BINARY_H.stl 3KB
text.prefab.meta 190B
dragon_vrip_res3.stl 8.54MB
Cylinder_ASCII_RH.stl 11KB
Cylinder_ASCII_RH.stl.meta 640B
Sphere_ASCII_RH.prefab 123KB
CubedShape_BINARY_H.stl.meta 664B
Cylinder_BINARY_RH.stl 4KB
dragon_vrip_res3.prefab.meta 190B
Sphere_ASCII_RH.prefab.meta 190B
Sphere_BINARY_RH.prefab 123KB
Cylinder_BINARY_RH.prefab 18KB
CompositeCubes_BINARY.stl 1KB
Cylinder_ASCII_RH.prefab.meta 190B
text.stl 87KB
CompositeCubes_BINARY.prefab 10KB
CubedShape_BINARY_H.prefab 16KB
Cylinder_BINARY_RH.prefab.meta 190B
Sphere_ASCII_RH.stl 145KB
text.prefab 81KB
CompositeCubes_BINARY.prefab.meta 190B
CubedShape_BINARY_H.prefab.meta 190B
Sphere_BINARY_RH.stl 38KB
Cylinder_ASCII_RH.prefab 18KB
dragon_vrip_res3.prefab 7.13MB
Sphere_BINARY_RH.stl.meta 628B
text.stl.meta 484B
Sphere_BINARY_RH.prefab.meta 190B
dragon_vrip_res3.stl.meta 589B
Sphere_ASCII_RH.stl.meta 616B
CompositeCubes_BINARY.stl.meta 688B
Cylinder_BINARY_RH.stl.meta 652B
Code.meta 172B
Code
StlTests.cs.meta 243B
DebugMeshView.cs.meta 243B
StlTests.cs 5KB
DebugMeshView.cs 1KB
Parabox.Stl.Test.asmdef 234B
Models.meta 191B
stanford_dragon.png 2.34MB
LICENSE 1KB
Runtime.meta 172B
README.md.meta 158B
README.md 2KB
Editor
StlImporter.cs 2KB
FileMenuItems.cs.meta 243B
Parabox.Stl.Editor.asmdef 228B
StlImporterEditor.cs.meta 243B
Parabox.Stl.Editor.asmdef.meta 166B
StlImporterEditor.cs 805B
FileMenuItems.cs 2KB
StlImporter.cs.meta 243B
stanford_dragon.png.meta 2KB
.gitignore 0B
Test.meta 172B
CHANGELOG.md 277B
package.json 187B
package.json.meta 158B
共 72 条
- 1
资源评论
蓝精神
- 粉丝: 26
- 资源: 4721
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 聊天系统(java+applet).zip
- 毕业设计:基于SSM的mysql-高校学生请假管理系统(源码 + 数据库 + 说明文档)
- 博客系统(struts+hibernate+spring).rar
- c语言学生成绩管理系统源码.zip
- 毕业设计:基于SSM的mysql-网约车用户服务平台(源码 + 数据库 + 说明文档)
- 内容管理系统(hibernate3+struts2+spring2)130224.rar
- 基于Java的班级管理系统课程设计源码
- 内容管理系统(hibernate3+struts2+spring2).rar
- 路由器刷breed Web控制台助手v5.8版本.rar
- Java 在 JEP 12 提供的特性预览
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功