JXG.Surface3D

Class

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

Attributes

Own

none

Inherited

Members

Own

(private, static) polyhedron : Polyhedron3D

Description

If the surface is constructed with attribute style:'triangle' or style:'rectangle', a polyhodron3d-element is used for visualization.

Type
Polyhedron3D
Default Value
null
Source
3d/surface3d.js, line 129

Inherited

Methods

Own

F(u, v) → {Array}

Function defining the surface plus applying transformations.

Parameters

Name Type Description
u Number
v Number

Returns

Homogeneous coordinates [1, x, y, z] of length 4

Type
Array

Details

Source
3d/surface3d.js, line 263

X(u, v)

Function which maps (u, v) to z; i.e. it defines the x-coordinate of the surface plus applying transformations.

Parameters

Name Type Description
u Number
v Number

Returns

Number

Details

Source
3d/surface3d.js, line 274

Y(u, v)

Function which maps (u, v) to y; i.e. it defines the y-coordinate of the surface plus applying transformations.

Parameters

Name Type Description
u Number
v Number

Returns

Number

Details

Source
3d/surface3d.js, line 285

Z(u, v)

Function which maps (u, v) to z; i.e. it defines the z-coordinate of the surface plus applying transformations.

Parameters

Name Type Description
u Number
v Number

Returns

Number

Details

Source
3d/surface3d.js, line 296

(private) _F(u, v)

Internal function defining the surface without applying any transformations. Returns affine coordinates, i.e. [x, y, z]!

Parameters

Name Type Description
u Number
v Number

Returns

Array [x, y, z] of length 3

Details

Source
3d/surface3d.js, line 76

(private) _X(u, v)

Internal function which maps (u, v) to x; i.e. it defines the x-coordinate of the surface without applying any transformations.

Parameters

Name Type Description
u Number
v Number

Returns

Number

Details

Source
3d/surface3d.js, line 87

(private) _Y(u, v)

Internal function which maps (u, v) to y; i.e. it defines the y-coordinate of the surface without applying any transformations.

Parameters

Name Type Description
u Number
v Number

Returns

Number

Details

Source
3d/surface3d.js, line 98

(private) _Z(u, v)

Internal function which maps (u, v) to z; i.e. it defines the z-coordinate of the surface without applying any transformations.

Parameters

Name Type Description
u Number
v Number

Returns

Number

Details

Source
3d/surface3d.js, line 109

evalF(u, v) → {Array}

Generic function which evaluates the function term of the surface and applies its transformations.

Parameters

Name Type Description
u Number
v Number

Returns

Homogeneous coordinates of F(u, v)

Type
Array

Details

Source
3d/surface3d.js, line 228

updateCoords() → {JXG.Surface3D}

Update the coordinates of the wireframe model of the surface3d. Applies either transformation or updates wireframe coordinates.

Returns

Reference to the element.

Type
JXG.Surface3D

Details

See
Source
3d/surface3d.js, line 212

updateWireframe() → {JXG.Surface3D}

Update the 3D coordinates of the wireframe mesh.

Returns

Reference to the element.

Type
JXG.Surface3D

Details

See
Source
3d/surface3d.js, line 166

Inherited

Events

Own

none

Inherited

Parameters

Name Type Description
view View3D
F function
X function
Y function
Z function
range_u Array
range_v Array
attributes Object

Details

See
Source
3d/surface3d.js, line 54

Extends