529e74c1a6
Add the real LDraw LEGO parts (LeoCAD-style) as the posable objects.
- Vendor the curated 15-part LDraw closure under public/ldraw so it is
served at /blocs-pro/ldraw/ after build (CC BY 4.0, credits kept).
- src/utils/ldraw.js loads each part via three's LDrawLoader, caches the
geometry per type, applies the LDU->world scale and Y flip to match the
existing grid, and tints surfaces with the active colour.
- A LeoCAD-style PartsBar (colour row + category tabs + part grid) picks
the active part; Create mode places it at the grid cell and stores a
JSON-only brick { uID, type, color, position/dimensions, rotation } so
the piece syncs to peers like any other brick.
- Brick.jsx renders the cached LDraw clone for typed bricks and keeps the
parametric box as a fallback. Edit-mode tooling (select / move / colour
/ delete) walks up to the brick group so it works on multi-mesh pieces;
selection is shown with an emissive tint instead of the stud wireframe.
34 lines
1.0 KiB
Plaintext
34 lines
1.0 KiB
Plaintext
0 Box with 4 Faces without 4 Adjacent Edges
|
|
0 Name: box4-4a.dat
|
|
0 Author: Willy Tschager [Holly-Wood]
|
|
0 !LDRAW_ORG Primitive UPDATE 2024-01
|
|
0 !LICENSE Licensed under CC BY 4.0 : see CAreadme.txt
|
|
|
|
0 BFC CERTIFY CCW
|
|
|
|
0 !HISTORY 1998-07-15 [PTadmin] Official Update 1998-07
|
|
0 !HISTORY 2002-12-13 [hafhead] Made BFC compliant
|
|
0 !HISTORY 2003-03-12 [PTadmin] Official Update 2003-01
|
|
0 !HISTORY 2007-06-24 [PTadmin] Header formatted for Contributor Agreement
|
|
0 !HISTORY 2008-07-01 [PTadmin] Official Update 2008-01
|
|
0 !HISTORY 2012-02-16 [Philo] Changed to CCW
|
|
0 !HISTORY 2012-03-30 [PTadmin] Official Update 2012-01
|
|
0 !HISTORY 2024-01-03 [Holly-Wood] Complete re-write, original by Manfred Moolhuysen
|
|
0 !HISTORY 2024-01-29 [OrionP] Official Update 2024-01
|
|
|
|
2 24 -1 1 -1 -1 1 1
|
|
2 24 1 1 1 1 1 -1
|
|
2 24 -1 1 1 1 1 1
|
|
4 16 1 1 1 1 1 -1 -1 1 -1 -1 1 1
|
|
|
|
2 24 -1 0 -1 -1 0 1
|
|
4 16 -1 1 1 -1 1 -1 -1 0 -1 -1 0 1
|
|
|
|
2 24 1 0 1 1 0 -1
|
|
4 16 1 1 -1 1 1 1 1 0 1 1 0 -1
|
|
|
|
2 24 1 1 1 1 0 1
|
|
2 24 -1 1 1 -1 0 1
|
|
2 24 -1 0 1 1 0 1
|
|
4 16 1 1 1 -1 1 1 -1 0 1 1 0 1
|