1 ! Copyright (C) 2008 Jean-François Bigot.
2 ! See http://factorcode.org/license.txt for BSD license.
3 USING: help.markup help.syntax kernel quotations strings ;
11 { $description "The menu dedicated to 3D movements of the camera" } ;
18 { $description "The menu dedicated to 4D movements of space" } ;
25 { $description "return gadget containing menu buttons" } ;
27 HELP: model-projection
32 { $description "Project space following coordinate x" } ;
37 { "quot" "quotation" }
39 { $description "return a quotation to orientate space to see it from first point of view" } ;
44 { "quot" "quotation" }
46 { $description "return a quotation to orientate space to see it from second point of view" } ;
51 { "quot" "quotation" }
53 { $description "return a quotation to orientate space to see it from third point of view" } ;
58 { "quot" "quotation" }
60 { $description "return a quotation to orientate space to see it from first point of view" } ;
63 { $description "load space from file" } ;
67 { "m" "a rotation matrix" }
69 { $description "Apply a 4D rotation matrix" } ;
75 { $description "Apply a 4D translation" } ;
78 ARTICLE: "implementation details" "How 4DNav is done"
79 "4DNav is build using :"
81 { $subsection "4DNav.camera" }
82 { $subsection "adsoda-main-page" }
85 ARTICLE: "Space file" "Create a new space file"
86 "To build a new space, create an XML file using " { $vocab-link "adsoda" } " model description. A solid is not caracterized by its corners but is defined as the intersection of hyperplanes."
94 "\n <dimension>4</dimension>"
96 "\n <name>4cube1</name>"
97 "\n <dimension>4</dimension>"
98 "\n <face>1,0,0,0,100</face>"
99 "\n <face>-1,0,0,0,-150</face>"
100 "\n <face>0,1,0,0,100</face>"
101 "\n <face>0,-1,0,0,-150</face>"
102 "\n <face>0,0,1,0,100</face>"
103 "\n <face>0,0,-1,0,-150</face>"
104 "\n <face>0,0,0,1,100</face>"
105 "\n <face>0,0,0,-1,-150</face>"
106 "\n <color>1,0,0</color>"
109 "\n <name>4triancube</name>"
110 "\n <dimension>4</dimension>"
111 "\n <face>1,0,0,0,160</face>"
112 "\n <face>-0.4999999999999998,-0.8660254037844387,0,0,-130</face>"
113 "\n <face>-0.5000000000000004,0.8660254037844384,0,0,-130</face>"
114 "\n <face>0,0,1,0,140</face>"
115 "\n <face>0,0,-1,0,-180</face>"
116 "\n <face>0,0,0,1,110</face>"
117 "\n <face>0,0,0,-1,-180</face>"
118 "\n <color>0,1,0</color>"
121 "\n <name>triangone</name>"
122 "\n <dimension>4</dimension>"
123 "\n <face>1,0,0,0,60</face>"
124 "\n <face>0.5,0.8660254037844386,0,0,60</face>"
125 "\n <face>-0.5,0.8660254037844387,0,0,-20</face>"
126 "\n <face>-1.0,0,0,0,-100</face>"
127 "\n <face>-0.5,-0.8660254037844384,0,0,-100</face>"
128 "\n <face>0.5,-0.8660254037844387,0,0,-20</face>"
129 "\n <face>0,0,1,0,120</face>"
130 "\n <face>0,0,-0.4999999999999998,-0.8660254037844387,-120</face>"
131 "\n <face>0,0,-0.5000000000000004,0.8660254037844384,-120</face>"
132 "\n <color>0,1,1</color>"
135 "\n <direction>1,1,1,1</direction>"
136 "\n <color>0.2,0.2,0.6</color>"
138 "\n <color>0.8,0.9,0.9</color>"
144 ARTICLE: "TODO" "Todo"
146 "A vocab to initialize parameters"
148 { $list "add a face to a solid"
149 "add a solid to the space"
152 "select a solid in a list"
154 "display selected face"
160 "add a tool wich give an hyperplane normal vector with enought points. Will use adsoda.intersect-hyperplanes with { { 0 } { 0 } { 1 } } "
161 "decorrelate 3D camera and activate them with select buttons"
166 ARTICLE: "4DNav" "The 4DNav app"
167 { $vocab-link "4DNav" }
169 { $heading "4D Navigator" }
170 "4DNav is a simple tool to visualize 4 dimensionnal objects."
172 "It uses " { $vocab-link "adsoda" } " library to display a 4D space and navigate thru it."
177 { "4 visualization windows" }
179 "Each visualization window represents the projection of the 4D space on a particular 3D space."
182 "type:" { $code "\"4DNav\" run" }
184 { $heading "Navigation" }
185 "Menu window is divided in 4 areas"
187 { "a space-file chooser to select the file to display" }
188 { "a parametrization area to select the projection mode" }
189 { "4D submenu to translate and rotate the 4D space" }
190 { "3D submenu to move the camera in 3D space. Cameras in every 3D spaces are manipulated as a single one" }
194 { $subsection "Space file" }
196 { $subsection "TODO" }
197 { $subsection "implementation details" }