# Curvature Analysis

**URL:** <https://discourse.slicer.org/t/curvature-analysis/6887>\
**Category:** Support\
**Tags:** vtk\
**Created:** [May 22, 2019, 6:59pm UTC](https://discourse.slicer.org/t/curvature-analysis/6887 "2019-05-22T18:59:10Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![stevenagl12](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/stevenagl12/32/3391_2.png) [@stevenagl12](https://discourse.slicer.org/u/stevenagl12)\
**Post date:** [May 22, 2019, 6:59pm UTC](https://discourse.slicer.org/t/curvature-analysis/6887/1 "2019-05-22T18:59:10Z")

</div>

I know that 3D Slicer utilizes VTK, is there any modules, or directions out there with python to be able to color a model based off from the curvature value of the surface? I know VTK has an implementation of this here: [https://lorensen.github.io/VTKExamples/site/Python/PolyData/CurvaturesDemo/](https://lorensen.github.io/VTKExamples/site/Python/PolyData/CurvaturesDemo/), but it’s a little complicated and I am trying to go for something more straight forward?

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [May 22, 2019, 7:54pm UTC](https://discourse.slicer.org/t/curvature-analysis/6887/2 "2019-05-22T19:54:16Z")

</div>

We are adding these kind of simple metrics to markups curves, but it may take up to a few more months to get there. If you need it sooner then you can temporarily use [CurveMaker](https://www.slicer.org/wiki/Documentation/Nightly/Extensions/CurveMaker) module.

---

<div class="post-metadata">

**Author:** ![stevenagl12](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/stevenagl12/32/3391_2.png) [@stevenagl12](https://discourse.slicer.org/u/stevenagl12)\
**Post date:** [May 22, 2019, 9:41pm UTC](https://discourse.slicer.org/t/curvature-analysis/6887/3 "2019-05-22T21:41:08Z")

</div>

The CurveMaker doesn’t seem to be able to perform any curvature analysis on an object, unless I’m wrong?

---

<div class="post-metadata">

**Author:** ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)\
**Post date:** [May 22, 2019, 9:54pm UTC](https://discourse.slicer.org/t/curvature-analysis/6887/4 "2019-05-22T21:54:12Z")

</div>

We don’t have anything built in for curvature display, but it should be pretty easy to set up a vtk pipeline to that adds the scalars and set up Slicer to [display it on a model](https://www.slicer.org/wiki/Documentation/Nightly/Modules/Models#Panels_and_their_use). Of course you’ll need to learn some vtk in order to do that.

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [May 22, 2019, 10:03pm UTC](https://discourse.slicer.org/t/curvature-analysis/6887/5 "2019-05-22T22:03:30Z")

</div>

> [@stevenagl12](#):
>
> curvature analysis on an object,

CurveMaker is only for curves. The VTK example that you have found is a complete guide of how to compute it for surfaces. You can then use Slicer for showing it as point or cell scalar, as @pieper suggested above.
