← Commit history

Silkscreen texture: rotate 180 to match Babylon UV so print reads correctly + arrows stay aligned

John Lauer ·03c816670a ·3mo ago ·parent 4c80865
3 files changed +1
AdomMachinePins-4pin-animated.glb
⋯ 1 unchanged line ⋯
AdomMachinePins-complete.zip
⋯ 1 unchanged line ⋯
scripts/build_board_glb.py+1
@@ -201,6 +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  # 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)])