Hi Rhino
I want to extract with points the locations of the âMin radiusâ and âMax radiusâ on [Max Range] showed in the CurvatureAnalysis window.
Is it possible?
Hi Rhino
I want to extract with points the locations of the âMin radiusâ and âMax radiusâ on [Max Range] showed in the CurvatureAnalysis window.
Is it possible?
Be aware that the Max radius option in CurvatureAnalysis does not work properly for areas where the Guassian curvature is negative, also known as warped, saddle-like and anticlastic surfaces. I reported it in this thread Command Error: CurvatureAnalysis - Max Radius which is for the V6 WIP but the same problem occurs in V5.
If so, Can I get the correct value using a script?
If possible, I request the script.
Hi Knead - hereâs a quick Python
import Rhino
import rhinoscriptsyntax as rs
import scriptcontext as sc
def test():
id = rs.GetObject( filter=8, preselect=True)
if not id:return
pt = rs.GetPointOnSurface(id)
par = rs.SurfaceClosestPoint(id, pt)
geo = sc.doc.Objects.Find(id).Geometry.Surfaces[0]
x = geo. CurvatureAt(par[0], par[1])
max = x.Kappa(0)
min= x.Kappa(1)
print "Maximum curvature = " + str(max) +"\n" +"Minimum curvature = " + str(min)
rs.AddTextDot(str(max) + "\n" + str(min), pt)
if __name__ == "__main__":
test()
-Pascal
Because there is a bug in the current Rhino build, the result is not correct.
That is why, Iâm going to calculate the curvature manually (to get accurate results).
Thus, I want to find that *** the locations *** of the âMax radiusâ and the âMin radiusâ calculated when [ Max Range ] is pressed.