Skip to content

Commit e62c5d6

Browse files
committed
reverse curves
1 parent 22a66de commit e62c5d6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/compas_occ/geometry/curves/nurbs.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -509,6 +509,10 @@ def transformed(self, T: Transformation) -> NurbsCurve:
509509
copy.transform(T)
510510
return copy
511511

512+
def reverse(self) -> None:
513+
"""Reverse the parametrisation of the curve."""
514+
self.occ_curve.Reverse()
515+
512516
def space(self, n: int = 10) -> List[float]:
513517
"""Compute evenly spaced parameters over the curve domain."""
514518
u, v = self.domain

0 commit comments

Comments
 (0)