Reference

Table of Contents  ▸  List of Commands  ▸  3D Meshes  ▸  add3d◀  trisolve    |    animate3d  ▶

add3d

Built-in command

Arguments:

Description:

Shift selected 3D objects with specified displacement vector, or merge them with specified

3D object, or merge all selected 3D objects together.

(equivalent to shortcut command +3d).

Default values:

ty=tz=0.

Examples of use:

• Example #1

$ gmic sphere3d 10 repeat 5 +add3d[-1] 10,{u(-10,10)},0 color3d[-1] ${-rgb} done add3d
Command: sphere3d 10 repeat 5 +add3d[-1] 10,{u(-10,10)},0 color3d[-1] ${-rgb} done add3d

• Example #2

$ gmic 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 done double3d 0
Command: 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 done double3d 0