Element View3D
JXG.View3D
↳ View3D
This element creates a 3D view.
Defined in: view3d.js.
Extends
JXG.View3D.
Constructor Attributes | Constructor Name and Description |
---|---|
A View3D element provides the container and the methods to create and display 3D elements.
|
Field Attributes | Field Name and Description |
---|---|
Position of the main axes in a View3D element.
|
|
Attributes of the 3D x-axis.
|
|
Attributes of the 3D plane orthogonal to the x-axis at the "front" of the cube.
|
|
Attributes of the 3D y-axis on the 3D plane orthogonal to the x-axis at the "front" of the cube.
|
|
Attributes of the 3D z-axis on the 3D plane orthogonal to the x-axis at the "front" of the cube.
|
|
Attributes of the 3D plane orthogonal to the x-axis at the "rear" of the cube.
|
|
Attributes of the 3D y-axis on the 3D plane orthogonal to the x-axis at the "rear" of the cube.
|
|
Attributes of the 3D z-axis on the 3D plane orthogonal to the x-axis at the "rear" of the cube.
|
|
Attributes of the 3D y-axis.
|
|
Attributes of the 3D plane orthogonal to the y-axis at the "front" of the cube.
|
|
Attributes of the 3D x-axis on the 3D plane orthogonal to the y-axis at the "front" of the cube.
|
|
Attributes of the 3D z-axis on the 3D plane orthogonal to the y-axis at the "front" of the cube.
|
|
Attributes of the 3D plane orthogonal to the y-axis at the "rear" of the cube.
|
|
Attributes of the 3D x-axis on the 3D plane orthogonal to the y-axis at the "rear" of the cube.
|
|
Attributes of the 3D z-axis on the 3D plane orthogonal to the y-axis at the "rear" of the cube.
|
|
Attributes of the 3D z-axis.
|
|
Attributes of the 3D plane orthogonal to the z-axis at the "front" of the cube.
|
|
Attributes of the 3D x-axis on the 3D plane orthogonal to the z-axis at the "front" of the cube.
|
|
Attributes of the 3D y-axis on the 3D plane orthogonal to the z-axis at the "front" of the cube.
|
|
Attributes of the 3D plane orthogonal to the z-axis at the "rear" of the cube.
|
|
Attributes of the 3D x-axis on the 3D plane orthogonal to the z-axis at the "rear" of the cube.
|
|
Attributes of the 3D y-axis on the 3D plane orthogonal to the z-axis at the "rear" of the cube.
|
Element Detail
View3D
A View3D element provides the container and the methods to create and display 3D elements.
It is contained in a JSXGraph board.
-
This element has no direct constructor. To create an instance of this element you have to call JXG.Board#create
with type "view3d".
- Possible parent array combinations are:
-
{Array} lower
{Array} dim
{Array} cube
- Here, lower is an array of the form [x, y] and dim is an array of the form [w, h]. The arrays [x, y] and [w, h] define the 2D frame into which the 3D cube is (roughly) projected. cube is an array of the form [[x1, x2], [y1, y2], [z1, z2]] which determines the coordinate ranges of the 3D cube.
- Throws:
- {Exception}
- If the element cannot be constructed with the given parent objects an exception is thrown.
- Examples:
var bound = [-5, 5]; var view = board.create('view3d', [[-6, -3], [8, 8], [bound, bound, bound]], { // Main axes axesPosition: 'center', xAxis: { strokeColor: 'blue', strokeWidth: 3}, // Planes xPlaneRear: { fillColor: 'yellow', mesh3d: {visible: false}}, yPlaneFront: { visible: true, fillColor: 'blue'}, // Axes on planes xPlaneRearYAxis: {strokeColor: 'red'}, xPlaneRearZAxis: {strokeColor: 'red'}, yPlaneFrontXAxis: {strokeColor: 'blue'}, yPlaneFrontZAxis: {strokeColor: 'blue'}, zPlaneFrontXAxis: {visible: false}, zPlaneFrontYAxis: {visible: false} });
Attribute Detail
{String}
axesPosition
Position of the main axes in a View3D element. Possible values are
'center' and 'border'.
Defined in: options3d.js.
Defined in: options3d.js.
- Default Value:
- 'center'
{Line3D}
xAxis
Attributes of the 3D x-axis.
Defined in: options3d.js.
Defined in: options3d.js.
{Plane3D}
xPlaneFront
Attributes of the 3D plane orthogonal to the x-axis at the "front" of the cube.
Defined in: options3d.js.
Defined in: options3d.js.
{Plane3D}
xPlaneFrontYAxis
Attributes of the 3D y-axis on the 3D plane orthogonal to the x-axis at the "front" of the cube.
Defined in: options3d.js.
Defined in: options3d.js.
{Plane3D}
xPlaneFrontZAxis
Attributes of the 3D z-axis on the 3D plane orthogonal to the x-axis at the "front" of the cube.
Defined in: options3d.js.
Defined in: options3d.js.
{Plane3D}
xPlaneRear
Attributes of the 3D plane orthogonal to the x-axis at the "rear" of the cube.
Defined in: options3d.js.
Defined in: options3d.js.
{Plane3D}
xPlaneRearYAxis
Attributes of the 3D y-axis on the 3D plane orthogonal to the x-axis at the "rear" of the cube.
Defined in: options3d.js.
Defined in: options3d.js.
{Plane3D}
xPlaneRearZAxis
Attributes of the 3D z-axis on the 3D plane orthogonal to the x-axis at the "rear" of the cube.
Defined in: options3d.js.
Defined in: options3d.js.
{Line3D}
yAxis
Attributes of the 3D y-axis.
Defined in: options3d.js.
Defined in: options3d.js.
{Plane3D}
yPlaneFront
Attributes of the 3D plane orthogonal to the y-axis at the "front" of the cube.
Defined in: options3d.js.
Defined in: options3d.js.
{Plane3D}
yPlaneFrontXAxis
Attributes of the 3D x-axis on the 3D plane orthogonal to the y-axis at the "front" of the cube.
Defined in: options3d.js.
Defined in: options3d.js.
{Plane3D}
yPlaneFrontZAxis
Attributes of the 3D z-axis on the 3D plane orthogonal to the y-axis at the "front" of the cube.
Defined in: options3d.js.
Defined in: options3d.js.
{Plane3D}
yPlaneRear
Attributes of the 3D plane orthogonal to the y-axis at the "rear" of the cube.
Defined in: options3d.js.
Defined in: options3d.js.
{Plane3D}
yPlaneRearXAxis
Attributes of the 3D x-axis on the 3D plane orthogonal to the y-axis at the "rear" of the cube.
Defined in: options3d.js.
Defined in: options3d.js.
{Plane3D}
yPlaneRearZAxis
Attributes of the 3D z-axis on the 3D plane orthogonal to the y-axis at the "rear" of the cube.
Defined in: options3d.js.
Defined in: options3d.js.
{Line3D}
zAxis
Attributes of the 3D z-axis.
Defined in: options3d.js.
Defined in: options3d.js.
{Plane3D}
zPlaneFront
Attributes of the 3D plane orthogonal to the z-axis at the "front" of the cube.
Defined in: options3d.js.
Defined in: options3d.js.
{Plane3D}
zPlaneFrontXAxis
Attributes of the 3D x-axis on the 3D plane orthogonal to the z-axis at the "front" of the cube.
Defined in: options3d.js.
Defined in: options3d.js.
{Plane3D}
zPlaneFrontYAxis
Attributes of the 3D y-axis on the 3D plane orthogonal to the z-axis at the "front" of the cube.
Defined in: options3d.js.
Defined in: options3d.js.
{Plane3D}
zPlaneRear
Attributes of the 3D plane orthogonal to the z-axis at the "rear" of the cube.
Defined in: options3d.js.
Defined in: options3d.js.
{Plane3D}
zPlaneRearXAxis
Attributes of the 3D x-axis on the 3D plane orthogonal to the z-axis at the "rear" of the cube.
Defined in: options3d.js.
Defined in: options3d.js.
{Plane3D}
zPlaneRearYAxis
Attributes of the 3D y-axis on the 3D plane orthogonal to the z-axis at the "rear" of the cube.
Defined in: options3d.js.
Defined in: options3d.js.