3D data to 2D data
This file can not draw graph. Upload 2011-04-23
XYGraph v2.3 - web page graph
☜☞
donate
get code
This file is personal home work. No one
proofread. Cannot promise correctness.
If you suspect any view point wrong,
please ask a math expert near by.
Freeman 2009-06-19-10-46
Please use MSIE browser to read this file.
Did not test other browser. This file is
written under MSIE 6.0
3D data to 2D data
Eye ρφθ
; Up ρφθ
Above line is auxiliary. Program do NOT read them.
Eye x,y,z
;
Parallel
Up x,y,z
//
can not rotate twice
If done 3D rotation, change to 2D please click
Fill xyz to Box1
output xy to Box2
Example:
Box1, input 3D data
Box2,output 2D x_array, y_array
Box3, output 2D x,y data
Box4, debug
QSboxd04.value='string'
<a name="docA_001">
2011-03-31-11-18 start
This file data3d2d.htm convert 3D
data to 2D data. Include coordinate
rotation, rotation definition come
from eye coordinate and up direction.
Brief as 'eyeUp'. User input eyeUp
data, program rotate 3D data first
then convert to 2D data. This file
do not output after-rotation 3D data
only output after-conversion 2D data.
<a name="docA_002">
If you need after-rotation 3D data
or need rotation matrix or rotation
angle and rotation axis vector or
need quaternion, please go to
Build 3D rotation matrix page //local
http://freeman2.com/rotate3d.htm#matrixBox24<a name="docA_003">
If 3D data already rotated in
rotate3d.htm and need this file
data3d2d.htm convert to 2D data
(possible to draw on 2D screen)
to avoid rotate again, please set
eye xyz =(1,0,0) and
up xyz =(0,0,1)
This set data create an identity
matrix as rotation matrix. It has
same function as multiply by one
in arithmetic. Rotate any vector
to same vector. If click ,
program auto fill identity eyeUp
data.
<a name="docA_004">
This file data3d2d.htm is copied
from Spherical coordinate builder
sphere3d.htm. freeman2.con site
has three files convert 3D data
to 2D data. Two are mentioned above.
Other one is Space Curve Projector
http://freeman2.com/curve3d2.htm
Uploaded on 2009-01-03. Paste 3D
data to Box1 in curve3d2.htm,
click output to
Box2, next click
Drawing board is few lines below.
<a name="docA_005">
curve3d2.htm is earlier work,
output x,y side by side data,
no x_array and y_array data.
Can not be used as XYGraph code.
Need program convert
from x,y side by side data
to x_array and y_array data
2011-03-31-11-53 stop
<a name="docA_006">
2011-03-31-13-48 start
This file data3d2d.htm Box2 output
x_array and y_array data, that is
XYGraph command. Next pages draw
x_array and y_array data (XYGraph
code)
(domain name is http://freeman2.com/)
xygraph4.htm Box1 input click
xygraphe.htm Box1 input click
tute0054.htm Box3 input click
The file
<a name="docA_007">
http://freeman2.com/xygraphe.htm
is designed to draw reader's graph
code and help reader to build his
own graph page. It is better for
you to access xygraphe.htm
In the page tute0054.htm find key
string "2011-02-27-16-30 start"
tell you the cause of possible
error.
<a name="docA_008">
This file data3d2d.htm Box3 output
2D side by side data
(not XYGraph graph code)
Next draw 2D side by side data
(domain name is http://freeman2.com/)
xygraph2.htm Box1 input click
or
curve3d2.htm Box2 input click
<a name="docA_009">
Please pay attention to next
after graph xygraph2.htm Box1
data become XYGraph code. But
this XYGraph is not xy side by
side data. If click draw button
again, program show error message.
[[
Box 1 has text, not all data. Goodby. Please
click [Box 1] line "1" button for sample data.
]]
xygraph2.htm build XYGraph code,
xygraph2.htm not draw XYGraph code.
<a name="docA_010">
curve3d2.htm drawing board is below
Box2.
curve3d2.htm has ten example buttons.
Click, for example "dumbbell" program
fill equation to equation input box
x(t),y(t),z(t) next click
You can also click three buttons
to get middle data.
2011-03-31-14-18 stop
<a name="docA_011">
2011-03-31-15-42 start
This file data3d2d.htm example button
are copied from //localhttp://freeman2.com/tute0054.htm#Fig054QC
Click to use same eyeUp data
as that of tute0054.htm
Output XYGraph graph code can draw
same graph used in tute0054.htm .
2011-03-31-15-56 stop