POV-Ray : Newsgroups : povray.general : Offset surface Server Time
18 Apr 2024 04:04:55 EDT (-0400)
  Offset surface (Message 21 to 30 of 33)  
<<< Previous 10 Messages Goto Latest 10 Messages Next 3 Messages >>>
From: Alain
Subject: Re: Offset surface
Date: 26 Jul 2018 14:26:29
Message: <5b5a1255$1@news.povray.org>
Le 18-07-20 à 12:09, Bald Eagle a écrit :
> clipka <ano### [at] anonymousorg> wrote:
> 
>> You /could/ just pretend that the parallel curve to an ellipsis is also
>> an ellipsis. AFAIK that's not true, but it could be sufficiently close
>> for your purposes.
> 
> I was initially under the impression that he could do this, but they're similar
> shapes, and therefore proportional - not constant distance.
> 
> I just took a scaled torus and then made a scaled copy - it's definitely not
> good.
> 
> I'm assuming Mike wants to make an atmosphere for the globe or something
> similar.
> 
>> In that case, all you'd have to do would be to scale the ellipsoid.
> I already suggested this, and was properly shot down.
> 
> 
> 
> 

If you want the atmosphere for an oblate, rotating, planet, then, it 
will be thicker over the equator and thinner at the poles.
So, a scalled up version of the original ellipsoid should be a prety 
good approximation.


Post a reply to this message

From: Tor Olav Kristensen
Subject: Re: Offset surface
Date: 28 Jul 2018 23:35:01
Message: <web.5b5d34ada78a37509cbeb2fe0@news.povray.org>
"Bald Eagle" <cre### [at] netscapenet> wrote:
>...
> Perhaps someone better versed in the parametric object can determine why I can't
> get it to render the full surface, since the exact same equations are used in
> the nested loop of spheres to correctly approximate the surface.
>...

>...
> // --------------------------------------- parametric surface --------------
> #declare Parallel = parametric {
>  function {EllipseX (u, v)}
>  function {EllipseY (u, v)}
>  function {EllipseZ (v)}
>  <0, pi>, <0, 2*pi>  // start, end (u,v)
>  contained_by {sphere {0, R}}
>  max_gradient 50
>  accuracy 0.005
>  precompute 5 x,y,z
>  texture {pigment{ color rgb <0, 1, 0>}}
> }
>
> //object {Parallel}

Try this:

parametric {
    function { a*cos(u)*cos(v) }
    function { b*cos(u)*sin(v) }
    function { c*sin(u) }
    <0, 0>, <2*pi, pi>
    contained_by {
        sphere { <0, 0, 0>, max(a, b, c) }
    }
    max_gradient max(a, b, c)
    accuracy 1e-6
    precompute 10 x, y, z
    pigment { color Green }
}

The main problem was your boundaries for u and v.

--
Tor Olav
http://subcube.com


Post a reply to this message

From: Bald Eagle
Subject: Re: Offset surface
Date: 29 Jul 2018 14:30:01
Message: <web.5b5e0776a78a3750458c7afe0@news.povray.org>
"Tor Olav Kristensen" <tor### [at] TOBEREMOVEDgmailcom> wrote:
> "Bald Eagle" <cre### [at] netscapenet> wrote:
> >...
> > Perhaps someone better versed in the parametric object can determine why I can't
> > get it to render the full surface, since the exact same equations are used in
> > the nested loop of spheres to correctly approximate the surface.


> The main problem was your boundaries for u and v.

Ah yes. that.   And my failure to see the obvious mistake.   :|

Some days.....

There's something that's a candidate for a parser warning.

Thanks - that's one less thing on my "I really need to go back and look at...."
list.


Post a reply to this message

From: Mike Horvath
Subject: Re: Offset surface
Date: 2 Aug 2018 18:26:42
Message: <5b638522$1@news.povray.org>
Are there isosurface functions for the hyperboloid? Both the saddle and 
hourglass versions. Thanks!


Mike


Post a reply to this message

From: Mike Horvath
Subject: Re: Offset surface
Date: 2 Aug 2018 18:37:01
Message: <5b63878d$1@news.povray.org>
On 8/2/2018 6:26 PM, Mike Horvath wrote:
> Are there isosurface functions for the hyperboloid? Both the saddle and 
> hourglass versions. Thanks!
> 
> 
> Mike

I need to create confocal ellipsoids and hyperboloids, with a cross 
section like in this image

https://commons.wikimedia.org/wiki/File:Elliptical_coordinates_grid.svg

Is this possible with isosurfaces? The parametric formulas are easier to 
deal with, but I don't think you can do offset curves with the 
parametrics. Am I wrong?


Mike


Post a reply to this message

From: Bald Eagle
Subject: Re: Offset surface
Date: 2 Aug 2018 20:20:01
Message: <web.5b639e8ea78a3750458c7afe0@news.povray.org>
Mike Horvath <mik### [at] gmailcom> wrote:
> On 8/2/2018 6:26 PM, Mike Horvath wrote:
> > Are there isosurface functions for the hyperboloid? Both the saddle and
> > hourglass versions.

I would probably have to say - of course there are.

> I need to create confocal ellipsoids and hyperboloids, with a cross
> section like in this image
>
> https://commons.wikimedia.org/wiki/File:Elliptical_coordinates_grid.svg

Looks pretty straightforward:
https://en.wikipedia.org/wiki/Confocal_conic_sections

> Is this possible with isosurfaces? The parametric formulas are easier to
> deal with, but I don't think you can do offset curves with the
> parametrics. Am I wrong?

Isosurfaces and (conventionally portrayed) parametrics are infinitely thin
shells of a surface.

to make lines , you'd need sphere-sweeps or similar.

But if you're looking to make nested shells (which I think is actually where
you're going with this, then you're going to want are the 3D shapes.

Presumably you want the ones that come standard with POV-Ray:
shapes.old
Insert menu:
Shapes2
Special shapes
http://www.f-lohmueller.de/pov_tut/addon/00_Basic_Templates/22_Shapes2/__index.htm

 f_ellipsoid(x,y,z, P0, P1, P2). f_ellipsoid generates spheres and ellipsoids.
Needs "threshold 1".
Setting these scaling parameters to 1/n gives exactly the same effect as
performing a scale operation to increase the scaling by n in the corresponding
direction.

    P0 : X scale (inverse)
    P1 : Y scale (inverse)
    P2 : Z scale (inverse)


Post a reply to this message

From: Bald Eagle
Subject: Re: Offset surface
Date: 2 Aug 2018 20:40:01
Message: <web.5b63a3cba78a3750458c7afe0@news.povray.org>
I haven't had to dig into this, but it's possible to make the hyperboloid while
specifying the foci, so I can't imagine the ellipsoid is any more difficult:

http://news.povray.org/povray.binaries.images/message/%3Cweb.591d8c269364765ac437ac910%40news.povray.org%3E/#%3Cweb.591
d8c269364765ac437ac910%40news.povray.org%3E


Looks like a Two-fer:
https://theinnerframe.wordpress.com/2016/08/01/quadrics/


Post a reply to this message

From: Mike Horvath
Subject: Re: Offset surface
Date: 3 Aug 2018 21:16:08
Message: <5b64fe58$1@news.povray.org>
On 8/2/2018 8:37 PM, Bald Eagle wrote:
> I haven't had to dig into this, but it's possible to make the hyperboloid while
> specifying the foci, so I can't imagine the ellipsoid is any more difficult:
> 
>
http://news.povray.org/povray.binaries.images/message/%3Cweb.591d8c269364765ac437ac910%40news.povray.org%3E/#%3Cweb.591
> d8c269364765ac437ac910%40news.povray.org%3E
> 
> 
> Looks like a Two-fer:
> https://theinnerframe.wordpress.com/2016/08/01/quadrics/
> 
> 
> 
> 

Since I'm trying to model ellipsoidal coordinate system, the formulas 
need to be parametric, so that I can make proper grid lines at the 
correct intervals and angles and so forth. You and Tor Olav did a great 
job of figuring out the method of creating offset surfaces of implicit 
functions. Would you mind trying the same for parametrics? Thanks.


Mike


Post a reply to this message

From: Bald Eagle
Subject: Re: Offset surface
Date: 4 Aug 2018 08:00:01
Message: <web.5b6594b7a78a3750458c7afe0@news.povray.org>
Mike Horvath <mik### [at] gmailcom> wrote:

> Since I'm trying to model ellipsoidal coordinate system, the formulas
> need to be parametric, so that I can make proper grid lines at the
> correct intervals and angles and so forth. You and Tor Olav did a great
> job of figuring out the method of creating offset surfaces of implicit
> functions. Would you mind trying the same for parametrics? Thanks.

Surely I'm missing something.
(It's likely - as it's Saturday morning, and I'm only 1 cup into it)

You, Mike Horvath, are mikh2161, posfan12 as well as (but not limited to)
SharkD.
The elliptic and hyperbolic curves in the Geogebra file were made by you.
(10 years ago)
When you click on the Geogebra file link, you get the drawing on the right, and
the formulas on the left.

So all you need to do is make the same thing in 3D - a series of nested shells
(with thickness)

Those shells are proportional, not constant-thickness, correct?
So they're just scaled versions of each other.
And ellipsoids are just scaled spheres.

Do you want the GRID, or do you want to be able to place "points" on the grid?
Are you using standard elliptic math, or some specialized geodectic system with
an equation that only you have worked out and know the form of?

Because you can mix isosurface shells and parametrically placed points.
The solution of the implicit and parametric equations are exactly the same.
They give you exactly the same set of points in space.


I have a hard time (efficiently) programming using a ouijaboard instead of a
keyboard, and the only chicken I have is in the freezer.
If I'm lucky, I likely have another 15 minutes free before RL starts pulling me
away.
Ready... set.... GO!

Fully stating the exact goal in no uncertain terms helps define what needs to be
done, so that the solution is the one desired, not one that's close, but still
completely useless.  You probably can't use a 2015 Toyota starter in a 1958
Ford, but it would take the same amount of effort to deliver you either part.

Perhaps you could freely share some completed SDL that's implementing the
solutions already given to you to shed some light on the mystery.
"I need to get from HERE to THERE, in order to do exactly THIS (and NOT _that_)"

Please, and Thank You.


Post a reply to this message

From: Mike Horvath
Subject: Re: Offset surface
Date: 4 Aug 2018 10:31:46
Message: <5b65b8d2$1@news.povray.org>
On 8/4/2018 7:57 AM, Bald Eagle wrote:
> Mike Horvath <mik### [at] gmailcom> wrote:
> 
>> Since I'm trying to model ellipsoidal coordinate system, the formulas
>> need to be parametric, so that I can make proper grid lines at the
>> correct intervals and angles and so forth. You and Tor Olav did a great
>> job of figuring out the method of creating offset surfaces of implicit
>> functions. Would you mind trying the same for parametrics? Thanks.
> 
> Surely I'm missing something.
> (It's likely - as it's Saturday morning, and I'm only 1 cup into it)
> 
> You, Mike Horvath, are mikh2161, posfan12 as well as (but not limited to)
> SharkD.

Correct.

> The elliptic and hyperbolic curves in the Geogebra file were made by you.
> (10 years ago)
> When you click on the Geogebra file link, you get the drawing on the right, and
> the formulas on the left.
> 
> So all you need to do is make the same thing in 3D - a series of nested shells
> (with thickness)
> 
> Those shells are proportional, not constant-thickness, correct?
> So they're just scaled versions of each other.
> And ellipsoids are just scaled spheres.
> 
> Do you want the GRID, or do you want to be able to place "points" on the grid?
> Are you using standard elliptic math, or some specialized geodectic system with
> an equation that only you have worked out and know the form of?
> 

I just want the grid. So, thin lines/curves of constant thickness, like 
the curves in this collection.

http://lib.povray.org/searchcollection/index2.php?objectName=ShapeGrid&version=1.12&contributorTag=SharkD

I may expand the collection to include more shapes, and simplify some of 
the existing ones; and the parametric object formulas are a natural 
(albeit slow) fit for this purpose.




> Because you can mix isosurface shells and parametrically placed points.
> The solution of the implicit and parametric equations are exactly the same.
> They give you exactly the same set of points in space.
> 
> 

Yes, placing points parametrically is not hard.


Thanks.

Mike


Post a reply to this message

<<< Previous 10 Messages Goto Latest 10 Messages Next 3 Messages >>>

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