Hello,
I try to create a script for curvature-calculations (porcupine-analysis) based on the ReconstructCurve-script. So I try first to calculate the center of an arc given by a sequence of three points. The distance from the center to the 2nd point is the radius - the inverse is approx. curvature at this point. The csp function in the script should calculate the centerpoint laboriously (and not really tested). My problem is to get the components of the curvepoints - best case as an array of moi.vectorMath.createPoint-s. I tried a lot of things, but nothing works (I`m not a prorammer and especially not in java-script). The script is only a draft in try-and-error-spaghetti-java-sript and a lot of things have to do e.g. calculate the curvature representing line, change the layer for these, update, curvature of the start and endpoint???, ...,etc.. I hope someone will have a look on it and can explain me how to get access to the components of these curvepoints (if possible).
thanks in advance!
Karsten
|