POV-Ray : Newsgroups : povray.binaries.images : New shape - Rounded_Box Server Time
7 Nov 2024 09:26:12 EST (-0500)
  New shape - Rounded_Box (Message 1 to 4 of 4)  
From: Bald Eagle
Subject: New shape - Rounded_Box
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


 

From: Anthony D  Baye
Subject: Re: New shape - Rounded_Box
Date: 8 Jul 2016 15:10:00
Message: <web.577ff98195cd9e47fd6b6fe10@news.povray.org>
"Bald Eagle" <cre### [at] netscapenet> wrote:
> 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...

is f_rounded_box not good for this?

Regards,
A.D.B.


Post a reply to this message

From: Bald Eagle
Subject: Re: New shape - Rounded_Box
Date: 8 Jul 2016 21:25:01
Message: <web.5780516d95cd9e475e7df57c0@news.povray.org>
"Anthony D. Baye" <Sha### [at] spamnomorehotmailcom> wrote:

> is f_rounded_box not good for this?
>
> Regards,
> A.D.B.

Very cool - there's always something lurking around to (re)discover.
But I think that's pretty much equivalent to the Round_Box macro.

There's only 1 term for the radius, so they are all the same.

I needed something that would give that ...  "Credit card"  shape.


Post a reply to this message

From: Alain
Subject: Re: New shape - Rounded_Box
Date: 8 Jul 2016 21:35:06
Message: <578054ca$1@news.povray.org>


> is f_rounded_box not good for this?
>
> Regards,
> A.D.B.
>

Not realy. The f_rounded_box macro return a box where the curve radius 
is exactly the same for all edges.

This one allow for 2 different radius.


Alain


Post a reply to this message

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