Delaunay triangulation : PAS Code to Xbase++
Posted: Thu Mar 10, 2016 10:15 pm
based on include PAS Source i have translate it into Xbase++ Class Code.
it do work fine with 100 Point but using 1000 Points it take > 4 Hour ( FX8350 : Xbase++ using 1 CPU of 8 ) this is not while Xbase++ is so slow ... it is the "simple" Logic of the PAS Code
to find 1st Ribs PAS Source have 3 Loops -> 1000*1000*1000 so you can imagine how long it take.
after calculate Triangle you can use Color of each Point to create a Texture with GraGradient ! Note :
this work will normal be done by Grafic Card using DirectX which is 1000 % faster than GDI/GDI+
Syntax : DLT.EXE <cNumPoints> // default 100
if you have "save" last Calculation it will load from DBF at Start and "Repaint Ribs" will be enable.
it do work fine with 100 Point but using 1000 Points it take > 4 Hour ( FX8350 : Xbase++ using 1 CPU of 8 ) this is not while Xbase++ is so slow ... it is the "simple" Logic of the PAS Code
to find 1st Ribs PAS Source have 3 Loops -> 1000*1000*1000 so you can imagine how long it take.
after calculate Triangle you can use Color of each Point to create a Texture with GraGradient ! Note :
this work will normal be done by Grafic Card using DirectX which is 1000 % faster than GDI/GDI+
Syntax : DLT.EXE <cNumPoints> // default 100
if you have "save" last Calculation it will load from DBF at Start and "Repaint Ribs" will be enable.