We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 89d9f5b commit 8c2126cCopy full SHA for 8c2126c
lib/step-model-merger.ts
@@ -203,8 +203,10 @@ function adjustTransformForPlacement(
203
204
if (isThroughHoleComponent) {
205
// Place model's z=0 at board top surface.
206
- // position.z = 0 means the component sits directly on the board top.
207
- transform.translation.z = targetZ + boardThickness
+ // For through-hole components, the flange should always sit at board top (z=boardThickness),
+ // regardless of position.z from circuit JSON (which may include absolute coordinates or offsets
208
+ // that shouldn't affect the flange placement).
209
+ transform.translation.z = boardThickness
210
}
211
212
if (!isThroughHoleComponent && boardThickness > 0) {
0 commit comments