Moving 4DNav out of unmaintained and fixing docs
parent
d85deeb262
commit
b9a5183b42
|
@ -1,6 +1,6 @@
|
||||||
! Copyright (C) 2008 Jean-François Bigot.
|
! Copyright (C) 2008 Jean-François Bigot.
|
||||||
! See http://factorcode.org/license.txt for BSD license.
|
! See http://factorcode.org/license.txt for BSD license.
|
||||||
USING: help.markup help.syntax kernel quotations strings ;
|
USING: help.markup help.syntax kernel quotations strings multiline ;
|
||||||
IN: 4DNav
|
IN: 4DNav
|
||||||
|
|
||||||
|
|
||||||
|
@ -87,60 +87,57 @@ ARTICLE: "Space file" "Create a new space file"
|
||||||
|
|
||||||
$nl
|
$nl
|
||||||
"An example is:"
|
"An example is:"
|
||||||
$nl
|
{ $code <"
|
||||||
|
<model>
|
||||||
|
<space>
|
||||||
|
<dimension>4</dimension>
|
||||||
|
<solid>
|
||||||
|
<name>4cube1</name>
|
||||||
|
<dimension>4</dimension>
|
||||||
|
<face>1,0,0,0,100</face>
|
||||||
|
<face>-1,0,0,0,-150</face>
|
||||||
|
<face>0,1,0,0,100</face>
|
||||||
|
<face>0,-1,0,0,-150</face>
|
||||||
|
<face>0,0,1,0,100</face>
|
||||||
|
<face>0,0,-1,0,-150</face>
|
||||||
|
<face>0,0,0,1,100</face>
|
||||||
|
<face>0,0,0,-1,-150</face>
|
||||||
|
<color>1,0,0</color>
|
||||||
|
</solid>
|
||||||
|
<solid>
|
||||||
|
<name>4triancube</name>
|
||||||
|
<dimension>4</dimension>
|
||||||
|
<face>1,0,0,0,160</face>
|
||||||
|
<face>-0.4999999999999998,-0.8660254037844387,0,0,-130</face>
|
||||||
|
<face>-0.5000000000000004,0.8660254037844384,0,0,-130</face>
|
||||||
|
<face>0,0,1,0,140</face>
|
||||||
|
<face>0,0,-1,0,-180</face>
|
||||||
|
<face>0,0,0,1,110</face>
|
||||||
|
<face>0,0,0,-1,-180</face>
|
||||||
|
<color>0,1,0</color>
|
||||||
|
</solid>
|
||||||
|
<solid>
|
||||||
|
<name>triangone</name>
|
||||||
|
<dimension>4</dimension>
|
||||||
|
<face>1,0,0,0,60</face>
|
||||||
|
<face>0.5,0.8660254037844386,0,0,60</face>
|
||||||
|
<face>-0.5,0.8660254037844387,0,0,-20</face>
|
||||||
|
<face>-1.0,0,0,0,-100</face>
|
||||||
|
<face>-0.5,-0.8660254037844384,0,0,-100</face>
|
||||||
|
<face>0.5,-0.8660254037844387,0,0,-20</face>
|
||||||
|
<face>0,0,1,0,120</face>
|
||||||
|
<face>0,0,-0.4999999999999998,-0.8660254037844387,-120</face>
|
||||||
|
<face>0,0,-0.5000000000000004,0.8660254037844384,-120</face>
|
||||||
|
<color>0,1,1</color>
|
||||||
|
</solid>
|
||||||
|
<light>
|
||||||
|
<direction>1,1,1,1</direction>
|
||||||
|
<color>0.2,0.2,0.6</color>
|
||||||
|
</light>
|
||||||
|
<color>0.8,0.9,0.9</color>
|
||||||
|
</space>
|
||||||
|
</model> "> } ;
|
||||||
|
|
||||||
"\n<model>"
|
|
||||||
"\n<space>"
|
|
||||||
"\n <dimension>4</dimension>"
|
|
||||||
"\n <solid>"
|
|
||||||
"\n <name>4cube1</name>"
|
|
||||||
"\n <dimension>4</dimension>"
|
|
||||||
"\n <face>1,0,0,0,100</face>"
|
|
||||||
"\n <face>-1,0,0,0,-150</face>"
|
|
||||||
"\n <face>0,1,0,0,100</face>"
|
|
||||||
"\n <face>0,-1,0,0,-150</face>"
|
|
||||||
"\n <face>0,0,1,0,100</face>"
|
|
||||||
"\n <face>0,0,-1,0,-150</face>"
|
|
||||||
"\n <face>0,0,0,1,100</face>"
|
|
||||||
"\n <face>0,0,0,-1,-150</face>"
|
|
||||||
"\n <color>1,0,0</color>"
|
|
||||||
"\n </solid>"
|
|
||||||
"\n <solid>"
|
|
||||||
"\n <name>4triancube</name>"
|
|
||||||
"\n <dimension>4</dimension>"
|
|
||||||
"\n <face>1,0,0,0,160</face>"
|
|
||||||
"\n <face>-0.4999999999999998,-0.8660254037844387,0,0,-130</face>"
|
|
||||||
"\n <face>-0.5000000000000004,0.8660254037844384,0,0,-130</face>"
|
|
||||||
"\n <face>0,0,1,0,140</face>"
|
|
||||||
"\n <face>0,0,-1,0,-180</face>"
|
|
||||||
"\n <face>0,0,0,1,110</face>"
|
|
||||||
"\n <face>0,0,0,-1,-180</face>"
|
|
||||||
"\n <color>0,1,0</color>"
|
|
||||||
"\n </solid>"
|
|
||||||
"\n <solid>"
|
|
||||||
"\n <name>triangone</name>"
|
|
||||||
"\n <dimension>4</dimension>"
|
|
||||||
"\n <face>1,0,0,0,60</face>"
|
|
||||||
"\n <face>0.5,0.8660254037844386,0,0,60</face>"
|
|
||||||
"\n <face>-0.5,0.8660254037844387,0,0,-20</face>"
|
|
||||||
"\n <face>-1.0,0,0,0,-100</face>"
|
|
||||||
"\n <face>-0.5,-0.8660254037844384,0,0,-100</face>"
|
|
||||||
"\n <face>0.5,-0.8660254037844387,0,0,-20</face>"
|
|
||||||
"\n <face>0,0,1,0,120</face>"
|
|
||||||
"\n <face>0,0,-0.4999999999999998,-0.8660254037844387,-120</face>"
|
|
||||||
"\n <face>0,0,-0.5000000000000004,0.8660254037844384,-120</face>"
|
|
||||||
"\n <color>0,1,1</color>"
|
|
||||||
"\n </solid>"
|
|
||||||
"\n <light>"
|
|
||||||
"\n <direction>1,1,1,1</direction>"
|
|
||||||
"\n <color>0.2,0.2,0.6</color>"
|
|
||||||
"\n </light>"
|
|
||||||
"\n <color>0.8,0.9,0.9</color>"
|
|
||||||
"\n</space>"
|
|
||||||
"\n</model>"
|
|
||||||
|
|
||||||
|
|
||||||
;
|
|
||||||
ARTICLE: "TODO" "Todo"
|
ARTICLE: "TODO" "Todo"
|
||||||
{ $list
|
{ $list
|
||||||
"A vocab to initialize parameters"
|
"A vocab to initialize parameters"
|
||||||
|
@ -168,7 +165,7 @@ ARTICLE: "4DNav" "The 4DNav app"
|
||||||
$nl
|
$nl
|
||||||
{ $heading "4D Navigator" }
|
{ $heading "4D Navigator" }
|
||||||
"4DNav is a simple tool to visualize 4 dimensionnal objects."
|
"4DNav is a simple tool to visualize 4 dimensionnal objects."
|
||||||
"\n"
|
$nl
|
||||||
"It uses " { $vocab-link "adsoda" } " library to display a 4D space and navigate thru it."
|
"It uses " { $vocab-link "adsoda" } " library to display a 4D space and navigate thru it."
|
||||||
$nl
|
$nl
|
||||||
"It will display:"
|
"It will display:"
|
|
@ -32,15 +32,15 @@ HELP: do-look-at
|
||||||
|
|
||||||
ARTICLE: "4DNav.camera" "Camera"
|
ARTICLE: "4DNav.camera" "Camera"
|
||||||
{ $vocab-link "4DNav.camera" }
|
{ $vocab-link "4DNav.camera" }
|
||||||
"\n"
|
$nl
|
||||||
"A camera is defined by:"
|
"A camera is defined by:"
|
||||||
{ $list
|
{ $list
|
||||||
{ "a position (" { $link camera-eye } ")" }
|
{ "a position (" { $link camera-eye } ")" }
|
||||||
{ "a focus direction (" { $link camera-focus } ")\n" }
|
{ "a focus direction (" { $link camera-focus } ")" }
|
||||||
{ "an attitude information (" { $link camera-up } ")\n" }
|
{ "an attitude information (" { $link camera-up } ")" }
|
||||||
}
|
}
|
||||||
"\nUse " { $link do-look-at } " in opengl statement in placement of gl-look-at"
|
"Use " { $link do-look-at } " in opengl statement in placement of gl-look-at"
|
||||||
"\n\n"
|
$nl
|
||||||
"A camera is a " { $vocab-link "4DNav.turtle" } " object. Its a special vocab to handle mouvements of a 3D object:"
|
"A camera is a " { $vocab-link "4DNav.turtle" } " object. Its a special vocab to handle mouvements of a 3D object:"
|
||||||
{ $list
|
{ $list
|
||||||
{ "To define a camera"
|
{ "To define a camera"
|
Loading…
Reference in New Issue