Namespace: Raphael3d

Raphael3d

Global namespace object
Source:
  • /var/www/html/software/raphael3d/raphael3d.src.js, line 41

Classes

AABB
Camera
Edge
Face
Material
MaterialColor
Matrix4x4
Scene
Surface
Vector3
Vertex

Namespaces

Geom

Methods

<static> AxesCross(x, y, z, dx, dy, dz, paper, edgeAttrs) → {Object}

Function returning axes cross
Parameters:
Name Type Argument Description
x number x coordinate
y number y coordinate
z number z coordinate
dx number x lenght
dy number y lenght
dz number z lenght
paper Raphael.Paper
edgeAttrs Object <optional>
attrs of created edges
Source:
  • /var/www/html/software/raphael3d/raphael3d.src.js, line 3040
Returns:
{vertices,edges} array of newly created vertices and edges
Type
Object

<static> readObjFile(url, faceAttrs, edgeAttrs) → {Raphael3d.Surface}

Function to read obj file to create surface. Lines starting with '#' are comments, 'v x y x' lines (starting with 'v' char) are vertices with coordinates and 'f i j k' lines (starting with 'f' char) are faces with vertices indices (numbering from 1). See http://mech.fsv.cvut.cz:~/stransky/software/raphael3d/teapot.obj
Parameters:
Name Type Argument Description
url string url of the file
faceAttrs Object <optional>
face attrs
edgeAttrs Object <optional>
edge attrs
Source:
  • /var/www/html/software/raphael3d/raphael3d.src.js, line 2997
Returns:
Type
Raphael3d.Surface