|
|
Damn, I spoke too soon. :(
I did a simple CSG test with elliptical_torus before I posted my original
reply, and it seems to work OK.
I have since done further CSG tests which fail.
For instance, this appears to work.
difference {
// The elliptical torus
object {
elliptical_torus( x_major_radius, z_major_radius, minor_radius )
rotate x * 90
}
// The elliptical cylinder
cylinder {
< 0, 0, -minor_radius >, < 0, 0, minor_radius / 2 >, 1
scale < x_major_radius, z_major_radius, 1>
}
pigment { color Red }
}
... but this fails
difference {
// The elliptical cylinder
cylinder {
< 0, 0, 0 >, < 0, 0, minor_radius >, 1
scale < x_major_radius, z_major_radius, 1>
}
// The elliptical torus
object {
elliptical_torus( x_major_radius, z_major_radius, minor_radius )
rotate x * 90
}
pigment { color Red }
}
Post a reply to this message
|
|