How to judge a curve model obtained with vtkplanecut or vtkcutter is closed?

How to judge a curve model obtained with vtkplanecut or vtkcutter is closed?

https://drive.google.com/file/d/1hrCsY3-2dZxRI4_Z1dilN3F5clqqpTfB/view?usp=sharing

image

@lassoan@Juicy@jamesobutler @jcfr @pieper@ jmhuie @manjula @szhang

I try to use the vtkFeatureEdges, but got the wrong result👆🏻, what’s wrong?

One solution is to traverse the curve and check if you arrive to the starting point

but howto traverse the model to the curve?

I trasverse the model to the curve, and IsA('vtkMRMLOpenCurveNode') , but got the wrong result too👇🏻…

:cold_sweat: :imp:

@lassoan@Juicy@jamesobutler @jcfr @pieper@ jmhuie @manjula @szhang