|Ratings|| ||Unique User Downloads|| ||Download Rankings|
|Not yet rated by the users||Total: 118 ||All time: 9,433 This week: 189|
This class can render a 3D object from the shapes definitions
It takes a list of nodes of the edges and lines of the model of a 3D object and renders an image that shows the lines and the edges of the described object. The class can also add lines for the ground plane.
The the rendered image of the 3D model object is stored in a class variable that is set to a image object created by the PHP GD extension.
3dimensional perspective drawing class
* [Model3D] class create 3 dimensional perspective view by projecting 3d coordinate system onto 2d canvas.
* Current model provide 2 modes, z axis vertical and y axis vertical.
* This simplest first version implement only 3 dimensional line drawing and wire frame that include 3d nodes and connected lines.
* 3D object is centeted at PROJECTION_CENTER center point on the canvas view. View rotation is defined with $ROT about vertical axis.
* Coordinate system obey right-hand-rule.
1. Drawtower1.php is a sample file that use Model3D class and create 3d trustal tower.
2. index.php is a sample for the html file.
* This class is free for the educational use as long as maintain this header together with this class. Contact author for other uses.
* Author: Win Aung Cho
* Contact email@example.com
* version 1.0
* Date: 4-11-2020
||Applications that use this package
No pages of applications that use this class were specified.
If you know an application of this package, send a message to the author to add a link here.