You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Passing a t value with regular increments produces results which are not regular around 1.0 boundary both for .normal() and .position().
Steps to reproduce the bug
importorg.openrndr.applicationimportorg.openrndr.color.ColorRGBaimportorg.openrndr.extra.shapes.rectify.rectifiedimportorg.openrndr.shape.Circleimportorg.openrndr.shape.Segment2Dfunmain() = application {
program {
val c =Circle(drawer.bounds.center, 50.0).contour
val rc = c.rectified()
val normals =List(100) {
val t = it /100.0val p = rc.position(t)
val n = rc.normal(t)
Segment2D(p, p + n *500.0)
}
(normals + normals.first()).zipWithNext { a, b ->println(a.end.distanceTo(b.end).toInt())
}
extend {
drawer.clear(ColorRGBa.WHITE)
drawer.stroke =ColorRGBa.WHITE.shade(0.8)
drawer.segments(normals)
drawer.stroke =ColorRGBa.GREEN
drawer.segment(normals[normals.size -2])
drawer.stroke =ColorRGBa.RED
drawer.segment(normals[normals.size -1])
drawer.stroke =ColorRGBa.BLUE
drawer.segment(normals.first())
}
}
}
The text was updated successfully, but these errors were encountered:
Operating System
Linux
OPENRNDR version
0.4.5-SNAPSHOT
ORX version
0.4.5-SNAPSHOT
Java version (if applicable)
No response
Describe the bug
Discussed in https://openrndr.slack.com/archives/CARDHCRLG/p1715349495895799
Passing a
t
value with regular increments produces results which are not regular around 1.0 boundary both for.normal()
and.position()
.Steps to reproduce the bug
The text was updated successfully, but these errors were encountered: