path3d
shapesset 8× in templates and rigs
An SVG outline (`d`) filled and extruded into a solid, the one-tag form of `primitive > path` + `material`: the material attributes sit on the tag.
path3d#s25-border(d="M -25.35 81.25 L 25.35 81.25 C 33.36 81.25, 39.85 74.76, 39.85 66.75 L 39.85 -66.75 C 39.85 -74.76, 33.36 -81.25, 25.35 -81.25 L -25.35 -81.25 C -33.36 -81.25, -39.85 -74.76, -39.85 -66.75 L -39.85 66.75 C -39.85 74.76, -33.36 81.25, -25.35 81.25 Z" width=1.3 height=1.3 material=basic color=#ffb347 center=true position="0 20 0" rotation="0 22 -12")
Attributes
dtextThe outline, SVG path syntax (y up); extra sub-paths are holes.8×heightnumberThe extrusion depth, mm (default 0.3).8×materialtextThe material type or a defined material's name (default standard).8×widthnumberThe extrusion depth when `height` is not given, mm.8×position"x y z"7×colorcolour #rrggbb6×metalnessnumber5×opacitynumber5×roughnessnumber5×emissivecolour #rrggbb4×emissive-intensitynumber4×matchtexte.g. ledgefilament3×centertrue / false`true` recentres the solid on its own origin.2×clearcoatnumber2×clearcoat-roughnessnumber2×dimsnumber2×rotation"x y z"2×sidetexte.g. doublefront2×transparenttrue / false2×bevelnumber1×cast_shadowtrue / false1×scalenumber1×Where it goes
Written under
Examples
path3d#s25-borderin scenes/electrostatic-contourOpen and play →path3d#s25-border(d="M -25.35 81.25 L 25.35 81.25 C 33.36 81.25, 39.85 74.76, 39.85 66.75 L 39.85 -66.75 C 39.85 -74.76, 33.36 -81.25, 25.35 -81.25 L -25.35 -81.25 C -33.36 -81.25, -39.85 -74.76, -39.85 -66.75 L -39.85 66.75 C -39.85 74.76, -33.36 81.25, -25.35 81.25 Z" width=1.3 height=1.3 material=basic color=#ffb347 center=true position="0 20 0" rotation="0 22 -12")
assembly(preset=swarm-converge seed=7 granularity=triangle stagger=0.35)
0.4 0
2.2 linear 1
5.5 1
7 linear 0
path3d#s15-starin shapes/pathsOpen and play →path3d#s15-star(position="-306 29.75 0" width=9.35 height=9.35 opacity=1 material=standard color=#2dd4bf emissive=#0f766e emissive-intensity=0.6 roughness=0.32 metalness=0.2 d="M 0 0.85 L 0.368 0.637 L 0.736 0.425 L 0.736 0 L 0.736 -0.425 L 0.368 -0.637 L 0 -0.85 L -0.368 -0.637 L -0.736 -0.425 L -0.736 0 L -0.736 0.425 L -0.368 0.637 Z")
d
0 "M 0 0.85 L 0.368 0.637 L 0.736 0.425 L 0.736 0 L 0.736 -0.425 L 0.368 -0.637 L 0 -0.85 L -0.368 -0.637 L -0.736 -0.425 L -0.736 0 L -0.736 0.425 L -0.368 0.637 Z"
2.8 easeInOutCubic M 0 0.85 L 0.17 0.294 L 0.736 0.425 L 0.34 0 L 0.736 -0.425 L 0.17 -0.294 L 0 -0.85 L -0.17 -0.294 L -0.736 -0.425 L -0.34 0 L -0.736 0.425 L -0.17 0.294 Z
5.6 easeInOutCubic M 0 0.85 L 0.368 0.637 L 0.736 0.425 L 0.736 0 L 0.736 -0.425 L 0.368 -0.637 L 0 -0.85 L -0.368 -0.637 L -0.736 -0.425 L -0.736 0 L -0.736 0.425 L -0.368 0.637 Z
// the explicit <properties> block keeps `d` a DIRECT child (a factory
// param, not a node channel) — see wrappers.ts `literal`
properties
opacity
0 0.0001
0.7 easeOutCubic 1
path3d#s15-roundin shapes/pathsOpen and play →path3d#s15-round(position="0 29.75 0" width=9.35 height=9.35 opacity=1 material=standard color=#38bdf8 emissive=#0369a1 emissive-intensity=0.6 roughness=0.32 metalness=0.2 d="M 0 0.82 Q 0.41 0.41 0.82 0 Q 0.41 -0.41 0 -0.82 Q -0.41 -0.41 -0.82 0 Q -0.41 0.41 0 0.82 Z")
d
0 "M 0 0.82 Q 0.41 0.41 0.82 0 Q 0.41 -0.41 0 -0.82 Q -0.41 -0.41 -0.82 0 Q -0.41 0.41 0 0.82 Z"
2.8 easeInOutCubic M 0 0.82 Q 0.82 0.82 0.82 0 Q 0.82 -0.82 0 -0.82 Q -0.82 -0.82 -0.82 0 Q -0.82 0.82 0 0.82 Z
5.6 easeInOutCubic M 0 0.82 Q 0.41 0.41 0.82 0 Q 0.41 -0.41 0 -0.82 Q -0.41 -0.41 -0.82 0 Q -0.41 0.41 0 0.82 Z
properties
opacity
0 0.0001
0.7 easeOutCubic 1