Draw a sphere: Difference between revisions
Content added Content deleted
(initial content) |
(brlcad) |
||
Line 2: | Line 2: | ||
The task is to draw a sphere cuboid. The sohere can be represented graphically, or in ascii art, depending on the language capabilities. Either static or rotational projection is acceptable for this task. |
The task is to draw a sphere cuboid. The sohere can be represented graphically, or in ascii art, depending on the language capabilities. Either static or rotational projection is acceptable for this task. |
||
=={{header|Brlcad}}== |
|||
<lang brlcad>opendb balls.g y # Create a database to hold our shapes |
|||
units cm # Set the unit of measure |
|||
in balls.s sph 0 0 0 3 # Create a sphere of radius 3 cm with its centre at 0,0,0</lang> |
|||
[[Category:Geometric Primitives]] |
[[Category:Geometric Primitives]] |
Revision as of 00:06, 25 March 2011
![Task](http://static.miraheze.org/rosettacodewiki/thumb/b/ba/Rcode-button-task-crushed.png/64px-Rcode-button-task-crushed.png)
You are encouraged to solve this task according to the task description, using any language you may know.
The task is to draw a sphere cuboid. The sohere can be represented graphically, or in ascii art, depending on the language capabilities. Either static or rotational projection is acceptable for this task.
Brlcad
<lang brlcad>opendb balls.g y # Create a database to hold our shapes units cm # Set the unit of measure in balls.s sph 0 0 0 3 # Create a sphere of radius 3 cm with its centre at 0,0,0</lang>