bimtex

classroom

Toy shelf

toy-shelf dresses furniture:toy-shelf — and nothing else. Appearance is invisible to the drawing set, so adding this changes no plan, no section and no elevation.

  • 20of 500 meshes
  • 5slots
  • 1finish

Drag to orbit · scroll to zoom

The build. Made here, now, by the same interpreter a model gets.
Toy shelf, shown as a photorealistic visual reference
The reference. AI-generated, not bimtex output — the authored input this body was written against.
$frame:carcass
$frame:bin1
$frame:bin2
$frame:bin3
$frame:bin4

This definition leaves $frame:carcass and $frame:bin1 and $frame:bin2 and $frame:bin3 and $frame:bin4 open, and a look line fills them. Every combination is one body — same geometry, same selector, same sheets — so the block below rewrites itself as you pick. Only materials are slottable: a size would have to agree with the plan, so it stays on the entity.

Paste this

Every part: the 5 materialdefs the body resolves to, then the definition. Copying the lookdef alone still compiles and still validates — it just renders grey.

{"t":"materialdef","id":"pack-cls-coral","of":"paint","value":58,"accent":"#d9614c","body":{"roughness":0.6}}
{"t":"materialdef","id":"pack-cls-moss","of":"cloth","value":58,"accent":"#7a9a5b"}
{"t":"materialdef","id":"pack-cls-sky","of":"paint","value":58,"accent":"#4f93b8","body":{"roughness":0.6}}
{"t":"materialdef","id":"pack-cls-sun","of":"paint","value":72,"accent":"#e8a83c","body":{"roughness":0.6}}
{"t":"materialdef","id":"pal-oak-pale","of":"timber","value":80}
{"t":"lookdef","id":"toy-shelf","for":"furniture:toy-shelf","desc":"Low open toy shelf with divided cubbies and rounded edges.","slots":{"frame:carcass":"pal-oak-pale","frame:bin1":"pack-cls-sun","frame:bin2":"pack-cls-sky","frame:bin3":"pack-cls-coral","frame:bin4":"pack-cls-moss"},"body":{"type":"Group","children":[{"type":"Mesh","material":"$frame:carcass","geometry":{"type":"RoundedBoxGeometry","width":1,"height":0.045,"depth":0.32,"radius":0.012},"position":[0,0.0225,0]},{"type":"Mesh","material":"$frame:carcass","geometry":{"type":"RoundedBoxGeometry","width":0.96,"height":0.04,"depth":0.3,"radius":0.012},"position":[0,0.335,0]},{"type":"Mesh","material":"$frame:carcass","geometry":{"type":"RoundedBoxGeometry","width":1,"height":0.05,"depth":0.32,"radius":0.012},"position":[0,0.65,0]},{"type":"Mesh","material":"$frame:carcass","geometry":{"type":"RoundedBoxGeometry","width":0.045,"height":0.68,"depth":0.32,"radius":0.015},"position":[-0.49,0.34,0]},{"type":"Mesh","material":"$frame:carcass","geometry":{"type":"RoundedBoxGeometry","width":0.045,"height":0.68,"depth":0.32,"radius":0.015},"position":[0.49,0.34,0]},{"type":"Mesh","material":"$frame:carcass","geometry":{"type":"BoxGeometry","width":0.96,"height":0.61,"depth":0.025},"position":[0,0.33,-0.145]},{"type":"Mesh","material":"$frame:carcass","geometry":{"type":"RoundedBoxGeometry","width":0.035,"height":0.61,"depth":0.3,"radius":0.01},"position":[-0.16,0.325,0]},{"type":"Mesh","material":"$frame:carcass","geometry":{"type":"RoundedBoxGeometry","width":0.035,"height":0.61,"depth":0.3,"radius":0.01},"position":[0.16,0.325,0]},{"type":"Mesh","material":"$frame:bin4","geometry":{"type":"RoundedBoxGeometry","width":0.27,"height":0.235,"depth":0.25,"radius":0.028},"position":[-0.325,0.175,0.025]},{"type":"Mesh","material":"$frame:bin4","geometry":{"type":"RoundedBoxGeometry","width":0.075,"height":0.02,"depth":0.018,"radius":0.007},"position":[-0.325,0.23,0.158]},{"type":"Mesh","material":"$frame:bin2","geometry":{"type":"RoundedBoxGeometry","width":0.27,"height":0.235,"depth":0.25,"radius":0.028},"position":[0,0.175,0.025]},{"type":"Mesh","material":"$frame:bin2","geometry":{"type":"RoundedBoxGeometry","width":0.075,"height":0.02,"depth":0.018,"radius":0.007},"position":[0,0.23,0.158]},{"type":"Mesh","material":"$frame:bin3","geometry":{"type":"RoundedBoxGeometry","width":0.27,"height":0.235,"depth":0.25,"radius":0.028},"position":[0.325,0.175,0.025]},{"type":"Mesh","material":"$frame:bin3","geometry":{"type":"RoundedBoxGeometry","width":0.075,"height":0.02,"depth":0.018,"radius":0.007},"position":[0.325,0.23,0.158]},{"type":"Mesh","material":"$frame:bin1","geometry":{"type":"RoundedBoxGeometry","width":0.27,"height":0.235,"depth":0.25,"radius":0.028},"position":[-0.325,0.49,0.025]},{"type":"Mesh","material":"$frame:bin1","geometry":{"type":"RoundedBoxGeometry","width":0.075,"height":0.02,"depth":0.018,"radius":0.007},"position":[-0.325,0.545,0.158]},{"type":"Mesh","material":"$frame:bin3","geometry":{"type":"RoundedBoxGeometry","width":0.27,"height":0.235,"depth":0.25,"radius":0.028},"position":[0,0.49,0.025]},{"type":"Mesh","material":"$frame:bin3","geometry":{"type":"RoundedBoxGeometry","width":0.075,"height":0.02,"depth":0.018,"radius":0.007},"position":[0,0.545,0.158]},{"type":"Mesh","material":"$frame:bin2","geometry":{"type":"RoundedBoxGeometry","width":0.27,"height":0.235,"depth":0.25,"radius":0.028},"position":[0.325,0.49,0.025]},{"type":"Mesh","material":"$frame:bin2","geometry":{"type":"RoundedBoxGeometry","width":0.075,"height":0.02,"depth":0.018,"radius":0.007},"position":[0.325,0.545,0.158]}]},"preview":{"projection":"perspective","azimuth":38,"elevation":18,"fov":34,"margin":1.04}}

Or take the whole pack, which brings every entry and every material at once:

cat packs/classroom.ndjson model.ndjson > dressed.ndjson
Download classroom pack 44 KB · NDJSON ↓