Update for OPENRNDR segment and path generalizations

This commit is contained in:
Edwin Jakobs
2024-03-19 16:31:45 +01:00
parent 8fe7631570
commit af6d35c59b
37 changed files with 579 additions and 277 deletions

View File

@@ -86,7 +86,7 @@ fun ShapeProvider.scatter(
hg
}
fun Segment.randomPoints(count: Int) = sequence {
fun Segment2D.randomPoints(count: Int) = sequence {
for (i in 0 until count) {
val t = random.nextDouble()
yield(position(t) - normal(t).normalized * distanceToEdge)