Surface3D

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
tb
Newbie
Newbie
Posts: 11
Joined: Fri Nov 15, 2002 12:00 am
Location: Aarhus, Denmark
Contact:

Surface3D

Post by tb » Mon Sep 27, 2004 7:37 pm

Does anybody have an example of using the Surface3D of the TDraw3D canvas ? I looked through the demos and googled it, but didn't come up with anything.

-regards,

-Torben

Pep
Site Admin
Site Admin
Posts: 3303
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Tue Sep 28, 2004 7:37 am

Hi Torben,

from sources :

Code: Select all

Procedure TTeeCanvas3D.Surface3D( Style:TTeeCanvasSurfaceStyle;                                   SameBrush:Boolean;                                   NumXValues,NumZValues:Integer;                                   CalcPoints:TTeeCanvasCalcPoints );
begin
  { not implemented in GDI mode. (Use TeeOpenGL) }
end;
This method is not implemented for TTeeCanvas3D. Instead, you should use TGLCanvas.Surface3D method ( a bit complicated, but it should work), where :

Style = TTeeCanvasSurfaceStyle=(tcsSolid,tcsWire,tcsDot);
CalcPoints = TTeeCanvasCalcPoints=Function( x,z:Integer; Var P0,P1:TPoint3D;
Var Color0,Color1:TColor):Boolean of object;

tb
Newbie
Newbie
Posts: 11
Joined: Fri Nov 15, 2002 12:00 am
Location: Aarhus, Denmark
Contact:

Post by tb » Tue Sep 28, 2004 11:55 am

Thanks, I'll have a look :-D

-Torben

Post Reply