Canvas3DItem provides wire-frame 3D vector graphics items for use with Canvas3D
Create a new item.
A new instance.
Create a 2x2x2 cube centered around [0,0,0]. You can then use -transform to change it's size, position and rotation.
A new instance.
Create a flat NxN grid centered around [0,0,0], spanning [-1,-1,0] to [1,1,0].
A new instance.
Create a prism.
A new instance.
Get/set the array of paths, where each path is an array of 3D vectors: [x,y,z]
For example, two lines:
Get/set the item Color
Get/set the item line-width.
Get/set the Boolean flag for stroking versus filling the item's path. See Pen: *stroke and Pen: *fill.
An array of transformation matrices to be applied when displayed in the canvas.
See Canvas3D: matrix_transforms.
These transforms are applied dynamically in the canvas each time it's refreshed. They don't alter the items paths in place.
Example:
Apply a transformation matrix on this items paths.
matrix |
A matrix. See Canvas3D: matrix_transforms. |
This transform is applied on the actual paths, and is a static one-time operation.
Example: