3dStudent
asked on
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(Sende r: 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
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..
__________________________
procedure TForm3.FormMouseDown(Sende
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;
__________________________
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
Use OpenGL. It should be simple
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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.
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.