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 |
faces |
Array | List of face3d objects. These have been already generated in |
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