Calculating the circumference from cross sectional cut

Hello, I’m using a vtkCutter to cut a cross-section from a poly data object using a vtkPlane as the cut function.

The result is a disc-like shape seen below:
image

I can use vtkMassProperties and get the surface area of this disc but how do I get the circumference?

Failing that, is there a way to only get the outer points of the object as there are points inside the objects that makes normal circumference calculations inaccurate.

Thanks

Hello,

Please, take a look at this: How to extract the ids of the boundary points of a surface?

It refers to an example that is no longer avaible, though a snapshot of it is available in The Wayback Machine: https://web.archive.org/web/20200407105456/https://lorensen.github.io/VTKExamples/site/Cxx/Meshes/BoundaryEdges/ .

regards,

Paulo

Thanks Paulo,

It seems that the problem was due to the Delaunay filter outputting unstructured data. When I filtered the output from the Delaunay filter through a Geometry filter it seemed to solve my problem.

Daniel

1 Like