-
Notifications
You must be signed in to change notification settings - Fork 1
Home
Welcome to the 3dc wiki!
This is a java port of Alex W's STL encoder/decoder.
[Update Log]
The original reason for the port is to add this library to the reprap host in order to read stl files, as the standard java3d stl importer has some bugs.
The code is now being morphed to support a multi-material tool chain for reprap 3d printers. In order for reprap printers to support printing multiple materials on a single print run we need the ability to support multi-material object files such as AMF. Currently there are no CAD tools that support AMF. As such the first object of this convertor is to allow multiple STL files to be combined into a single AMF file. As each STL file is merged into the AMF file a geometric transformation and a material id will be added. In this way and an AMF file can be created without the need for direct CAD support.
As well as porting the code to java I've made a couple of improvements:
- Code no longer reads the entire STL file into memory but rather use random access to access the file as needed. This should allow much larger STL files to be read.
- I've restructured the code so it can be used as a library as well as a standalone application. The main changes involved removing all of the code that writes to stdout. The code now throws exceptions instead.
- support for AMF importing has been added.
TODO: Write an AMF encoder so we can output AMF files. Allow multiple STL files to be combined into a single AMF file with a transformation and material id being added as part of the merge.