[orx-shapes] Improve support for open contours in adjustContour

This commit is contained in:
Edwin Jakobs
2023-10-30 07:53:40 +01:00
parent 2293d5d74e
commit 6e14b36540
8 changed files with 132 additions and 59 deletions

View File

@@ -19,6 +19,11 @@ data class ContourAdjusterEdge(val contourAdjuster: ContourAdjuster, val segment
return contourAdjuster.contour.segments[segmentIndex()].normal(t)
}
val length: Double
get() {
return contourAdjuster.contour.segments[segmentIndex()].length
}
/**
* A [ContourAdjusterVertex] interface for the start-vertex of the edge