Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

how to create a sphere or cube?

warlionheart
Beginner
789 Views
i am a new learner of fortran. Can you help me about creating a 3-D shape(sphere, cube, etc...)?
0 Kudos
1 Reply
Intel_C_Intel
Employee
789 Views
If you are looking to draw a picture of sphere, cube, torus, or teapot on the screen the "OpenGL Utility Toolkit" (glut) provides Fortran routines that enable you to render the object in a few lines of code. See: http://www.opengl.org/resources/libraries/glut.html.
If you are more interested in working with array data that describes the model in terms of 3D coordinates and not dealing with the mechanics of displaying the image, the Intel Array Visualizer provides support for that. See the attached file for a screen shot illustrating wat the display would look like.
John
0 Kudos
Reply