The first program was to be created is a reusable component named ,ThreeDDrawing, it has come with some important functions X-Axis rotation, Y-Axis rotation, Z-Axis rotation, Any-Axis rotation (No need for the others), to initialize the axis end points, etc.. when, going to use the component, the expectation about using the component was being only rotate the object (graphics drawing) with Timer control like animations, but it was not only being used to rotate the object, I realized it's useful to create many objects also, here are some sample objects
First we can create one or two base lines then can rotate at specific angles about an axis to obtain the points and can draw the lines according to the points, because most of the objects are symmetry in shape, we can loop to repeat and simply the code as necessary
- A resuable component (ThreeDDrawing) for rotating any point in 3Dimentionally was created
- Can rotate any point about any axis
- Can create any shape
- Animations can be done with rotation of the object about any axis
- Here are some sample shapes created by the component
STAR IN 3D VIEWS | |||||
Rotating the object about X, Y and Z axes; each axis remains constant it's position on each rotation | |||||
---|---|---|---|---|---|
Rotating X, Y and Z axes within the object | |||||
Unlike the previous where the axes didn't move within the object on each rotation here the axis is rotating within the object when it gets rotated; I found the better after geting result of the previous and tried to get the result | |||||
Creating a shepere | |||||
An exampe about creating any object by using the ThreeDDrawing;here creating the object is starting with initialising with a point (base point) then rotating it with a specified angle by looping as developing an arc, As well as repeating the arc creating process with a loop and an angle as creating the sphere by connecting the individua points, the entire object is ready | |||||
Creating a tube | |||||
Creating a box | |||||
| |||||
Creating the motion of the Sun, the Earth and the Moon | |||||
|