miauu
@miauu
New Member
Joined: Feb 14, 2024
Topics: 122 / Replies: 1116
Reply
RE: Find visual center of contour/polygon

2021-10-15 21_19_36.png623x783 23.7 KB Best Distance for very high precision is very close to the precision of 0.1, not only for this shape.

3 years ago
Forum
Reply
RE: Find visual center of contour/polygon

And this is also interesting. The lasts shape which I posted above, where the time for the js version was: precision:0.1 time:56803 heap:80946052L No…

3 years ago
Forum
Reply
RE: Find visual center of contour/polygon

Yep. Maybe I am doing something wrong. Again. When I set the precision to 100 000 and h = cellSize/2.0 I get the same results – time is 0, the poi…

3 years ago
Forum
Reply
RE: Find visual center of contour/polygon

denisT: h = cellSize/8.0 The time is 0, the result is the same.

3 years ago
Forum
Reply
RE: Find visual center of contour/polygon

denisT: The precision is the half of maximum distance of “the most promising cell” Do you redefine the precision every time when the cells are s…

3 years ago
Forum
Reply
RE: Find visual center of contour/polygon

Thank you. denisT: Why do you need so high precision? Just for testing. There is not a big difference. On this image the yellow point is fo…

3 years ago
Forum
Reply
RE: Find visual center of contour/polygon

Thank you. But did you measured the probes and the time to find the point with precision of 0.1? I wonder how fast is compiled c++ code.

3 years ago
Forum
Reply
RE: Find visual center of contour/polygon

I have a question about this while loop. qsort cells cellSorter while cells.count != 0 do ( — pick the most promising cell from the queue …

3 years ago
Forum
Reply
RE: Find visual center of contour/polygon

denisT: I told above that the ring (array of spline points) must be closed for last version. It’s much faster for MXS to not do condition in loops. …

3 years ago
Forum
Reply
RE: Find visual center of contour/polygon

Serejah: here’s a .net playground. you can put your values to Main method to test if it really works Serejah, thank you for this site. I have…

3 years ago
Forum
Reply
RE: Find visual center of contour/polygon

Denis, I have found something strange. The yellow point is created from the first code which you posted. The red line is created from the last code. …

3 years ago
Forum
Reply
RE: Find visual center of contour/polygon

denisT: // do not drill down further if there’s no chance of a better solution Yes, now it is clear. Thank you. I though that this means that the…

3 years ago
Forum
Reply
RE: Find visual center of contour/polygon

denisT: don’t trust the documentation. Box3 was added in MAX 2015 (but kept secret )

3 years ago
Forum
Reply
RE: Find visual center of contour/polygon

Yes, in your code. I was asked about the js code where I can’t see when the while loop stops(my js skills are exactly 0). So, I thought that that line…

3 years ago
Forum
Reply
RE: Find visual center of contour/polygon

denisT: continue means continue the while loop In this case why this check is performed in the while loop? If this is true the while loop stops? …

3 years ago
Forum
Page 8 / 83