Profile cover photo
Profile photo
Charles Yates
45 followers
45 followers
About
Charles's posts

Post has attachment
Probably a dumb idea, but I've always liked Reverse Polish Notation and the FORTH language - hacked this up as an alternative way to use openjscad:

function main( )
{
return new stack( ) // Create stack
.push( cube( ) ) // Push a cube
.dup( ) // Duplicate the top of stack
.push( [ 1, 1, 0 ] ) // Push coordinates
.translate( ) // Translate
.union( ) // Join the two objects
.push( 10 ) // Push 10
.scale( ) // Scale
.pop( ); // Return top of stack
}

or:

function main( )
{
return new stack( ) // Create stack
.push( cube( ) ) // Push a cube
.push( "dup" ) // Duplicate the top of stack
.push( [ 1, 1, 0 ] ) // Push coordinates
.push( "translate" ) // Translate
.push( "union" ) // Join the two objects
.push( 10 ) // Push 10
.push( "scale" ) // Scale
.pop( ); // Return top of stack
}

eventually, I'd like to support:

function main( )
{
return new stack( ).push( cube ).push( "dup [ 1,1,0 ] translate union 10 scale" ).pop( );
}

along with FORTH-style word definitions, but that's probably just getting silly :p.

Dunno if it scales very well, or if there'd be any interest in such an approach, but thought I'd bounce it here and see if anyone is interested (or just wants to point and laugh :)).


I've been toying with openjscad off and on for a while - have to say that I really like it :).

At the moment I'm working on a hacked version for my own site and scripts - provisional version hosted here:

http://www.geminidev.be/3d/openjscad

The patches applied so far include:

* defaulting the editor to off
* defaulting instant update on the parameter panel to on
* defaulting to 'repaired' STL's using the fixTJunctions method
* adding a few 'examples' of my own projects
* a mechanism to allow parameter overrides via the url 

An example of the latter is my messing around with the design of a marble supported painter's turntable - the default of which can be linked by:

http://www.geminidev.be/3d/openjscad/#examples/doodatable

Or with parameter overrides like:

http://www.geminidev.be/3d/openjscad/?part=2&outer_radius=50&inner_spokes=10#examples/doodatable

The current code (which is very much work in progress) can be seen here:

http://www.geminidev.be/3d/openjscad/examples/doodatable/main.jscad

The intent is to make the current URL available so that this can be passed from user to user or used as a bookmark for specific custom models.

Don't know if there's any interest in any of this stuff, but I'll happily push it up to github if there is.

Also, more detail about the specific model can be found here:

http://www.thingiverse.com/thing:1444236

Anyway, thanks for the project - it's a very neat idea.

Post has attachment
Photo
Photo
2014-10-31
2 Photos - View album

Post has attachment
The real thing from the looks of it...

Post has attachment
This is long enough at 2 minutes. There's a 10 hour loop version in case you need to be reminded over and over again precisely where the Hobbits are going.

Post has attachment
Wait while more posts are being loaded