Description Usage Arguments Value Examples
write_obj
creates Wavefront OBJ files (including associated MTL and texture image).
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
piece_side |
A string with piece and side separated by a underscore e.g. "coin_face" |
suit |
Number of suit (starting from 1). |
rank |
Number of rank (starting from 1) |
cfg |
Piecepack configuration list or |
... |
Ignored. |
x |
Where to place piece on x axis of viewport |
y |
Where to place piece on y axis of viewport |
z |
z-coordinate of the piece. Has no effect if |
angle |
Angle (on xy plane) to draw piece at |
axis_x |
Ignored for now. |
axis_y |
Ignored for now. |
width |
Width of piece |
height |
Height of piece |
depth |
Depth (thickness) of piece. Has no effect if |
filename |
Name of Wavefront OBJ object. |
scale |
Multiplicative scaling factor to apply to width, height, and depth. |
res |
Resolution of the faces. |
A list with named elements "obj", "mtl", "png" with the created filenames.
1 2 3 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.