GithubHelp home page GithubHelp logo

isabella232 / pb_stl Goto Github PK

View Code? Open in Web Editor NEW

This project forked from notecad/pb_stl

0.0 0.0 0.0 5.91 MB

STL import/export for Unity, supporting both ASCII and Binary.

License: MIT License

C# 100.00%

pb_stl's Introduction

pb_Stl

An STL importer/exporter for Unity.

pb_Stl is the exporter used in ProBuilder to save STL model files.

stanford_dragon

Quick Start

  1. Select a GameObject in the Scene View with a MeshFilter and valid Mesh.
  2. In the file menu, Edit > Export > STL (Ascii).
  3. 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's People

Contributors

karl- avatar martinbischoff avatar zdravkon avatar suzannahsmith1 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.