Update mesh clone test (#6597)

This commit is contained in:
alteous
2025-05-15 17:46:37 +01:00
committed by GitHub
parent 21e967ea7f
commit 92fc294eae
9 changed files with 961 additions and 140 deletions

View File

@ -1,13 +1,18 @@
import "../inputs/cube.obj" as cube
@(lengthUnit = m)
import "../inputs/cube.obj" as yellow
model = cube
yellow
|> translate(%, x = -2000, y = -2000)
appearance(yellow, color = "#ffff00")
model2 = clone(model)
|> translate(
x = 1020,
)
|> appearance(
color = "#ff0000",
metalness = 50,
roughness = 50
)
red = clone(yellow)
|> translate(%, x = 4000)
appearance(red, color = "#ff0000")
green = clone(yellow)
|> translate(%, y = 4000)
appearance(green, color = "#00ff00")
blue = clone(red)
|> translate(%, y = 4000)
appearance(blue, color = "#0000ff")