Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added transformations (scale, rotate, translate) #6

Closed
wants to merge 7 commits into from

Conversation

joostn
Copy link

@joostn joostn commented Jan 6, 2012

Hi Evan,

Thanks for creating csg.js! I've added affine transformations for translation, rotation, scaling and arbitrary matrix transform. See tests/index.html where I've added an example.

I'm planning to add STL output as well, this would make it a great alternative to OpenSCAD for generating models for 3D printing.

Joost

@joostn
Copy link
Author

joostn commented Jan 6, 2012

And STL output is now implemented as well. I've included a quick demo at tests/stl.html.

@joostn
Copy link
Author

joostn commented Jan 8, 2012

I've added support for 2D shapes, and extrusion into a 3D mesh. See tests/index.html for a demo

@evanw
Copy link
Owner

evanw commented Jan 10, 2012

I meant for csg.js to be a simple, readable implementation of the algorithm and not to be a production-quality CAD library for 3D geometry generation. Matrix transformations and STL output do not aid in understanding the algorithm and so I would rather keep them out of csg.js. You're welcome to use csg.js as the starting point for such a library, just keep in mind the limitations I mentioned on your other pull request.

@joostn
Copy link
Author

joostn commented Jan 11, 2012

That's fine, I'll keep working on my port then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants