Hello,
I am working on a project that relies on the use of curves. After updating to Processing 20b3 from 151 I was pleased with the improved render quality. The bad thing is that curves aren't rendered seperately any more, instead I get one long curve. Am I missing something or should I file a bug? The following code renders as one curve in 20b3 vs two curves in 151 as expected:
Pleeeeeeze help...!
Best,
dominik
edit:
After more testing I believe it is a bug. I filed an issue under
http://code.google.com/p/processing/issues/detail?id=1317
If you have the same problem, you can also find a workaround there.
d.
I am working on a project that relies on the use of curves. After updating to Processing 20b3 from 151 I was pleased with the improved render quality. The bad thing is that curves aren't rendered seperately any more, instead I get one long curve. Am I missing something or should I file a bug? The following code renders as one curve in 20b3 vs two curves in 151 as expected:
- void setup() {
size(800, 600, P3D);
}
void draw() {
translate(width/2f,height/2f,0);
noFill();
stroke(255, 0, 0, 255);
curveTightness(0);
curveDetail(10);
strokeWeight(1);
beginShape();
curveVertex(-257.0, -185.0, 0.0);
curveVertex(-257.0, -185.0, 0.0);
curveVertex(-207.0, -75.0, 0.0);
curveVertex(-201.0, 0.0, 0.0);
curveVertex(-89.0, 49.0, 0.0);
curveVertex( -53.0, 136.0, 0.0);
curveVertex( -53.0, 136.0, 0.0);
endShape();
beginShape();
curveVertex(-120.654205, -185.0, -226.91753);
curveVertex(-120.654205, -185.0, -226.91753);
curveVertex(-97.18062, -75.0, -182.77014);
curveVertex(-94.36379, 0.0, -177.47246);
curveVertex(-41.782974, 49.0, -78.58234);
curveVertex( -24.881994, 136.0, -46.796223);
curveVertex( -24.881994, 136.0, -46.796223);
endShape();
}
Pleeeeeeze help...!
Best,
dominik
edit:
After more testing I believe it is a bug. I filed an issue under
http://code.google.com/p/processing/issues/detail?id=1317
If you have the same problem, you can also find a workaround there.
d.
1