Hi Clement - that feels like progress anyway- thanks. The developer (Tim) found some inefficiencies in the interaction of the dialog and the calculation code that he was able to clean up in this latest. He guesses the quicker updates after the initial one is due to memory already being allocated. I do not know about the disappearing dialog though - that is odd.
@pascal@tim With the new Commands.rhp installed the initial evaluationof my test file by PointsDeviation in V6 is 12 seconds, compared to 50 seconds previously, so it’s a major improvement. Still not as fast as V5 which is 8 seconds.
Updates in V6 now takes about 3 seconds after Apply is clicked, almost as fast as updates in V5.
There is likely to be a little bit of speed loss because of the extra layer of “stuff” everything goes through when we ported this to dotnet. Just an fyi on that. We didn’t do that simply for the sake of change and we didn’t do that because it was fun (well, kind of, something different at least), it allows us to use all of the same code on both the Windows and Mac platforms.
i’ve found one issue with the _PointDeviation display, if i zoom close to an area to inspect it, points are shown in the viewport which are clearly behind the camera. This must be a bug. I can send an example privately if you cannot reproduce it.
Since i am spending hours using this command, i would like to express a few more wishes:
The point deviation display is using a dynamic preview without depth buffering which makes it sometimes difficult to evaluate the results, especially when comparing parts which are thin. Would it be possible to optionally display the points with depth buffering ? (Something like CullControlPolygon, so i can only see the outside)
When the End button is pressed, the command displays additional information in the CommandLine eg:
Average distance: 0.009016009
Median distance: 0.004664655
Standard deviation: 0.01326047
Maximum distance: 0.1571361
Minimum distance: 9.982861E-08
Would it be possible to include the min, max and average distance in the dialog while the command is running ?