Files
lego-builder/public/ldraw/parts/stud10.dat
T
L'électron rare 529e74c1a6 feat: ldraw lego parts in builder
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.
2026-06-13 18:43:44 +02:00

45 lines
1.7 KiB
Plaintext

0 Stud Truncated Laterally Curved 40D for Round 2 x 2 Parts
0 Name: stud10.dat
0 Author: Orion Pobursky [OrionP]
0 !LDRAW_ORG Primitive UPDATE 2020-01
0 !LICENSE Licensed under CC BY 4.0 : see CAreadme.txt
0 BFC CERTIFY CCW
0 !HISTORY 2004-01-06 [Steffen] Fixed Header
0 !HISTORY 2004-04-22 [PTadmin] Official Update 2004-02
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 2018-02-25 [MagFors] Corrected and added cond-lines
0 !HISTORY 2019-06-28 [PTadmin] Official Update 2019-01
0 !HISTORY 2020-06-28 [PTadmin] Official Update 2020-01
2 24 6 0 0 5.6145 0 1.9397
2 24 1.9387 0 5.6145 0 0 6
2 24 5.6145 -4 1.9397 5.6145 0 1.9397
2 24 6 -4 0 5.6145 -4 1.9397
2 24 5.6145 -4 1.9397 4.142 -4 4.142
2 24 4.142 -4 4.142 1.9397 -4 5.6145
2 24 1.9397 -4 5.6145 0 -4 6
2 24 1.9397 -4 5.6145 1.9387 0 5.6145
5 24 4.142 -4 4.142 4.142 0 4.142 1.9397 -4 5.6145 5.6145 -4 1.9397
5 24 6 -4 0 6 0 0 5.5434 -4 -2.2962 5.6145 -4 1.9397
5 24 0 -4 6 0 0 6 1.9397 -4 5.6145 -2.2962 -4 5.5434
1 16 0 -4 0 0 0 -6 0 4 0 6 0 0 3-4cyli.dat
1 16 0 0 0 0 0 -6 0 1 0 6 0 0 3-4edge.dat
1 16 0 -4 0 0 0 -6 0 1 0 6 0 0 3-4edge.dat
1 16 0 -4 0 0 0 -6 0 1 0 6 0 0 3-4disc.dat
3 16 6 -4 0 5.6145 -4 1.9397 0 -4 0
3 16 5.6145 -4 1.9397 4.142 -4 4.142 0 -4 0
3 16 4.142 -4 4.142 1.9397 -4 5.6145 0 -4 0
3 16 1.9397 -4 5.6145 0 -4 6 0 -4 0
4 16 6 0 0 5.6145 0 1.9397 5.6145 -4 1.9397 6 -4 0
4 16 5.6145 0 1.9397 4.142 0 4.142 4.142 -4 4.142 5.6145 -4 1.9397
4 16 4.142 0 4.142 1.9387 0 5.6145 1.9397 -4 5.6145 4.142 -4 4.142
4 16 1.9387 0 5.6145 0 0 6 0 -4 6 1.9397 -4 5.6145