POV-Ray : Newsgroups : povray.general : slightly-squared torus? Server Time
16 Nov 2024 01:18:36 EST (-0500)
  slightly-squared torus? (Message 1 to 10 of 17)  
Goto Latest 10 Messages Next 7 Messages >>>
From: Sally
Subject: slightly-squared torus?
Date: 23 Apr 2004 05:43:32
Message: <4088e544$1@news.povray.org>
I'm looking to doing a "rounded box" kind of torus... basically instead
of the torus being perfectly round around the major axis (origin), I
would like it to travel in a rounded-square kind of path. The thickness
of the torus remains constant though.

Any clues or places to visit for info about how to do this?


Post a reply to this message

From: ABX
Subject: Re: slightly-squared torus?
Date: 23 Apr 2004 05:59:20
Message: <v0qh80diatavhdrgfiiffrgf5t45119hap@4ax.com>
On Fri, 23 Apr 2004 03:42:30 -0600, "Sally" <bui### [at] NOSPAMyahoocom>
wrote:
> I'm looking to doing a "rounded box" kind of torus... basically instead
> of the torus being perfectly round around the major axis (origin), I
> would like it to travel in a rounded-square kind of path. The thickness
> of the torus remains constant though.

For sure you can do this with grid of triangles enclosed in mesh created
moving some crossection along some spline. This can be realized with
SweepSpline macro mentioned one post earlier or IIRC with
http://members.home.nl/seedseven/#MMMM

Circle can be also moved along spline using sphere_sweep{} object thought it
has limited types of spline. Rounded box can be also realized carefully
adjusting control points in
http://www-public.tu-bs.de:8080/~y0013390/pov/ic/docu02.html#Torus_Spline

ABX


Post a reply to this message

From: Fredrik Eriksson
Subject: Re: slightly-squared torus?
Date: 23 Apr 2004 06:47:26
Message: <opr6wn9qvzzjc5hb@news.povray.org>
On Fri, 23 Apr 2004 03:42:30 -0600, Sally <bui### [at] NOSPAMyahoocom> 
wrote:
> I'm looking to doing a "rounded box" kind of torus... basically instead
> of the torus being perfectly round around the major axis (origin), I
> would like it to travel in a rounded-square kind of path. The thickness
> of the torus remains constant though.


Is this
http://hem.bredband.net/b230591/povray/squared_torus.jpg
anything like what you're looking for?

It uses a macro i wrote long ago for creating rounded cylinders (back in 
the 3.1 days). It does pretty much what Round_Cylinder from shapes.inc 
does, but also supports a hole through the middle.


---
FE


Post a reply to this message

From: Florian Brucker
Subject: Re: slightly-squared torus?
Date: 23 Apr 2004 07:47:02
Message: <40890236@news.povray.org>
Perhaps the "supertorus" from shapes.inc is what you're looking for.

HTH,
Florian


Post a reply to this message

From: Severi Salminen
Subject: Re: slightly-squared torus?
Date: 23 Apr 2004 07:52:04
Message: <40890364$1@news.povray.org>
Fredrik Eriksson wrote:

> Is this
> http://hem.bredband.net/b230591/povray/squared_torus.jpg
> anything like what you're looking for?
> 
> It uses a macro i wrote long ago for creating rounded cylinders (back in 
> the 3.1 days). It does pretty much what Round_Cylinder from shapes.inc 
> does, but also supports a hole through the middle.

I don't think that is what Sally wanted. Your macro alters the 
minor_radius, Sally wanted to alter the shape of major_radius.

Severi


Post a reply to this message

From: Ross Litscher
Subject: Re: slightly-squared torus?
Date: 23 Apr 2004 12:55:50
Message: <40894a96$1@news.povray.org>
"Sally" <bui### [at] NOSPAMyahoocom> wrote in message
news:4088e544$1@news.povray.org...
> I'm looking to doing a "rounded box" kind of torus... basically instead
> of the torus being perfectly round around the major axis (origin), I
> would like it to travel in a rounded-square kind of path. The thickness
> of the torus remains constant though.
>
> Any clues or places to visit for info about how to do this?
>
>

would a union of cylinders arranged in a square with a quarter of a torus
for each corner work? the larger the major radius of the partial torus, the
more torus-like the final object would be. the smaller, the more square-like
it is. maybe this isn't what you are looking for at all


Post a reply to this message

From: Sally
Subject: Re: slightly-squared torus?
Date: 23 Apr 2004 19:44:11
Message: <4089aa4b$1@news.povray.org>
Yes, that would be one way of doing it, and probably the easiest to
understand. Of course, its also the least flexible if I need to change
it around later its much more difficult.


Post a reply to this message

From: Sally
Subject: Re: slightly-squared torus?
Date: 23 Apr 2004 19:44:11
Message: <4089aa4b$3@news.povray.org>
I see I have found 3 different ways of doing it, the easiest is probably
supertorus... and this brings me to a more important question.

Is there some page on the internet that has a LARGER thumbnail list of
all the shapes and their easiest way to do them?

I know PovRay has some tiny thumbnails in its menu, with a few of the
common shapes, but it would be great to have a large thumbnail list of
dozens of basic and sortof-basic shapes and ways to achieve them.

Anyone?


Post a reply to this message

From: Hughes, B 
Subject: Re: slightly-squared torus?
Date: 23 Apr 2004 21:03:45
Message: <4089bcf1$1@news.povray.org>
"Sally" <bui### [at] NOSPAMyahoocom> wrote in message
news:4089aa4b$3@news.povray.org...
>
> Is there some page on the internet that has a LARGER thumbnail list of
> all the shapes and their easiest way to do them?


Best I know of is probably going to be Friedrich Lohmueller's stuff at
http://www.f-lohmueller.de/pov_tut/pov__eng.htm
And his own macro capable of squared-off torus is at
http://www.f-lohmueller.de/pov_tut/macros/mymacr1e.htm

If he were to continue to build up that site to add all of the
already-included objects and abilities in the POV-Ray package I think it
would be the first place to visit for finding out all about POV, as well as
learning more to do with it beyond what's included.

Dr. Stefan Immel has the best POV-Ray thumbnail preview site I know of,
showing all images created from the included files.
http://caramel.oc.chemie.tu-darmstadt.de/lemmi/povray35.html

-- 
Bob H.
http://www.3digitaleyes.com


Post a reply to this message

From: Sally
Subject: Re: slightly-squared torus?
Date: 23 Apr 2004 21:15:30
Message: <4089bfb2$1@news.povray.org>
PS, I forgot to mention the key to the list is that it would show the
SIMPLEST way to achieve a shape, sometimes there are many ways. I know
there are already many lists, for example isosurface, but the ones I see
don't mention when there are simpler alternatives to one of the objects.


Post a reply to this message

Goto Latest 10 Messages Next 7 Messages >>>

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