set equal distances in 3d
(I call those line's normals from now on, a common name in 3d applications (it's a direction for a vector)).
Here's a example of 7 normals.

In 3d however this is much more difficult, here's my attempt (with 5):

I only have no clue how to make it correct, i hope someone can helps me.
- void setup() {
size(600, 600, P3D);
smooth();
}
int normals = 5;
void draw() {
background(255);
translate(width/2, height/2, 0);
rotateY(map(mouseX, 0, width, 0, TWO_PI));
rotateZ(map(mouseY, 0, height, 0, TWO_PI));
for(int i = 0; i < normals; i++) {
pushMatrix();
float rotX = map(i, 0, normals, 0, TWO_PI);
float rotY = map(i, 0, normals, 0, TWO_PI);
float rotZ = map(i, 0, normals, 0, TWO_PI);
rotateX(rotX);
rotateY(rotY);
rotateZ(rotZ);
line(0, 0, 0, 40, 0, 0);
popMatrix();
}
}