bildsoe
- 6
- 0
Hi,
I'm working at a small company currently trying to create a casting mould for double curved surfaces. I'm in charge of programming, and I'm creating a plugin for Rhino which is supposed to take a double curved panel and reorient it to the xy-plane from where it is read and sent to our machine.
In order for this to work, I need to calculate a minimum bounding box and use this to check if it is within the allowed domain for the machine.
In Rhino / Grasshopper I can use an evolutionary solver and use the volume of the bouding box as fitness and rotation of the baseplane in x,y,z axi as genomes. However in the solution I'm currently doing I cannot use the elolutionary solver.
Do you have any ideas of how to solve this?
My current solution is to read a lot of points on the surface. Find the best fit plane through the points using a SVD factorization(I'm a math newbie, so I found the SVD solution on a math forum and implemented it), and then I incrementially rotate a bounding box in this plane, and accept the minimal volume as my solution. It is especially this last part I don't like.
Best
Thomas
I'm working at a small company currently trying to create a casting mould for double curved surfaces. I'm in charge of programming, and I'm creating a plugin for Rhino which is supposed to take a double curved panel and reorient it to the xy-plane from where it is read and sent to our machine.
In order for this to work, I need to calculate a minimum bounding box and use this to check if it is within the allowed domain for the machine.
In Rhino / Grasshopper I can use an evolutionary solver and use the volume of the bouding box as fitness and rotation of the baseplane in x,y,z axi as genomes. However in the solution I'm currently doing I cannot use the elolutionary solver.
Do you have any ideas of how to solve this?
My current solution is to read a lot of points on the surface. Find the best fit plane through the points using a SVD factorization(I'm a math newbie, so I found the SVD solution on a math forum and implemented it), and then I incrementially rotate a bounding box in this plane, and accept the minimal volume as my solution. It is especially this last part I don't like.
Best
Thomas