FeatureScript: Obtaining surfaces curvature magnitude

Hi everyone,

For a current project, I need to analyse surface curvature in detail and compare different portions of such surface to determine if they are nearly identical. While curvature combs in OnShape provide a good visual representation of curvature, I need a way to quantify the curvature diffrences numerically for a precise comparison between surface sections spanning the same area.

In particular, I would like to extract and export (e.g. arrays of curvature values) the curvature magnitudes that are shown in the curvature combs for an external analysis in other software - I've attached an image that illustrates the curvature combs I'm working with, to clarify the task.

I have come across the evFacesCurvature function in FeatureScript, which seems like it might be useful for this purpose, but as a beginner with FeatureScript, I haven't been able to implement a working solution

Another approach I'm considering is comparing positional differences at key points (say the boundary of such surfaces showed in the attached image), using a common reference such as the center point position.

Does anyone have suggestions on how to approach this? Specifically:

  • How can I use FeatureScript to extract numerical curvature data (e.g., the magnitude of curvature combs)?
  • Are there any other functions or strategies in FeatureScript I should explore for this task?

Any examples, scripts, or hints for a beginner would be greatly appreciated!

Thank you in advance for any suggestions or help.

Comments