Processing 入门教程(二十八) 3D点云

代码很简单就不写注释了,效果感觉还不错就放出来了,用这个能实现很棒的交互效果

int amount = 300;
int[] x = new int[amount];
int[] y = new int[amount];
int[] z = new int[amount];

void setup() {
  size(500, 400, P3D);
  background(0);
  noFill();
  stroke(255);
  strokeWeight(1);
  for(int i = 0; i

 

效果图如下:

Processing 入门教程(二十八) 3D点云_第1张图片

你可能感兴趣的:(Processing)