Robots in Architecture Forum

KUKA|prc - parametric robot control for Grasshopper => Support => Topic started by: Woodboss on December 11, 2017, 10:23:11 AM

Title: Optimising process sequence
Post by: Woodboss on December 11, 2017, 10:23:11 AM
Hi,
I have a project which includes a large number of discreet cutting or similar operations to perform on pieces of material.
Grasshopper calculates the cutting list and outputs it in a seemingly random sequence which has the robot jumping around all over the place.
Can I sort the list such that the cutting sequence is less random?
Perhaps in ascending X & Y coordinate values of the approach moves?
Title: Re: Optimising process sequence
Post by: Johannes @ Robots in Architecture on December 11, 2017, 05:34:42 PM
Hello,

There are more or less complex sorting algorithms and I'm pretty sure some component should exist for that. Attached is a very simple optimization strategy that simply creates a zig-zag polyline all over the working area and then sorts the individual curves according to the parameter of their closest point on the zig-zag curve.
It's quite straightforward and here it optimized the toolpath from 42m down to 19m.

Best,
Johannes