Construct a spline edge.
(
self: T,
pts: Iterable[Point],
tangents: Optional[Iterable[Point]],
periodic: bool,
tag: Optional[str] = None,
forConstruction: bool = False,
)
| 906 | |
| 907 | @multimethod |
| 908 | def spline( |
| 909 | self: T, |
| 910 | pts: Iterable[Point], |
| 911 | tangents: Optional[Iterable[Point]], |
| 912 | periodic: bool, |
| 913 | tag: Optional[str] = None, |
| 914 | forConstruction: bool = False, |
| 915 | ) -> T: |
| 916 | """ |
| 917 | Construct a spline edge. |
| 918 | """ |
| 919 | |
| 920 | val = Edge.makeSpline( |
| 921 | [Vector(*p) for p in pts], |
| 922 | [Vector(*t) for t in tangents] if tangents else None, |
| 923 | periodic, |
| 924 | ) |
| 925 | |
| 926 | return self.edge(val, tag, forConstruction) |
| 927 | |
| 928 | @spline.register |
| 929 | def spline( |
nothing calls this directly
no test coverage detected