POV-Ray : Newsgroups : povray.general : Elliptical Torus? : Re: Elliptical Torus? Server Time
2 Aug 2024 02:20:56 EDT (-0400)
  Re: Elliptical Torus?  
From: David Cameron
Date: 11 Feb 2005 12:46:55
Message: <420cef8f@news.povray.org>
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

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