POV-Ray : Newsgroups : povray.newusers : Intersections not quite working? : Re: Intersections not quite working? Server Time
28 Jul 2024 12:22:05 EDT (-0400)
  Re: Intersections not quite working?  
From: Mike Williams
Date: 16 Mar 2009 15:33:05
Message: <NjlFetDvlqvJFwkA@econym.demon.co.uk>
In case you need it at some point, here's the obtuse equivalent:

#macro drawObtuseArc(centre, arcSweepStart, arcSweepEnd, arcRadius,
borderWidth)
  #local arcDepth = 0.1;
  #local arcNorm = vcross(arcSweepStart,arcSweepEnd);

  difference{
    cylinder{ centre - arcDepth * arcNorm, centre + arcDepth * arcNorm,
arcRadius }
    intersection {
      plane{ -arcSweepStart, 0 translate centre }
      plane{ -arcSweepEnd, 0 translate centre}
    }
    pigment {rgbf <1,0,0,0>}
   }
#end

-- 
Mike Williams
Gentleman of Leisure


Post a reply to this message

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