Grasshopper

algorithmic modeling for Rhino

HI everybody,

I work on a GH able to work on the CNC fabrication of hinge articulated triangulated surfaces.

- I have a nice tagging script optimised from for tools (thanks to Benjamin Golder)

- a customisable definition to drill hinge holes to articulate each triangles

- I use rhinonest to optimise the CNC files

Is someone have a solution to group triangles+holes+tags together  in order to nest each elements together ?

I've tried with containment (holes+tags inside triangles) without success, here is the file.

Thanks

Views: 846

Attachments:

Replies to This Discussion

Here's a screencast that shows you how to use the Rhinoscript below to achieve the grouping you want.

Attachments:

Thnaks Chris it works great !

Is anybody knows how to us the script in GH ?

thanks

Paul

Hi Chris,

after a test on my file I got this error message :

source : rhinoScript

Error : Type mismatch in parameter. String requiered.

Line : 50

Char : 3

any idea why ?

Thanks

Paul

I didn't put as much error trapping in the script as I might have but all of your curves need to be planar and on the XY world plane.  Is the file you tested the script on different from the file you posted above? I need the file you're using to really debug any problems.

Chris

Here is the final geometr.

I do not understand why it do not works on all curves shape, the csript would be really usefull if it works on different geometries..

thanks

Attachments:

I won't have time to look at it until later in the day. 

As long as I know what those geometries are it might be possible to include them in the functionality.  I'm always working from specific examples only.

It turns out that you changed the font style from an outline curve to a stick font in your current file and this was causing a problem when the font element was a straight line as for example the vertical stroke in a 4.  The script below can handle stick fonts.  I also added a count down counter in the command line so you can see where you are in the parsing process.  With 70 triangles each triangle is taking about 5 seconds to group.  The script is inefficient in the sense that it doesn't eliminate already grouped elements from the next loop.  Let me know if you still have problems.  Again I haven't put in any error trapping to test for planarity of curves. 

Attachments:

The script below will automatically pick the objects by layer.  As long as you have the layers set up with the correct objects on the corresponding  named layers: "surfaces", "holes", "numbers", it should work correctly.  I question somewhat the use of the word surfaces when in fact you're using curves but as long as you know what it's about you should be ok.

Attachments:

I was out of my computer last week.

To answer your question, the layer "surface" refers to the CNC out cut of wood panels, and will become an hanged physic structure.

Thanks

Paul

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service