Grasshopper

algorithmic modeling for Rhino

Order point for punching press.. how obtain S order.

Good morning everybody,

I have a "little" problem and I hope somebody could help me... I'm writing directly from grasshopper a NC file for my punching press ... (in attach my gh file)...

My problem is obtain a S order path of points.... Actually I have a Z order path of points ... see image below.

How can obtain this???... any idea?.

I thank you in advance for your help!!!.. 

Piero

Views: 1275

Attachments:

Replies to This Discussion

Hi Piero,

your file contains the Excel writing component which I do not have installed. It also takes forever to open.

Can you just internalise your points (as per item 3 on this page) and post only them?

--

David Rutten

david@mcneel.com

..sorry... I have update a simple file.. I'm not able to find "internationalize data" menu option..

Attachments:

Internalise.. as in 'make internal'. It only works for floating and input parameters and it allows you to remove everything to the left of the internalised parameter as the result of all those components becomes hard-coded.

At any rate, the trick here is to reverse every other column/row of points. For this you need to split the datatree into even and odd columns. You can use this with the [Tree Split] component and the selection mask {0,2,...} (if your tree has a different layout, you may need a different mask).

Then reverse only one half of the tree, merge it all back together again and you're done:

--

David Rutten

david@mcneel.com

Attachments:

What's "Unity" in the expresion

That's UnitY if I'd used the correct casing. There are three constants (UnitX, UnitY and UnitZ) representing the three world axis vectors.

--

David Rutten

david@mcneel.com

Ah.. makes perfect sense now

Why do you use "*" instead of "+" for adding? How to multiply then?

For those that haven't downloaded the file to see the Expression it is:

x + UnitY*15

As we are dealing with Points when you add a vector you get a new Point.

for example a point x is {3,4,0}

So UnitY = {0,1,0}

*15 = {0,15,0}

+ {3,4,0} = {3,19,0}

Sorry... first of all... I'm a stupid man...

But...

Where is the expression on order.gh file that update David?.

Thanks

When the two Split Paths are merged back together in the [Point Param] there is a Tag on the left hand side which represents an Expression I/O Modifier.

The Expression used is x + UnitY*15.

More about these Tags can be found here:

http://www.grasshopper3d.com/forum/topics/what-are-the-icons-on-a-c...

"...representing the three world axis vectors."

Got it. Thanks Danny!

I thank you a lot... I'm working for understand better what you  do.. I need UnitX .. and I'm not able to find Where you force it ... 

RSS

About

Translate

Search

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service