You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
7 lines
261 B
7 lines
261 B
import numpy
|
|
|
|
for x in numpy.linspace(-0.99, 0.99, 20):
|
|
for y in numpy.linspace(-0.99, 0.99, 20):
|
|
for z in numpy.linspace(-0.99, 0.99, 20):
|
|
if numpy.linalg.norm(numpy.array([x, y, z])) <= 1:
|
|
print(f"v {x:g} {y:g} {z:g}")
|
|
|