"Bald Eagle" <cre### [at] netscape net> wrote:
> yesbird <sya### [at] gmail com> wrote:
>
> > I can imagine following application: we have volume, constrained by low-
> > poly mesh and want to fill it with spheres with radiuses from Rmin to
> > Rmax, achieving randomized, natural-like form.
>
> Well, that of course suggests that there's an analogous spherical method. I'll
> have to look and see...
https://arxiv.org/ftp/arxiv/papers/1506/1506.02776.pdf
I have no idea where the crazy "sphere parametrization" equations come from, but
I used _normal_ equations, and fixed a typo in the last line of code (needs
-'s), and got that to work.
Render is the test data in the table of the paper.
Post a reply to this message
Attachments:
Download 'leastsquaressphere1.png' (59 KB)
Preview of image 'leastsquaressphere1.png'

|