Skip to content

Commit e29a223

Browse files
committed
Add: capabilities of sweeping in the docstring
1 parent a8e8fab commit e29a223

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

examples/show_swept.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
],
1616
"control_points": np.array(
1717
[
18-
[0.5, 0],
18+
[0.5, 0],
1919
[0.5, 2],
2020
[1.0, 3],
2121
[2.0, 4],

splinepy/helpme/create.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,9 @@ def swept(
310310
receives rotation into the direction of the trajectory tangent
311311
vector and is then placed either at the evaluation points of the
312312
trajectory's knots or at the trajectory's control points. This
313-
depends on the value of the set_on_trajectory parameter.
313+
depends on the value of the set_on_trajectory parameter. It can
314+
create both a surface or a solid, depending on the dimension of
315+
the cross-section.
314316
315317
The sweeping process has some limitations, since the cross-section
316318
cannot be preserved exactly along the whole trajectory.

0 commit comments

Comments
 (0)