Table of Contents ▸ List of Commands ▸ 3D Meshes ▸ add3d | ◀ trisolve | animate3d ▶ |
add3d | Built-in command |
Arguments:
- tx,_ty,_tz or
- [object3d] or
- (no arg)
Description:
Shift selected 3D objects with specified displacement vector, or merge them with specified3D object, or merge all selected 3D objects together.
(equivalent to shortcut command +3d).
Default values:
ty=tz=0.
Examples of use:
• Example #1
sphere3d 10 repeat 5 { +add3d[-1] 10,{u(-10,10)},0 color3d[-1] ${-rgb} } add3d

• Example #2
repeat 20 { torus3d 15,2 color3d[-1] ${-rgb} mul3d[-1] 0.5,1 if $>%2 rotate3d[-1] 0,1,0,90 fi add3d[-1] 70 add3d rotate3d[-1] 0,0,1,18 }
