POV-Ray : Newsgroups : povray.newusers : meniscus Server Time
30 Jul 2024 14:29:17 EDT (-0400)
  meniscus (Message 1 to 5 of 5)  
From: Daniel Hulme
Subject: meniscus
Date: 11 May 2004 09:01:17
Message: <20040511140116.12eed2ef@dh286.pem.cam.ac.uk>
I have a glass with some liquid in it. The glass is a Bezier spline
lathe, and the liquid is a slightly smaller lathe intersected with a
horizontal plane. Now I know I could put a meniscus on the surface with
a torus and some more CSG, but since the liquid is a lathe and I don't
know its diameter at the height I want the surface, I don't know where
to put the torus. So, is there some way to get PoV to evaluate the
Bezier cubic at the desired height and use this to place the torus; even
better, is there an easier way to do the meniscus?

Thanks in advance,
Daniel

-- 
The most important thing about a programming language is the name. A
language will not succeed without a name. I have recently invented a
very good name and I am looking for a suitable language.  -- Knuth
http://people.pwf.cam.ac.uk/dh286/publickey.asc  .:.  keyid 885b170d


Post a reply to this message

From: Warp
Subject: Re: meniscus
Date: 11 May 2004 09:12:11
Message: <40a0d12b@news.povray.org>
Daniel Hulme <pov### [at] doublezerouklinuxnet> wrote:
> So, is there some way to get PoV to evaluate the
> Bezier cubic at the desired height and use this to place the torus;

  Not AFAIK, but you can use trace() to get the location of the surface
of the lathe at a certain height and use that.

> even
> better, is there an easier way to do the meniscus?

  Probably not (at least not with POV-Ray SDL).

-- 
#macro N(D)#if(D>99)cylinder{M()#local D=div(D,104);M().5,2pigment{rgb M()}}
N(D)#end#end#macro M()<mod(D,13)-6mod(div(D,13)8)-3,10>#end blob{
N(11117333955)N(4254934330)N(3900569407)N(7382340)N(3358)N(970)}//  - Warp -


Post a reply to this message

From: Daniel Hulme
Subject: Re: meniscus
Date: 11 May 2004 12:28:54
Message: <20040511172854.2e346194@dh286.pem.cam.ac.uk>
>   Not AFAIK, but you can use trace() to get the location of the
>   surface of the lathe at a certain height and use that.
Thanks, that works great. Now I just have to get the media to do
sensible things.

Daniel

-- 
The most important thing about a programming language is the name. A
language will not succeed without a name. I have recently invented a
very good name and I am looking for a suitable language.  -- Knuth
http://people.pwf.cam.ac.uk/dh286/publickey.asc  .:.  keyid 885b170d


Post a reply to this message

From: Chris Johnson
Subject: Re: meniscus
Date: 19 May 2004 09:46:11
Message: <40ab6523$1@news.povray.org>
dh286 eh? I'm cgj20, a Churchill mathmo. Know of any other Cambridge pov-ray
users?

-Chris


Post a reply to this message

From: Daniel Hulme
Subject: Re: meniscus
Date: 19 May 2004 12:18:04
Message: <20040519171804.376173e8@dh286.pem.cam.ac.uk>
> dh286 eh? I'm cgj20, a Churchill mathmo. Know of any other Cambridge
> pov-ray users?
Mark MacKey apparently came to do a PhD in Chemistry, but I emailed him
a few months back and never got a reply. Some of his stuff is at
www.swallowtail.org/gallery/

There must be some more about somewhere...

Daniel

-- 
The most important thing about a programming language is the name. A
language will not succeed without a name. I have recently invented a
very good name and I am looking for a suitable language.  -- Knuth
http://people.pwf.cam.ac.uk/dh286/publickey.asc  .:.  keyid 885b170d


Post a reply to this message

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