We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 05fa4e0 commit ea9a0f5Copy full SHA for ea9a0f5
src/compas/geometry/curves/polyline.py
@@ -578,10 +578,12 @@ def extend(self, length):
578
"""
579
try:
580
start, end = length
581
- self[0] = self[0] + self.lines[0].vector.unitized().scaled(-start)
+ self.points[0] = self.points[0] + self.lines[0].vector.unitized().scaled(-start)
582
+ self._lines = None
583
except TypeError:
584
start = end = length
- self[-1] = self[-1] + self.lines[-1].vector.unitized().scaled(end)
585
+ self.points[-1] = self.points[-1] + self.lines[-1].vector.unitized().scaled(end)
586
587
588
def extended(self, length):
589
"""Returns a copy of this polyline extended by a given length.
0 commit comments