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
splinegon (TopoDS_Face) – The resulting splinegon (surface). For details on the object, see the OpenCASCADE API: https://www.opencascade.com/doc/occt-7.4.0/refman/html/class_topo_d_s___face.html
boundary (TopoDS_Wire) – The boundary of the splinegon. For details on the resulting object, see the OpenCASCADE API: https://www.opencascade.com/doc/occt-7.4.0/refman/html/class_topo_d_s___wire.html
See also
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>.