Bug in offset? #172
Answered
by
sgenoud
BarbourSmith
asked this question in
Modelling help
Bug in offset?
#172
-
Beta Was this translation helpful? Give feedback.
Answered by
sgenoud
Nov 15, 2024
Replies: 1 comment 1 reply
-
The offset of a projection is something that is prone to errors - as offsets for Bézier do not work great (as of now). Could you do the offset on the sketch step? const { drawCircle } = replicad;
const main = () => {
const circle1 = drawCircle(20);
const circle2 = drawCircle(30);
const together = circle2.cut(circle1);
return [
circle2.offset(2).cut(circle2.offset(-2)),
{shape: together.translate(100), color: "red"}
]
}; I am working on better offsets for Bézier, but for pantograph - which should become the draw level API for replicad. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
BarbourSmith
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The offset of a projection is something that is prone to errors - as offsets for Bézier do not work great (as of now).
Could you do the offset on the sketch step?
direct link
I am working on better offsets for Bézier, but for pantograph - which should become the draw level API for replicad.