Bug 1110 : point() not drawing with P3D
Last modified: 2009-02-19 19:09




Status:
RESOLVED
Resolution:
FIXED -
Priority:
P2
Severity:
normal

 

Reporter:
danielk
Assigned To:
fry

Attachment Type Created Size Actions

Description:   Opened: 2008-12-27 06:33
Simple example:

void setup() {
size(400,400,P3D);
}

void draw() {
strokeWeight(6);
point(50,50);
}

I discovered this bug when attempting to show points on a Cartesian graph. My
workaround (at least for points) is to replace the point with a very small circular
ellipse, e.g...

void setup() {
size(400, 400, P3D);
}

void draw() {
translate(width/2, height/2, 20);
rotateX(PI);
line(-(width/2), 0, width/2,0);
line(0,-(height/2), 0, height/2);
// strokeWeight(2); // These 2 lines illustrate the bug
// point(50,50);
bigPoint(50,50,2); // x, y, strokeWeight
}

void bigPoint(int x, int y, int magnitude) {
fill(0);
noStroke();
ellipse(x, y, magnitude, magnitude);
}

The strokeWeight() documentation has references to bugs 955 and 956 but I saw no
mention of points.

I was only able to verify this on Windows.
Additional Comment #1 From fry 2009-02-19 19:09
Found and fixed for 1.0.2, thanks for the report. It looks like I left some
code incomplete during the push toward 1.0, but we should be all set with
the next release.