ericrosenbaum / BeetleBlocks

visual programming blocks for 3D-printable design
http://beetleblocks.com
GNU Affero General Public License v3.0
85 stars 12 forks source link

Export to OBJ #62

Closed bromagosa closed 9 years ago

gitduks commented 9 years ago

Hi Bernat, Did you find a way to create an obj? I imagine it is not trivial to get drawn lines. -d

bromagosa commented 9 years ago

Hey Duks,

I don't understand what you mean with drawn lines, I guess we need to talk about this feature some more ;)

I found a way to get the OBJExporter of three.js to work and export all objects in the scene. However, we need to test this quite extensively. I haven't even added it to the IDE menu yet, I thought it better to wait until we had out the next meeting.

If you want to test it though, you just need to open the javascript console and type ide.downloadOBJ(). This is not pushed to the the gh-pages branch yet though, so you'd have to test it locally.

bromagosa commented 9 years ago

I've done quite a lot of testing and it seems to work. I still don't understand what @gitduks meant with drawn lines, but AFAIK this is already working.

I've exposed this on the file menu and contextual scene menu so you can try it out too. Some shots for context:

BeetleBlocks scene

image

Imported OBJ in MeshLab

gas

gitduks commented 9 years ago

Hi Bernat, This is sooo cool!!!! What I meant is that a line that was created with 'start drawing', 'stop drawing' does not show up the .obj. I hope I am not importing something wrong though...

obj test in bb

obj test in rhino3d

bromagosa commented 9 years ago

Ok, I understand now.

Then, since OBJ exporting does work, I'm closing this one and opening a new issue for missing lines when exporting.