grains.cad.branches2splines¶
-
grains.cad.branches2splines(branches, degree_min=3, degree_max=8, continuity='C2', tol=0.001)[source]¶ Lays splines on branches.
- Parameters
branches (list) – Each element of the list gives N>=2 points on the branch, ordered from one end point to the other. If N=2, the two end points are meant. The points are provided as an Nx2 ndarray, the first column giving the x, the second column giving the y coordinates of the points.
- Other Parameters
degree_min, degree_max, continuity, tol – See the
fit_spline()function.- Returns
list – Each member of the list is a Geom_BSplineCurve object, the B-spline approximation of the corresponding input branch. For details on the resulting spline, see the OpenCASCADE documentation: https://www.opencascade.com/doc/occt-7.4.0/refman/html/class_geom___b_spline_curve.html
See also