POV-Ray : Newsgroups : povray.newusers : Slicing an ellipsoid Server Time
24 Nov 2024 15:53:16 EST (-0500)
  Slicing an ellipsoid (Message 1 to 10 of 12)  
Goto Latest 10 Messages Next 2 Messages >>>
From: Francesco
Subject: Slicing an ellipsoid
Date: 3 Nov 2007 04:40:00
Message: <web.472c41bce1cfba5173fa22050@news.povray.org>
I need to generate only a portion of an ellipsoid (a surface, not a solid). The
best way to proceed is by declaring it as a difference between an ellipsoid and
a box? Thanks in advance for help. I am trying to learn by myself but I am
afraid it will require a lot of time, so any help is useful.

Francesco


Post a reply to this message

From: kurtz le pirate
Subject: Re: Slicing an ellipsoid
Date: 3 Nov 2007 05:53:33
Message: <kurtzlepirate-BF1444.11533303112007@news.povray.org>
In article <web.472c41bce1cfba5173fa22050@news.povray.org>,
 "Francesco" <nas### [at] gmailcom> wrote:

> I need to generate only a portion of an ellipsoid (a surface, not a solid). 
> The
> best way to proceed is by declaring it as a difference between an ellipsoid 
> and
> a box? Thanks in advance for help. I am trying to learn by myself but I am
> afraid it will require a lot of time, so any help is useful.
> 
> Francesco

or a plane

-- 
klp


Post a reply to this message

From: Francesco
Subject: Re: Slicing an ellipsoid
Date: 3 Nov 2007 06:10:01
Message: <web.472c569770e4ee4e73fa22050@news.povray.org>
"Francesco" <nas### [at] gmailcom> wrote:
> I need to generate only a portion of an ellipsoid (a surface, not a solid). The
> best way to proceed is by declaring it as a difference between an ellipsoid and
> a box?

It seems to me I need to use isosurface. I am studying them :)


Post a reply to this message

From: Le Forgeron
Subject: Re: Slicing an ellipsoid
Date: 3 Nov 2007 06:23:54
Message: <472c5a4a$1@news.povray.org>
Le 03.11.2007 12:08, Francesco nous fit lire :
> "Francesco" <nas### [at] gmailcom> wrote:
>> I need to generate only a portion of an ellipsoid (a surface, not a solid). The
>> best way to proceed is by declaring it as a difference between an ellipsoid and
>> a box?
> 
> It seems to me I need to use isosurface. I am studying them :)

Which portion of an ellipsoid do you need ?

If it's a 2D surface, intersection with a couple of parallele plane
should be fine.
Or direct usage of an ellipse.

If it's part of the 3D surface, it obviously depend on which part of
the ellipsoid you want.
CSG is one way.
Parametric another.
And isosurface also... as well as meshes, smooth triangles and so on.

-- 
The superior man understands what is right;
the inferior man understands what will sell.
-- Confucius


Post a reply to this message

From: Thorsten Froehlich
Subject: Re: Slicing an ellipsoid
Date: 3 Nov 2007 06:28:59
Message: <472c5b7b@news.povray.org>
Francesco wrote:
> "Francesco" <nas### [at] gmailcom> wrote:
>> I need to generate only a portion of an ellipsoid (a surface, not a solid). The
>> best way to proceed is by declaring it as a difference between an ellipsoid and
>> a box?
> 
> It seems to me I need to use isosurface.

No, why? CSG is the way to go.

	Thorsten


Post a reply to this message

From: Francesco
Subject: Re: Slicing an ellipsoid
Date: 3 Nov 2007 07:45:01
Message: <web.472c6cd770e4ee4e73fa22050@news.povray.org>
Thorsten Froehlich <tho### [at] trfde> wrote:

> No, why? CSG is the way to go.
>
>  Thorsten

It seemed to me CSG was for solid construction, while I need a curve surface
(generated by an ellipse).


Post a reply to this message

From: Mike Williams
Subject: Re: Slicing an ellipsoid
Date: 3 Nov 2007 07:49:27
Message: <3hB+HFAW3GLHFw6h@econym.demon.co.uk>
Wasn't it Francesco who wrote:
>I need to generate only a portion of an ellipsoid (a surface, not a solid). The
>best way to proceed is by declaring it as a difference between an ellipsoid and
>a box? Thanks in advance for help. I am trying to learn by myself but I am
>afraid it will require a lot of time, so any help is useful.

Using a difference makes it look like a solid rather than a surface. Try
clipped_by instead of difference.

Note that you can make an ellipsoid by scaling a sphere.

sphere {0,2
  scale <2,1,0.5>
  clipped_by {box {<-5,-5,-0.2><5,5,0.7>}}
  pigment {rgb 1}
}

-- 
Mike Williams
Gentleman of Leisure


Post a reply to this message

From: Francesco
Subject: Re: Slicing an ellipsoid
Date: 3 Nov 2007 07:55:00
Message: <web.472c6dda70e4ee4e73fa22050@news.povray.org>
Le Forgeron <jgr### [at] freefr> wrote:
> Le 03.11.2007 12:08, Francesco nous fit lire :
> > "Francesco" <nas### [at] gmailcom> wrote:
> >
> > It seems to me I need to use isosurface. I am studying them :)
>
> Which portion of an ellipsoid do you need ?
>
> If it's a 2D surface, intersection with a couple of parallele plane
> should be fine.
> Or direct usage of an ellipse.
>

I would design a curve surface generated by 1/4 ellipse rotating for 10 degrees.


Post a reply to this message

From: Mike Williams
Subject: Re: Slicing an ellipsoid
Date: 3 Nov 2007 09:05:54
Message: <6AftvCAs7HLHFwpx@econym.demon.co.uk>
Wasn't it Francesco who wrote:
>
>I would design a curve surface generated by 1/4 ellipse rotating for 10 degrees.

Perhaps something like this

sphere {0,1
  scale <2,1,1>
  clipped_by {plane {-y,0}}
  clipped_by {plane {z,0}}
  clipped_by {plane {-z,0} rotate <0,10,0>}
  pigment {rgb 1}
}


-- 
Mike Williams
Gentleman of Leisure


Post a reply to this message

From: Francesco
Subject: Re: Slicing an ellipsoid
Date: 3 Nov 2007 09:50:00
Message: <web.472c899a70e4ee4e73fa22050@news.povray.org>
Mike Williams <nos### [at] econymdemoncouk> wrote:
> Perhaps something like this
>
> sphere {0,1
>   scale <2,1,1>
>   clipped_by {plane {-y,0}}
>   clipped_by {plane {z,0}}
>   clipped_by {plane {-z,0} rotate <0,10,0>}
>   pigment {rgb 1}
> }

That is exactly what I was trying to do! Thanks a lot Mike :)) Simple and
powerful commands. Just a question: you make rotating the clipping plane in
order to exclude some parts to the cut. Is it right?

Francesco


Post a reply to this message

Goto Latest 10 Messages Next 2 Messages >>>

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