tscircuit / 3d-viewer

3d viewer for printed circuit boards created using tscircuit
MIT License
0 stars 10 forks source link

Bottom traces are not drawn #24

Open seveibar opened 1 month ago

seveibar commented 1 month ago

Reproduction:

export const BlinkingLED = () => (
  <board width="40mm" height="30mm">
    <chip footprint="dip8" name="U1" pcbX="-15mm" pcbY="0mm" pinLabels={{
      1: "GND",
      2: "TRIG",
      3: "OUT", 
      4: "RST",
      5: "CTRL",
      6: "THRES",
      7: "DSCHG",
      8: "VCC"
    }} />

    <led name="LED1" pcbX="10mm" pcbY="5mm" />

    <resistor name="R1" resistance="330" footprint="0805" pcbX="0mm" pcbY="-5mm" />
    <resistor name="R2" resistance="10k" footprint="0805" pcbX="5mm" pcbY="-5mm" />
    <capacitor name="C1" capacitance="100nF" footprint="0805" pcbX="10mm" pcbY="-5mm" />

    <trace from=".U1 .GND" to=".R1 .pin1" />
    <trace from=".R1 .pin2" to=".LED1 .pin1" />
    <trace from=".LED1 .pin2" to=".U1 .OUT" />
    <trace from=".U1 .DSCHG" to=".U1 .CTRL" />
    <trace from=".U1 .THRES" to=".R2 .pin1" />
    <trace from=".R2 .pin2" to=".C1 .pin1" />
    <trace from=".C1 .pin2" to="net.VCC" /> 
    <trace from=".U1 .VCC" to="net.VCC" />
    <trace from=".U1 .RST" to="net.VCC" />
  </board>
)

Image

Image