Grasshopper

algorithmic modeling for Rhino

How to get the max and min GaussianCurvature of the whole surface?Like the SurfaceCurvatureAnalysis function in rhinoscript?

Thank you!

Views: 439

Replies to This Discussion

Here's a link that shows how to get Rhinoscript through a VB.net plugin.  I imagine this could be modified to work from the GH script component.

http://wiki.mcneel.com/developer/sdksamples/rhinoscriptfromdotnet

 

Chris

Yeah ,Cool!

But I still have two question,one is what the algorithm of the SurfaceCurvatureAnalysis Function?And how to get use Rhinoscript from .Net plugin  in Rhino 5?

I've been looking at the code for this, but I'm not great at reading C++. It seems to me though that the algorithm is nothing more advanced than creating an analysis mesh for the surface (or using the one that already exists) and then just finding the highest and lowest curvature of all mesh vertices. Analysis meshes in Rhino store curvature data.

 

This basically amounts to just sampling the curvature a lot and then finding the extreme samples.

 

--

David Rutten

david@mcneel.com

Poprad, Slovakia

Here's another link from the developer page.  The code is C# but it shows the method.

http://wiki.mcneel.com/developer/sdksamples/principalcurvature

 

Chris

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service