Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Code Snippets / Draw 3d ellipses with Cloggy's d3dfunc plugin

Author
Message
Philip
22
Years of Service
User Offline
Joined: 15th Jun 2003
Location: United Kingdom
Posted: 12th Mar 2006 17:07
Just as with the circle3d command which I posted a few days ago, here is some code to draw a 3d ellipse. Cloggy's plugin is the d3dfunc plugin that appears in the program announcements board. The code below will be replaced by a native command in the next version of the plugin.

There is a more elegant way of drawing a 3d ellipse using two foci vectors rather than the sin/cos parametric equations I've used but I quite like this method. Its got soul.



Cheer if you like bears! Cheer if you like jam sandwiches!
Quote of the week: "... I started learning DBP while I was a Satellite Network Controller for the US Army Space Command ... "
Essence
23
Years of Service
User Offline
Joined: 12th Oct 2002
Location: The Netherlands
Posted: 13th Mar 2006 09:45
Darn, you really seem to be in love with this D3D plugin
Great work though
Keep it up

Philip
22
Years of Service
User Offline
Joined: 15th Jun 2003
Location: United Kingdom
Posted: 13th Mar 2006 23:18
I'm helping Cloggy and SilentS to add functionality to it.

Cheer if you like bears! Cheer if you like jam sandwiches!
Quote of the week: "... I started learning DBP while I was a Satellite Network Controller for the US Army Space Command ... "
Morcilla
23
Years of Service
User Offline
Joined: 1st Dec 2002
Location: Spain
Posted: 15th Mar 2006 12:59
I know there has been people looking for 3d ellipses, and I know by self experience how difficult they can be to develop, so this code is very remarkable.

They bad thing about 3d ellipses is that they are not easily understood. Also, several parameters can be choosen to describe them, and you have to understand these parameters first!

Many people won't know how to feed the function, as they cannot find out the normal vector of the plain of the ellipse, not to talk about the angle, which I suppose defines how the major axis of the ellipse is oriented in the ellipse plane.

But hey, maybe they should learn some euclidean geometry before using such things under control.
Philip
22
Years of Service
User Offline
Joined: 15th Jun 2003
Location: United Kingdom
Posted: 16th Mar 2006 00:58
I understand and agree with all your comments Morcilla. The problem is that its very difficult to describe an ellipse in plain English without some interesting maths being involved. Hence the reason why my code above is so heavily commented by me.

The only thing that I think may really throw people out is the normal of the plane on which the ellipse sits. For that, all I can say to anyone is to read my vector tutorials.

Cheer if you like bears! Cheer if you like jam sandwiches!
Quote of the week: "... I started learning DBP while I was a Satellite Network Controller for the US Army Space Command ... "
Cloggy
21
Years of Service
User Offline
Joined: 31st Oct 2004
Location: Rayleigh, Essex
Posted: 16th Mar 2006 01:10
Philip,

Maybe once the changes have been made to my plugin, we could write a DBP application to go along with your tutorials and work as a visual aid in explaining vectors.

I think it would help alot of people to be able to visualise in 3d what vectors are about.

Cheers,

Cloggy
Philip
22
Years of Service
User Offline
Joined: 15th Jun 2003
Location: United Kingdom
Posted: 16th Mar 2006 01:37
I'd love to but in two words: free time.

I just don't have any. I'm horribly busy at work at the mo, hence the reason why I'm posting at 00:35 on a Thursday morning here in London.

Cheer if you like bears! Cheer if you like jam sandwiches!
Quote of the week: "... I started learning DBP while I was a Satellite Network Controller for the US Army Space Command ... "
Cloggy
21
Years of Service
User Offline
Joined: 31st Oct 2004
Location: Rayleigh, Essex
Posted: 16th Mar 2006 10:30
What I was planning was to convert your tutorials into a DBP executable that would show the vectors in a 3d window.

I will code everything and maybe just occasionally send you copies of the code/exe for you to give the once over. It's going to be something I'll be doing over a long period of time as I don't have alot of free time either.

Cheers,

Cloggy
JerBil
22
Years of Service
User Offline
Joined: 8th May 2004
Location: Somewhere along the Z axis...
Posted: 16th Mar 2006 16:21
How about putting all Philip's d3d code in one sticky?

-JerBil

Ad Astra Per Asper
Philip
22
Years of Service
User Offline
Joined: 15th Jun 2003
Location: United Kingdom
Posted: 17th Mar 2006 01:25
Better to keep it separated. It helps anyone searching for it.

Cheer if you like bears! Cheer if you like jam sandwiches!
Quote of the week: "... I started learning DBP while I was a Satellite Network Controller for the US Army Space Command ... "

Login to post a reply

Server time is: 2026-06-11 11:46:34
Your offset time is: 2026-06-11 11:46:34