I have created a small script that extracts the curvature values at many (u,v) points on a NURBS surface and writes them into a file. Essentially, it uses the functions rhinoscriptsyntax.SurfaceDomain and rhinoscriptsyntax.SurfaceCurvature.
I would like now to display a map of the curvature values in the Rhino graphical interface. I have no idea how to do that, but I suspect I can not do it at the level of a script and would have to go to a higher level. I would be very grateful if someone could give me a starting point where to start with this (I know python and C++).
I basically want to redo the same as the CurvatureAnalysis command. The reason is that in a second step I will need to display yet another quantity which depends on the curvature and the normal. If the code for the CurvatureAnalysis is freely available, that could also be a way to go, but I donât think it is the case.
CurvatureAnalysis uses whatâs called a Visual Analysis Mode. Basically the object is assigned a special analysis mode that controlâs its visibility. Rhino has a number of visual analysis modes: Curvature, EMap, Zebra, etc.
Plug-in can create their own visual analysis modes. In C++, youâd do this by deriving a custom class from CRhinoVisualAnalysisMode. You can find a sample of this here:
In RhinoCommon equivalent to this is the VisualAnalysisMode class. I thought I had an example of this, but I canât seem to locate it at the moment.
If you donât want to create a full blown visual analysis mode, a simple way to display the results of analysis is with a false-color mesh. Basically you create a display conduit, and display a custom mesh, generated from the object, that has vertex colors based on the analysis.
Sory for reviving old thread. Is it possible to apply in RhinoCommon VisualAnalysisMode for geometry displayed in display conduit? I have checked mesh false color, but it is not as fast as normal Rhino analysis, for example Gaussian analysis.
Analysis modes can only be assigned to Rhino objects - objects that reside in the document - for it is the Rhino object that draws itself based on the assigned analysis mode.