← 返回函数库

offset

Misc 简单操作 已实现

语法

offset(...)

示例

Lot --> offset()

🎨 3D 预览 — 轮廓偏移

@StartRule
Lot --> primitiveQuad(8, 6)
        extrude(0.2)
        comp(f) { top: Base }

Base -->
  offset(-0.5)
  extrude(4)
  comp(f) { top: Roof | side: Wall }

Roof --> color(0.6, 0.2, 0.1)
Wall --> color(0.7, 0.7, 0.65)