grains.cad.region_as_splinegon

grains.cad.region_as_splinegon(boundary_splines)[source]

Represents a region as a splinegon.

Based on the combined topological-geometrical (intermediate) representation of the regions, (done by skeleton2regions()), this function provides a fully geometrical description of a region.

Parameters

boundary_splines (list) – Each element of the list is a Handle_Geom_BSplineCurve object, giving a reference to the B-splines bounding the region. The splines must either be ordered (see branches2boundary()) or they must appear in an order such that the n-th spline in the list can be connected to one of the first n-1 splines in the list.

Returns

Notes

The syntax Handle_classname in PythonOCC corresponds to wrapping the object of class classname with a smart pointer. In the C++ interface, it is done by a template: Handle<classname>.