Script for Curvature Calculation

 From:  Karsten (KMRQUS)
6634.14 In reply to 6634.12 
Hi Brian,

it seems that the DetA sometimes isn't zero for linesegments. So, caused by a division near zero, it produces very high values for the centerpoint. That crashes the factories, esspecially for interpcurve. I've try to fix it by limitation of a maximum radius of 10000 and a minimum radius for curvature calculation of 0.002 (csp returns for lines p1 - that leads to a radius of zero -> divide by zero - > high values for the factories). Further more the changes supresses the generation of degenerated lines (startpoint equals endpoint). I've marked the changes in the script with //############. Also I made some test with the results with another tool. You may have a look at the pictures. It seem that other tools seperates connected curves for the analyse. So the precission at the connection points, especially with lines, isn't good.

Have a nice day!

Kind regards
Karsten

EDITED: 22 Dec 2017 by KMRQUS

Attachments:

Image Attachments:
Size: 119.9 KB, Downloaded: 83 times, Dimensions: 815x814px
Size: 160.5 KB, Downloaded: 58 times, Dimensions: 617x904px
Size: 155.8 KB, Downloaded: 31 times, Dimensions: 617x904px
Size: 187.6 KB, Downloaded: 57 times, Dimensions: 876x722px
Size: 182.4 KB, Downloaded: 96 times, Dimensions: 876x722px