Solved

2d to 3d

Posted on 2003-03-28
Medium Priority
151 Views
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?

Mark Bowles
0
Question by:3dStudent
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

• Help others & share knowledge
• Earn cash & points
• 2

LVL 3

Expert Comment

ID: 8233258
Use OpenGL. It should be simple

0

LVL 3

Accepted Solution

Slavak earned 300 total points
ID: 8233261

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

regards.
0

Expert Comment

ID: 9316562
3dStudent:
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
0

Featured Post

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
Suggested Courses
Course of the Month12 days, 4 hours left to enroll