Difference between revisions of "Cube Command"

From GeoGebra Manual
Jump to: navigation, search
m
m (command syntax: changed [ ] into ( ))
 
Line 1: Line 1:
 
<noinclude>{{Manual Page|version=5.0}}</noinclude>{{command|3D}}
 
<noinclude>{{Manual Page|version=5.0}}</noinclude>{{command|3D}}
;Cube[ <Point>, <Point>, <Direction> ]
+
;Cube( <Point>, <Point>, <Direction> )
 
:Creates a cube having the segment between the two points as an edge.  
 
:Creates a cube having the segment between the two points as an edge.  
 
:The other vertices are uniquely determined by the given direction, that should be one of:
 
:The other vertices are uniquely determined by the given direction, that should be one of:
Line 9: Line 9:
 
:* a face with the segment as an edge in a plane parallel to the polygon/plane.
 
:* a face with the segment as an edge in a plane parallel to the polygon/plane.
  
; Cube[ <Point>, <Point>, <Point>]
+
; Cube( <Point>, <Point>, <Point>)
 
:Creates a cube with three (adjacent) points of the first face. The points have to start a square for the cube to be defined.
 
:Creates a cube with three (adjacent) points of the first face. The points have to start a square for the cube to be defined.
  
; Cube[ <Point>, <Point>]
+
; Cube( <Point>, <Point>)
 
:Creates a cube with two (adjacent) points of the first face, and the third point automatically created on a circle, so that the cube can rotate around its first edge.
 
:Creates a cube with two (adjacent) points of the first face, and the third point automatically created on a circle, so that the cube can rotate around its first edge.
:{{Note|1=Cube[A, B] is a shortcut for Cube[A, B, C] with C = Point[Circle[B, Distance[A, B], Segment[A, B]]].}}
+
:{{Note|1=Cube(A, B) is a shortcut for Cube(A, B, C) with C = Point(Circle(B, Distance(A, B), Segment(A, B))).}}
  
 
{{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. }}

Latest revision as of 12:38, 30 September 2017


Cube( <Point>, <Point>, <Direction> )
Creates a cube having the segment between the two points as an edge.
The other vertices are uniquely determined by the given direction, that should be one of:
  • a vector, a segment, a line, a ray orthogonal to the segment, or
  • a polygon, a plane parallel to the segment.
The created cube will have:
  • a face with the segment as an edge in a plane orthogonal to the given vector/segment/line/ray, or
  • a face with the segment as an edge in a plane parallel to the polygon/plane.
Cube( <Point>, <Point>, <Point>)
Creates a cube with three (adjacent) points of the first face. The points have to start a square for the cube to be defined.
Cube( <Point>, <Point>)
Creates a cube with two (adjacent) points of the first face, and the third point automatically created on a circle, so that the cube can rotate around its first edge.
Note: Cube(A, B) is a shortcut for Cube(A, B, C) with C = Point(Circle(B, Distance(A, B), Segment(A, B))).
Note: See also Tetrahedron, Octahedron, Icosahedron, Dodecahedron commands.
© 2024 International GeoGebra Institute