Difference between revisions of "Cube Command"

From GeoGebra Manual
Jump to: navigation, search
Line 2: Line 2:
 
{{command|3D}}
 
{{command|3D}}
 
;Cube[  <Point A>, <Point B>, <Direction> ]
 
;Cube[  <Point A>, <Point B>, <Direction> ]
 
+
:Creates a cube having segment [AB] as an edge.
 
+
:The other vertices are univocally determined by the given direction, that needs to be:
<Direction> has to be
+
:* a vector, a segment, a line, a ray '''orthogonal  to ( AB)''';
* a vector, a segment, a line, a ray '''orthogonal  to ( AB)''';
+
:or
or
+
:* a polygon in a '''plan parallel to ( AB)'''.
* a polygon in a '''plan parallel to ( AB)'''.
+
:The created cube will have:
 
+
:* a face with edge [AB] in a plan orthogonal to the given vector/segment/line/ray  
 
+
:or
Creates a cube of which a edge is segment [AB]. The other vertices are univocally determined by the given direction.
+
:* a face with edge [AB] in a plan parallel to the polygon's one.
 
 
* One face with edge [AB] in a plan orthogonal to vector/segment/line/ray given
 
or
 
* One face with edge [AB] in a plan parallel to that of the polygon.
 
 
 
 
 
  
 
{{Note|1=See also [[Tetrahedron Command|Tetrahedron]], [[Octahedron Command|Octahedron]], [[Icosahedron Command|Icosahedron]], [[Dodecahedron Command|Dodecahedron]] commands. }}
 
{{Note|1=See also [[Tetrahedron Command|Tetrahedron]], [[Octahedron Command|Octahedron]], [[Icosahedron Command|Icosahedron]], [[Dodecahedron Command|Dodecahedron]] commands. }}

Revision as of 16:37, 5 August 2012


Cube[ <Point A>, <Point B>, <Direction> ]
Creates a cube having segment [AB] as an edge.
The other vertices are univocally determined by the given direction, that needs to be:
  • a vector, a segment, a line, a ray orthogonal to ( AB);
or
  • a polygon in a plan parallel to ( AB).
The created cube will have:
  • a face with edge [AB] in a plan orthogonal to the given vector/segment/line/ray
or
  • a face with edge [AB] in a plan parallel to the polygon's one.
Note: See also Tetrahedron, Octahedron, Icosahedron, Dodecahedron commands.
© 2024 International GeoGebra Institute