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.
23 lines
790 B
Plaintext
23 lines
790 B
Plaintext
0 Stud Group Truncated Laterally Curved 40D for Round 2 x 2 Parts
|
|
0 Name: stug10-2x2.dat
|
|
0 Author: Magnus Forsberg [MagFors]
|
|
0 !LDRAW_ORG Primitive UPDATE 2020-01
|
|
0 !LICENSE Licensed under CC BY 4.0 : see CAreadme.txt
|
|
|
|
0 BFC CERTIFY CCW
|
|
|
|
0 !HISTORY 2019-06-28 [PTadmin] Official Update 2019-01
|
|
0 !HISTORY 2020-06-28 [PTadmin] Official Update 2020-01
|
|
|
|
|
|
0 // activate next lines to add logos on studs
|
|
0 // 1 16 10 -4 10 1 0 0 0 1 0 0 0 1 logo5.dat
|
|
0 // 1 16 -10 -4 10 1 0 0 0 1 0 0 0 1 logo5.dat
|
|
0 // 1 16 -10 -4 -10 1 0 0 0 1 0 0 0 1 logo5.dat
|
|
0 // 1 16 10 -4 -10 1 0 0 0 1 0 0 0 1 logo5.dat
|
|
|
|
1 16 10 0 10 1 0 0 0 1 0 0 0 1 stud10.dat
|
|
1 16 -10 0 10 0 0 -1 0 1 0 1 0 0 stud10.dat
|
|
1 16 10 0 -10 0 0 1 0 1 0 -1 0 0 stud10.dat
|
|
1 16 -10 0 -10 -1 0 0 0 1 0 0 0 -1 stud10.dat
|