2d to 3d

Hello,
As part of a project i have been asked to create a program to produce 3d objects from 2 dimentional profiles via a volume sweep.

Can you tell me how to do this in Delphi, the code i am using to create the 2d line drawings is below..

_____________________________start_________________________________

procedure TForm3.FormMouseDown(Sender: TObject; Button: TMouseButton;
  Shift: TShiftState; X, Y: Integer);
begin

  inc(numPoints2d);
 
      if numPoints2d > 50 then
      ShowMessage ('Too many points');

    points2d[numPoints2d] := point(X, Y);
      canvas.lineTo(x, y);

     end;

______________________________End__________________________________________

I am storing the points data in an array

points2d   : array[1..50] of Tpoint;

In addition to the above i will need to draw a 3d sphere but i have no idea how to do this, can you help?

Thanking you in advance

Mark Bowles
3dStudentAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

SlavakCommented:
Use OpenGL. It should be simple

 
0
SlavakCommented:
Additional point:

Youn can use Polygon function to draw this series of lines.
It should be faster.

regards.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
CleanupPingCommented:
3dStudent:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Delphi

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.