Point cloud
in
Programming Questions
•
2 years ago
I try to write a script for the visualization of a point cloud from point array.
I don't understand where i wrong...
- import processing.opengl.*;
- float[] linearray= {10,10,250,50,80,50,70,7,70};
- void setup() {
- size(640,480,OPENGL);
- noStroke();
- }
- void draw() {
- background(255);
- pushMatrix();
- for (int i=0; i<linearray.length/3; i++){
- point(linearray[i*3],linearray[i*3+1],linearray[i*3+2]);
- }
- popMatrix();
- }
1