TriSurface creation

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Thomas
Newbie
Newbie
Posts: 1
Joined: Fri Nov 15, 2002 12:00 am

TriSurface creation

Post by Thomas » Fri Jan 02, 2004 11:16 pm

I have measuring points of a surface that I try to visualise with trisurface. My problem is that the trisurface are creating surfaces beetween points where I don't want to have a surface.

Is there a way to set some roules for how the surface shall be created ?
( roules like: if the distance beetween points are more than ... don't create surface beetween them ) :?:

Marjan
Site Admin
Site Admin
Posts: 745
Joined: Fri Nov 07, 2003 5:00 am
Location: Slovenia
Contact:

Post by Marjan » Sat Jan 03, 2004 12:19 pm

Hi, Thomas.

The TTriSurfaceSeries uses Voroni algorithm to construct surface by creating series of triangles. The internal algorithm inherits all good and bad things about this algorithm. In most cases the algorithm works fine, but sometimes (as in your case, I suppose :( ) it fails.
Is there a way to set some roules for how the surface shall be created ?
( roules like: if the distance beetween points are more than ... don't create surface beetween them )
Yes, but only by changing existing TTriSurfaceSeries surface construction algorithm. Or alternatively, by deriving completely new series type and overriding surface drawing algorithm. In both cases, you'll need TeeChart source code (as reference) and surface drawing algorithm.
Marjan Slatinek,
http://www.steema.com

Post Reply