POV-Ray : Newsgroups : povray.binaries.images : blob words : Re: blob words Server Time
28 May 2024 10:15:34 EDT (-0400)
  Re: blob words  
From: Cousin Ricky
Date: 30 Jan 2022 15:48:59
Message: <61f6f9bb@news.povray.org>
On 2022-01-30 12:01 (-4), jr wrote:
> 
> I had wanted to make an animation of the shapes rotating above the podium, but
> they .. orbit.   because the bounding box "method" doesn't work too well, I need
> to calculate the geometric centre (?) of a given 'blob'.  did some googling on
> the subject but have only found 2D solutions so far.  help please.

I have a couple of suggestions.  If you know the surface radius of each
component, you can create a union of spheres, and take the center of the
union.  Function RE_fn_Blob_surface_radius() in roundedge.inc can
calculate the surface radii.
  <https://github.com/CousinRicky/POV-RoundEdge>

Alternatively, you can go brute force with trace() or inside(), and take
the center of all the successful hits.  inside() would take longer than
trace(), due to being volumetric, but it would allow you to compute a
rough center of gravity, rather than just computing the center of the
extents.


Post a reply to this message

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