Grasshopper

algorithmic modeling for Rhino

Hi ,

 

I am using two trapezoidal objects(3d) and have a bounding box around them. i am using galapagos to find the smallest volume which can contain these two odd shaped objects. i realised that without physics the bounding box finds the optimum solution by penetrating one box into another. tried using kangaroo physics but not able to create inspheres for such odd shaped objects. Please help.

 

presently i have my kangaroo script incomplete.

 

I also tried to understand the components in the Self aligning geometry example by daniel piker but having issues.

 

A solution to this problem would be a great help for my project.

 

thanks 

 

Vittal Sridharan

Views: 1045

Attachments:

Replies to This Discussion

You can test the intersection between the 2 objects, and try to minimize it as well as the volume of the box. By example Fitness for Galapagos could be 2^(Intersectionvolume+1) * (BBoxvolume).

For optimizing:

-you dont need to move and rotate the 2 objects, 1 moving around the other one is enough.

-you can work in 2D only, your objects are just simple extrusion of planar polylines, and you dont seem to move them in 3D. So you can use region intersection.

Also:

-the bounding box needs an orientation plane, or it will always be oriented in XY by default.

-there is one optimal solution, and 4 equivalent sub-optimal solutions to your problem with the provided shapes and movement constraints .

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service