JXG.Polyhedron3D

Class

Creates a new 3D point object. Do not use this constructor to create a 3D point. Use JXG.View3D#create with type Polyhedron3D instead.

Attributes

Own

none

Inherited

Members

Own

none

Inherited

Methods

Own

toSTL(name)

Output polyhedron in ASCII STL format. Normals are ignored and output as 0 0 0.

Parameters

Name Type Description
name String

Set name of the model, overwrites property name

Returns

String

Details

Source
3d/polyhedron3d.js, line 193

(inner) generateMethod(what) → {function}

Generate methods like updateRenderer or setAttribute which call simultaneously the method with the same name for each face3d element of the polyhedron.

Parameters

Name Type Description
what String

Method name

Returns

Function consisting of a loop that calls the method for each face.

Type
function

Details

Source
3d/polyhedron3d.js, line 121

Inherited

Events

Own

none

Inherited

Parameters

Name Type Description
view JXG.View3D

The 3D view the polyhedron is drawn on.

polyhedron Object

Defining data for the polyhedron, i.e. vertice coordinates and faces, which are lists of vertex numbers or keys. The structure of this object is

polyhedron = {
       view: view,
       vertices: {},
       coords: {},
       coords2D: {},
       zIndex: {},
       faces: []
 };
faces Array

List of face3d objects. These have been already generated in createPolyhedron3D.

attributes Object

An object containing visual properties like in JXG.Options#polyhedron3d and JXG.Options#elements, and optionally a name and an id.

Details

Source
3d/polyhedron3d.js, line 58

Extends