POV-Ray : Newsgroups : povray.binaries.images : New shape - Rounded_Box : New shape - Rounded_Box Server Time
4 May 2024 14:13:02 EDT (-0400)
  New shape - Rounded_Box  
From: Bald Eagle
Date: 7 Jul 2016 21:20:00
Message: <web.577eff80f0dc1b8b5e7df57c0@news.povray.org>
I was in need of a shape that had two different "roundings" - and so I rewrote
Friedrich Lohmueller's "Round_Box" macro to give the same rounded edge on the
corners where the X-Y and Y-Z sides intersect, but with a different radius on
the corners defined by the X-Z intersections.

It took quite some time to conceive what was needed, add all of the new
variables, and work out some of the bugs, but it gives a nice smooth box
suitable for my present purpose.

I'm sure it's "breakable" for certain input values to the macro in it's present
condition, so I'll need to add certain tests, sanity checks, corrections, and
warning messages.

A "Half_Rounded_Box" will likely be forthcoming - one half round box, with one
half rounded box.   I suppose I could "cheat" and just union smaller versions of
the two together for the time being...


Post a reply to this message


Attachments:
Download 'roundedbox.png' (82 KB)

Preview of image 'roundedbox.png'
roundedbox.png


 

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