← Commit history

Silkscreen texture: FLIP_LEFT_RIGHT to correct the export X-mirror; print + arrows now read correctly

John Lauer ·3d0010d271 ·3mo ago ·parent e228e84
3 files changed +1−1
AdomMachinePins-4pin-animated.glb
⋯ 1 unchanged line ⋯
AdomMachinePins-complete.zip
⋯ 1 unchanged line ⋯
scripts/build_board_glb.py+1−1
@@ -201,7 +201,7 @@ T("SOLDER PASTE",24.0,47.7,2.3,STEEL); T("300µm (0.3mm)",24.0,45.5,1.5,STEEL) T("jet-dispensed paste balls",24.0,43.5,1.4,STEEL); ARR(30.0,45.0,_ball[0],_ball[1],STEEL) print(f"  silkscreen texture {TEX}px: 4 labels + 3 callouts; solder arrow -> ball ({_ball[0]:.1f},{_ball[1]:.1f})") img.save("/tmp/v7_texture.png")-img=img.transpose(Image.ROTATE_180)   # GLB/Babylon UV maps this face rotated 180; pre-rotate to correct+img=img.transpose(Image.FLIP_LEFT_RIGHT)   # GLB export mirrors this face in X; pre-flip so print + arrows read correct  # add the board with the silkscreen texture (planar UVs; single-sided transparent print) uv=np.column_stack([(slab.vertices[:,0]-bx0)/(bx1-bx0), 1.0-(slab.vertices[:,1]-by0)/(by1-by0)])