Affiliates
image
image
image
image
---------------------
image
Navigation :: The Cut Throats
FAQ :: Search :: Memberlist :: Usergroups :: Register :: Profile :: Log in to check your private messages :: Log in
Log in
Username:    Password:      Log me on automatically each visit    
Combining parametric equations?

 
Post new topic   Reply to topic    The Cut Throats Forum Index -> Crow's Nest
View previous topic :: View next topic  
Author Message
Messy Recipe
El Gran Capitán
<b>El Gran Capitán</b>


Joined: 13 Mar 2005
Location: Inter Veritates
PostPosted: Fri Mar 30, 2012 10:16 pm 
Post subject: Combining parametric equations?
Top Reply with quote

I have some old equations from Calc 3 MATLAB exercises, that form a coffee mug:

User-posted image

It's two pieces, each of which has separate parametric equations for x,y,z.

The main part is a cylinder given by:

Code:
x = cos(s)
y = sin(s)
z = t

For:
s ∈ [0, 2π]
t ∈ [-2, 2]



The handle is given by:

Code:
x = cos(s) * ( cos(t)/4 + 1 ) + 1
y = sin(t)/4
z = sin(s) * ( cos(t)/4 + 1 ) + 1/2

For:
s ∈ [-π/2, π/2]
t ∈ [0, 2π]



...Is it possible to combine the three equations for each into two equations of the form z=some function of x,y?
_________________
ABC News wrote:
Birds can disable planes, Ostrom said, by flying into the engines and shutting them down.
Back to top
View user's profile Send private message Send e-mail
Erwin Rommel
Elite
Elite


Joined: 02 Aug 2005
PostPosted: Fri Mar 30, 2012 11:24 pm 
Post subject:
Top Reply with quote

Just pasting surfaces together does not, in general, give you something smooth. So there really is not going to be a nice(generalizable) way to do it. There is definitely a notion of smoothly pasting surfaces together, but I really really do not want to think about the formulas involved. When we got to that part of my differential geometry class, we used mathematical tricks to show that it worked without worrying about anything specific. (of course, we were talking about higher dimensional analogues, but the idea is the same)

Basically, the idea here is that any set of parametric equations with smooth functions should generally yield a "nice" surface. (Not smooth in general, but the bad places are sort of very specific). Just pasting things together does not give you a "nice" surface in general.

Of course, you could always set up the parametric equations piece-wise, but that would be a real headache here.

Also, you might want to add something for the bottom like:

Code:
x = s
y = 0
z = t

For:
s^2+t^2<1


Otherwise it's not very good for holding fluids .Smile

edit:

You are also going to want to cut holes in your cylinder to accommodate where it is joined to the handle. Parametrizing that is going to be a bitch.
_________________
-=|CT|=-Descartes
Back to top
View user's profile Send private message Xfire Username
Messy Recipe
El Gran Capitán
<b>El Gran Capitán</b>


Joined: 13 Mar 2005
Location: Inter Veritates
PostPosted: Fri Mar 30, 2012 11:58 pm 
Post subject:
Top Reply with quote

Not quite sure I follow why I'd need to cut holes and such... I don't really care how the two pieces fit together, just if they can each, individually, be defined by a single equation.
_________________
ABC News wrote:
Birds can disable planes, Ostrom said, by flying into the engines and shutting them down.
Back to top
View user's profile Send private message Send e-mail
Erwin Rommel
Elite
Elite


Joined: 02 Aug 2005
PostPosted: Sat Mar 31, 2012 12:31 am 
Post subject:
Top Reply with quote

If you don't cut holes, the result is not a surface. In mathematical jargon, a surface needs to be a two-dimensional topological manifold. What this means is that every point on the surface needs to "locally" look like two dimensional space.

Think of a sphere. This is a surface. If you are moving around the sphere, it feels a lot like moving around in two dimensional space. Think of drawing a map of the Earth here. You have an notion of "up", "down", "left", and "right", but only those. If you think about it, these notions actually correspond to your parametrization of the surface (increasing s corresponds to moving up, and so on.) But it clearly isn't actually a copy of R^2. If you keep going "up" long enough, you will get back to the same place. However, what we care about is a local property, so that doesn't matter. (I'm not sure how much math you have - but you can make this more rigorous by talking about the space of tangent vectors at each point. I'm simply saying that this space is a two-dimensional vector space at each point)

Now, you have two surfaces - a cylinder and a half torus. The entire previous paragraph can be applied to them. Great - they each have their own notions of "up", "down", and so on. The problem is what happens when you join them. Look at a point where the two surfaces connect. If you are "living at" this point, you can move around two-dimensionally in the cylinder and two-dimensionally in the half-torus. At these points, it does not feel like two dimensional space since you have more freedom in your movement. By cutting out the holes, you are making it feel two-dimensional there. There is a problem with smoothness too, but that is another issue entirely.

***

Parametrization of a (2 dimensional) surface in 3 dimensional space can be thought of as a (nice) map f:U -> R^3, where U is a nice piece of R^2. Think of s as representing your x coordinate in R^2 and t as representing y.

In other words, you're taking some nice chunk of two dimensional space and telling it to sit inside of three dimensional space in a particular way. The result should always be a surface (possibly with self-intersection).
_________________
-=|CT|=-Descartes
Back to top
View user's profile Send private message Xfire Username
Legomaniac
Deckswab
Deckswab


Joined: 28 Jun 2011
Location: United States - Montana
PostPosted: Sat Mar 31, 2012 1:10 am 
Post subject:
Top Reply with quote

SKINS!!

http://tinyurl.com/6mvfeoq
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    The Cut Throats Forum Index -> Crow's Nest All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB
Shoutbox
Messy Recipe:  deleted all the last couple years worth of bots & managed to preserve the two real people that have posted since then xD

so many DELETED spam posts now tho that I think I'll need to automate cleaning those moreso than i already have

Messy Recipe:  sry about the bots :( been busy & havent gotten round to doing the usual cleanup

need to prolly stick this behind cloudflare or something

Drunken Monkey:  doing well, been building a hobby ranch of my own, got married, no kids, only dogs, sheep and a horse

Comradekil:  so anyway, i wonder how everyone's lives all progressed.. who's in jail? who's grandparents now.. ha life
Drunken Monkey:  and yes....i do miss 1942 aswell, i honestly think it is what drove me to get a M1 garand in real live, and is still my most used rifle
Drunken Monkey:  bots are getting silly
Comradekil:  Sup dudes
Messy Recipe:  the BAR-1918 always felt so good in that game
Messy Recipe:  I miss vanilla 1942 as much as Pirates... need to see if the Origin version (or even original) still has anyone playing sometime
Stealth:  Hello all! Head to the lounge and post a memory!
Stealth:  I saw a BF1942 fraps video of a guy jumping out of a plane and RPG'd another plane. I immediately came here for nostalgia. Miss you all.
Messy Recipe:  I've not tried Sea of Thieves... kinda was bummed to learn its servers don't allow many simultaneous players. gimme 32v32 galleon fights
Messy Recipe:  oh gosh I really need to automate the spambot removal instead of making myself do it by hand don't I -.-
Drunken Monkey:  merry Christmas you lot
[BB]Piccolo:  Anybody playing Sea of Thieves?
[BB]Piccolo:  I'm amazed I actually still knew my login. We Black Buccaneers certainly had a special relationship with you Cut Throats. Nothing like a fierce rivalry to make the battlefield exciting, eh? :)

Username:
Password:
Auto-Login