Skip to content
This repository has been archived by the owner on Jul 24, 2022. It is now read-only.

feat(): add ability to deserialize stl to csg #32

Merged
merged 15 commits into from
Oct 15, 2017
Merged

Conversation

kaosat-dev
Copy link
Contributor

@kaosat-dev kaosat-dev commented Oct 11, 2017

This pr adds ability to deserialize stl data to CSG objects directly, and adds unit tests

* adde stubs for output type selection option
* added a first one for ascii stl => jscad
* added basics for same to csg & binary to jscad
* metadata injection is now togleable
* changed binary vs ascii detection
* more internal cleanups
@z3dev
Copy link
Member

z3dev commented Oct 12, 2017

openscad.org has some STL files for testing as well. You might want to grab a few of those.

@kaosat-dev
Copy link
Contributor Author

@z3dev I already added stl files to sample-files, no need for a ton, there aren't that many variations in STL

… stl files

* fixed issues with output from binary
* restructured internals & cleaned up
* added testing of output csg vertices
* added expected file for more comple stl inputs (containing list of csg vertices)
* added more tests
* moved test to sub folder
* updated test commands
@z3dev
Copy link
Member

z3dev commented Oct 15, 2017

Hmmm... I don't see a test for STL colors, which I added about 1 year back. Tinkercad produces STL files with colors. See examples/feathers_mcgraw.stl

@kaosat-dev kaosat-dev merged commit a90dcf4 into master Oct 15, 2017
@kaosat-dev
Copy link
Contributor Author

damn, did not see your comment on time, sorry, will add tests for that later (although my point about not supporting non standard features for stl still stands)

@kaosat-dev kaosat-dev deleted the stl-to-csg branch November 3, 2017 10:38
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants