← Back to community index
# contributor·Active

Techmannih - Screenshotfrom2026-06-1217-10-57.p...

we have a cad model issue for footprint="kicad:..." The imported CAD model is much larger than the footprint landed pads. Are all CAD models showing up as white !!! CC mention . This seems like a big regression KiCad models may need to be converted to mm they may be in inches bec

Started by techmannihJun 12, 202633 messages

Discussion

Last active 20 days ago · plain text
techmannih
we have a cad model issue for footprint="kicad:..."
techmannih
The imported CAD model is much larger than the footprint landed pads.
techmannih
Are all CAD models showing up as white
Seve
!!!
Seve
CC <@398467566588264449> . This seems like a big regression
Seve
KiCad models may need to be converted to mm- they may be in inches because the resize factor looks like 2.56x or something
techmannih
in which repo i need to add the repro for this
techmannih
I have tested it in core, and it works well there.
Seve
Hmm not sure this is strange, try eval
techmannih
yep gets a regression in the eval
techmannih
The bug in eval was that the KiCad loader incorrectly applied a (modelUnitToMmScale) 2.54x scale to the STEP CAD model,
Seve
Nice find lets add a regression test
techmannih
yea on it
techmannih
Can you check it https://github.com/tscircuit/eval/pull/2905
techmannih
<@757706909351411845> <@398467566588264449> I have fixed the scaling issue, now we have the position offset issue for pinrow/pinheader for kicad cad models
Abse
maybe check if the cad model pos relative to the pin1 or the center of the fp
techmannih
<@398467566588264449> I found the issue in circuit-json-to-gltf: when center_of_component_on_board_surface is used, the CAD model origin is inferred incorrectly.
techmannih
getMeshOrigin() returns { x: 0, y: 0, z: 0 } directly when no explicit model_origin_position is provided
techmannih
Can you take a look https://github.com/tscircuit/circuit-json-to-gltf/pull/166
techmannih
<@398467566588264449> can you take a look https://github.com/tscircuit/circuit-json-to-gltf/pull/167
Seve
<@398467566588264449>
Abse
hey u back home ?
Abse
I think it lg , can u double check when u have free time
Seve
Im back!!!!
techmannih
Wow welcome back!!! after 2 weeks 🫡
techmannih
<@398467566588264449> the kicad library cad model are white bcoz the 3d-viewer STEP pipeline was ignoring brep_faces color data from occt-import-js and collapsing the STEP mesh into a single material.
techmannih
can you take a look https://github.com/tscircuit/3d-viewer/pull/943
techmannih
<@757706909351411845> <@398467566588264449> https://github.com/tscircuit/3d-viewer/pull/945
Abse
can u give me the repro link in the preview
techmannih
Ohh sorry
techmannih
Updated
Abse
nice work

Want to add to the conversation?

Reply in Discord so your notes stay connected to the source.
Continue in Discord ↗