Page 1 of 1

segmntation error: SplinePolygonSegmentation.set_control_points()

Posted: Tue Mar 19, 2024 7:22 am
by jamaspazarnoosh
Hello,

We are defining a spline polygon using python api based on a set of points created from intersecting a plane with a stl. However, we receive an error when assigning control points. Here's the error:
segmntation error: SplinePolygonSegmentation.set_control_points() The 'points' data do not lie in a plane within 0.000001.

set_control_points(control_points) fails in some contours and works for some other. Is it possible to overwrite the assigned tolerance, 0.000001, to some other value to prevent this error?

Your help would be appreciated.

Thanks,
Jimmy

Re: segmntation error: SplinePolygonSegmentation.set_control_points()

Posted: Tue Mar 19, 2024 12:59 pm
by davep
Hi Jimmy,

There is no way to override this check without modifying the SV code.

You will need to modify the control points you are passing to the set_control_points() function so that they are planar.

Cheers,
Dave