Draw a sphere: Difference between revisions
Content added Content deleted
m (→{{header|J}}) |
|||
Line 2,556: | Line 2,556: | ||
=={{header|Frink}}== |
=={{header|Frink}}== |
||
This program not only draws a sphere and renders it onscreen projected on the x,y, and z axes but also outputs a .stl file for 3-D printing |
This program not only draws a sphere and renders it onscreen projected on the x,y, and z axes but also outputs a <CODE>.stl</CODE> file for 3-D printing or display in a 3-D modeling package like MeshLab! Frink has [https://frinklang.org/3d/frink/graphics/package-summary.html built-in routines for 3-D modeling] and can emit STL files or Wavefront OBJ files natively. |
||
<lang frink>res = 254 / in |
<lang frink>res = 254 / in |
||
v = callJava["frink.graphics.VoxelArray", "makeSphere", [1/2 inch res]] |
v = callJava["frink.graphics.VoxelArray", "makeSphere", [1/2 inch res]] |