POV-Ray : Newsgroups : povray.binaries.images : Placing point on a sphere - 1 attachment : Re: Placing point on a sphere - 1 attachment - 1 attachment Server Time
16 Nov 2024 08:21:49 EST (-0500)
  Re: Placing point on a sphere - 1 attachment - 1 attachment  
From: Zio Pera
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


 

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