POV-Ray : Newsgroups : povray.binaries.images : Placing point on a sphere - 1 attachment Server Time
16 Nov 2024 10:31:19 EST (-0500)
  Placing point on a sphere - 1 attachment (Message 1 to 9 of 9)  
From: Zio Pera
Subject: Placing point on a sphere - 1 attachment
Date: 18 Feb 2003 03:30:38
Message: <Xns93266109FE342fizbanlombardiacomit@204.213.191.226>
A few days ago (feb 9, i think) there was a thread about placing point
evenly on a sphere. 

Starting from the URL supplyed in that threat, and with a little C++
hacking, i've made a simple tool that generate a geode with an arbitrary
number of nodes. 

The nodes are placed using an electrostatic-repulsion algorithm; here
are an example with 120 points. 

If someone is interested, I'll post the C++ source code and a win32
executable on an appropriate group (maybe povray.binaries.utility ?).


Post a reply to this message


Attachments:
Download 'geo1.jpg' (65 KB)

Preview of image 'geo1.jpg'
geo1.jpg


 

From: Tim Nikias
Subject: Re: Placing point on a sphere - 1 attachment
Date: 18 Feb 2003 06:41:44
Message: <3e521bf8@news.povray.org>
I've written that system already with POV-SDL some
time ago, but never managed to clean the code and
make it available to public. The nice thing about it
is its in-between-steps. I've set up some animations
on my homepage, look under Animations.

But how did you process the points for the connections
with cylinders?

--
Tim Nikias
Homepage: http://www.digitaltwilight.de/no_lights/index.html
Email: Tim### [at] gmxde

> A few days ago (feb 9, i think) there was a thread about placing point
> evenly on a sphere.
>
> Starting from the URL supplyed in that threat, and with a little C++
> hacking, i've made a simple tool that generate a geode with an arbitrary
> number of nodes.
>
> The nodes are placed using an electrostatic-repulsion algorithm; here
> are an example with 120 points.
>
> If someone is interested, I'll post the C++ source code and a win32
> executable on an appropriate group (maybe povray.binaries.utility ?).
>
>
>


Post a reply to this message

From: Andrew Cocker
Subject: Re: Placing point on a sphere - 1 attachment
Date: 18 Feb 2003 07:09:39
Message: <3e522283@news.povray.org>
"Zio Pera" <fiz### [at] lombardiacomit> wrote in message
news:Xns### [at] 204213191226...

> If someone is interested, I'll post the C++ source code and a win32
> executable on an appropriate group (maybe povray.binaries.utility ?).

Hi,

Yes, I am interested in the Win32 exe. Post it please.

All the best,

Andy Cocker


Post a reply to this message

From: Zio Pera
Subject: Re: Placing point on a sphere - 1 attachment - 1 attachment
Date: 18 Feb 2003 08:23:26
Message: <Xns932692B12446Ffizbanlombardiacomit@204.213.191.226>
"Tim Nikias" <tim### [at] gmxde> wrote in news:3e521bf8@news.povray.org:

> I've written that system already with POV-SDL some
> time ago, but never managed to clean the code and
> make it available to public. The nice thing about it
> is its in-between-steps. I've set up some animations
> on my homepage, look under Animations.
> 
> But how did you process the points for the connections
> with cylinders?
> 
> --


Well, once I've got the distributions, I calculate the minimum distance 
between two points, then I iterate through all the possible couple of 
points; if the distance between them is less than 1.5 the minimum distance, 
I connect the point with a cylinder.

I can't simply connect the couple that are *exactly* at the minimum 
distance, because the triangles are not exactly regular; that's occours 
only with platonic solids.

1.5 is the magic number that I've found working with all my examples.

By the way, I've made another little tool to generate a triangle mesh; here 
are an example. In this tool, I search triplet of point within 
1.5*minimum_distance to make a triangle.

The tools, and the source code, are posted on povray.binaries.utilities.


Post a reply to this message


Attachments:
Download 'geo2.jpg' (16 KB)

Preview of image 'geo2.jpg'
geo2.jpg


 

From: Zio Pera
Subject: Re: Placing point on a sphere - 1 attachment
Date: 18 Feb 2003 08:24:19
Message: <Xns932692D851DC1fizbanlombardiacomit@204.213.191.226>
"Andrew Cocker" <mai### [at] andrewcockercouk> wrote in 
news:3e522283@news.povray.org:

> Hi,
> 
> Yes, I am interested in the Win32 exe. Post it please.
> 
> All the best,
> 
> Andy Cocker
> 
> 
> 

Here you are, on povray.binaries.utilities


Post a reply to this message

From: David Parrott
Subject: Re: Placing point on a sphere - 1 attachment
Date: 18 Feb 2003 12:28:26
Message: <kbT4uLAe6hU+Iwt2@quayles1.demon.co.uk>
In article <Xns### [at] 204213191226>, Zio
Pera <fiz### [at] lombardiacomit> writes
>A few days ago (feb 9, i think) there was a thread about placing point
>evenly on a sphere. 
>
>Starting from the URL supplyed in that threat, and with a little C++
>hacking, i've made a simple tool that generate a geode with an arbitrary
>number of nodes. 
>
>The nodes are placed using an electrostatic-repulsion algorithm; here
>are an example with 120 points. 
>
>If someone is interested, I'll post the C++ source code and a win32
>executable on an appropriate group (maybe povray.binaries.utility ?). 

I would be interested in the source, and also if you could post the URL
again, I can't find the original thread here.

Cheers
-- 
David Parrott


Post a reply to this message

From: Zio Pera
Subject: Re: Placing point on a sphere - 1 attachment
Date: 19 Feb 2003 03:47:58
Message: <Xns9327640086C1Bfizbanlombardiacomit@204.213.191.226>
David Parrott <xam### [at] quayles1demoncouk> wrote in 
news:kbT4uLAe6hU+Iwt### [at] quayles1demoncouk:

> 
> I would be interested in the source, and also if you could post the URL
> again, I can't find the original thread here.
> 
> Cheers

Well, the original URL mentioned in the thread is 
http://www.math.niu.edu/~rusin/known-math/index/spheres.html

It seems that the posting in pbu was rejected; you can find
the tools I've made, with source code, on my scratch page:

http://www.geocities.com/ziopera_kolmogorov/index.htm


Post a reply to this message

From: Alf Peake
Subject: Re: Placing point on a sphere - 1 attachment
Date: 19 Feb 2003 11:10:34
Message: <3e53ac7a@news.povray.org>
"Zio Pera" <fiz### [at] lombardiacomit> wrote in message
news:Xns### [at] 204213191226...
>
> It seems that the posting in pbu was rejected; you can find

??

I picked up geode.zip up last night, Tuesday, from p.b.u.

I must find time to look at it now ;)

Alf


Post a reply to this message

From: obj
Subject: Re: Placing point on a sphere - 1 attachment
Date: 19 Feb 2003 13:20:06
Message: <web.3e53c9b21ae8ff49590a39950@news.povray.org>
Alf Peake wrote:
>"Zio Pera" <fiz### [at] lombardiacomit> wrote in message
>news:Xns### [at] 204213191226...
>>
>> It seems that the posting in pbu was rejected; you can find
>
>??
>
>I picked up geode.zip up last night, Tuesday, from p.b.u.
>
>I must find time to look at it now ;)
>
>Alf
>
same here ...
got it no problem from p.b.u.
and ditto on the time to look at it ;)

-ob-


Post a reply to this message

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