3D drawing
Operational
sample (706 KB)
Screen
shot
Dot
drawing type source code
The range in the figure which it can draw is wide, the character string and
copying to the 3D space of the picture possible.
Because the computational complexity is enormous, it does not face to the
movement processing of real time.
[waiyahuremu]
polygon type source code
It is limited to three-dimensional ones where those which it can draw consist
of the straight line.
The character string and correspondence to the picture are imperfect.
It can process in however high speed.
Method
Draw_3d_1.new ([width and height])
Draw_3d_2.new ([width and height])
The system is started.
Draw_3d_1 dot drawing type, Draw_3d_2 is [waiyahuremu] polygon type.
width and height are size of the drawing territory.
update
If there is drawing march order, the picture is renewed.
Please call 1 times to 1 frames.
point (x, y and z [, number and color])
Coordinate (x, y and z) the point is drawn.
In number it can group drawing ones by the fact that natural number is
inserted.
It can move the picture which had the same number simultaneously in march
order.
When it abbreviates, 0 enters. color is drawing color.
line (x, y, z, tx, ty and tz [, number and color])
Starting point (x, y and z) from terminus (tx, ty and tz) to the line segment
is drawn.
triangle (x0, y0, z0, x1, y1, z1, x2, y2 and z2 [, number and color])
3 points (x0, y0, z0), (x1, y1, z1), (x2, y2 and z2) 3 rectangularities which
are made apex are drawn.
square (x0, y0, z0, x1, y1, z1, x2, y2, z2, x3, y3 and z3 [, number and
color])
4 points (x0, y0, z0), (x1, y1, z1), (x2, y2, z2), (x3, y3 and z3)
4 rectangularities which are made apex are drawn.
rectangle (x0, y0, z0, width and height [, number and color])
Starting point (x0, y0 and z0) from the rectangle which had width width and
height height is drawn.
solidness (x0, y0, z0, width, height and depth [, number and color])
Starting point (x0, y0 and z0) from it had width width and height height and
depth depth
Cube is drawn.
text (x, y, z and text [, number, size and color])
The character string which is appointed with text is copied to 3 dimensional
space.
x, as for y and z central coordinate of picture,
As for size letter size, as for color it is letter color.
picture (x, y, z and pict [, number])
Bitmap which is appointed with pict is copied to 3 dimensional space.
triangle_p (x0, y0, z0, x1, y1, z1, x2, y2 and z2
[, number, reversible and color])
3 points (x0, y0, z0), (x1, y1, z1), (x2, y2 and z2) 3 rectangular polygons
which are made apex are drawn.
* Only wire polygon type
rectangle_p (x0, y0, z0, width and height, [,
number, reversible and color])
Starting point (x0, y0 and z0) from the rectangular polygon which had width
width and height height is drawn.
reversible is both sides drawing decision of polygon.
If true it draws also reverse side, if false it does not draw reverse side.
* Only wire polygon type
solidness_p (x0, y0, z0, width, height and depth,
[, number, reversible and color])
Starting point (x0, y0 and z0) from it had width width and height height and
depth depth
Cube polygon is drawn.
* Only wire polygon type
pyramid_p (x0, y0, z0, length and depth [,
number, reversible and color])
Apex focusing on (x0, y0 and z0) length length of 1 sides, pyramid type
polygon of depth depth is drawn.
* Only wire polygon type
diamond_p (x0, y0, z0, length and depth [,
number, reversible and color])
Apex focusing on (x0, y0 and z0) length length of 1 sides, diamond type
polygon of depth depth is drawn.
* Only wire polygon type
right (x, y and z)
Coordinate of the illuminant is set.
* Only wire polygon type
clear ([number])
The picture of the group which belongs to number is eliminated.
When number is abbreviated, all pictures are eliminated.
join (number1 and number2)
The group picture which belongs to number1 is integrated to the group of
number2.
After the occasion where complicated three-dimensional ones are made, drawing
up the part in another group
Method of kind of using which is integrated to one, is possible.
move (vx, vy and vz [, number])
vx, equal to a quantity which is appointed to vy and vz moves relatively.
roll_x (rad [, number, ox, oy and oz])
X axis it turns to the center.
rad is angle of rotation (degree).
ox, oy and oz are central coordinate of revolution.
When it abbreviates, coordinate of the dot which the group first appoints is
center.
roll_y (rad [, number, ox, oy and oz])
Y axial revolution
roll_z (rad [, number, ox, oy and oz])
Z axial revolution
It
returns to summary