POV-Ray : Newsgroups : povray.off-topic : "Minimalistic" intersection of 3 cubes : "Minimalistic" intersection of 3 cubes Server Time
28 Mar 2023 08:48:18 EDT (-0400)
  "Minimalistic" intersection of 3 cubes  
From: Lars R 
Date: 6 Sep 2022 04:36:33
Message: <63170691$1@news.povray.org>
While writing a generator for "rocks" (usable e.g. to render asteroids
etc. ;-) ) I got an interesting optimization problem:

3 concentric, but randomly rotated, cubes of the same size intersects
each other. Which rotataions would give an object with minimal volume or
minimal circumsphere?

This way:

	box { -1, +1 } // not rotated
	box { -1, +1 rotate<X1, Y1, Z1> }
	box [ -1, +1 rotate<X2, Y2, Z2> }

I wrote a program that choose X1,Y1,Z1, X2,Y2,Z2 randomly, and it
renders interesting objects, especially when the 3 cubes got different
colors, but I'd like to see how the optimal solution would look like and
how it can be calculated arithmetically.

Any ideas, suggestions?

	Lars R.

Post a reply to this message

Download 'cube-intersection.png' (11 KB) Download 'cube-intersection.pov.txt' (1 KB)

Preview of image 'cube-intersection.png'

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.