Ray Kholodovsky - warning messages from updatin...
warning messages from updating to latest. not sure if related to, but see how footprint pads on bottom look a different way, while 3d model is rotated some other way.



32 Replies
looks like plated holes are completely not rendering in all my tsx 3d models
plated holes broken all around

CC @Techmannih yea we were literally discussing this the other day
plated holes not rendering in 3d viewer is very odd, CC @Abse maybe
@Ray Kholodovsky can you right click and select "Jscad Renderer", I'm curious if it's manifold-specific
thanks for the report- this is high priority
Yes, they render with jscad selected

kk it's a manifold issue (CC @Abse or @shibo )
yes please, I made the mistake of updating to try to get any latest features before showing updates to team.
any way to revert back to older version for time being?
yes absolutely, just do
bun add tscircuit@1.2.3 or whatever your previous version is
hopefully you have a version control record of it
let me know if you still see issues, it automatically loads some features from latest (but not related to the viewer)just a normal plated hole will do to repro ?
yes, on .798 now, was possibly on .766 before
@Ray Kholodovsky yes if possible upload circuit json
thank you
wait am I gonna miss any major feature rendering things if I stay on jscad renderer for now?
no both should jscad and manifold should render the same things
ok sweet so staying on jscad for now
here is what the "component on bottom of pcb rotation is wrong relative to pads rotation" looks like now.


CC @Techmannih
there's no rigor around CCW/CW rotation for bottom side of board right now
I was just wondering whether "110 deg" in kicad means the same direction as it does in tsci
yea it's ambiguous for the bottom layer because it depends on the position of the viewer
i.e. if the person is LOOKING at the bottom of the board, the CCW direction is different than if they're seeing through the board
i think we're assuming that the viewer is always viewing from the top side, but this distinction gets lost especially as people start trying wacky math
@Techmannih we cannot fuck this up
trivial repro i think


it also looks like the behavior with regard to the pads is correct, which is very good
yeah... but the actual rotation needs to be absolute to something, and this should all be generated THEN the user can orbit the 3d model however and it doesn't change.
Can you just replicate exactly however kicad does all this? cuz I'm already used to it and haven't noticed any major issues/ objections to it (I don't think).
-rotate a component on the top of the board 30 degrees and it rotates about the center in this direction.
-flip it to the bottom of the board and it is oriented in this direction.
-etc
This is all based on 2d views looking from the top, I think. The 3d view should only ever exactly replicate what the 2d pcb view already shows, IMO
yea this is exactly what we should be doing, always top-relative CCW
confirmed bug in GLTF viewer as well

fwiw @Techmannih you must have implemented the pad rotation correctly, because AFAIK that is all correct 👍
patch on it's way

There’s a CAD model rotation issue on both layers, as we discussed earlier. The rotation currently supports only 90°, 180°, 270°, and 360°
I have added repro in gltf.
here's my repro on tscircuit.com fwiw
seveibar/top-and-bottom-resistor - tscircuit
A tscircuit component created by seveibar
GitHub
fix: render circular plated holes correctly for manifold viewer by ...
Circular plated holes weren’t rendering because the board drill used the outer diameter, removing the copper ring during clipping.
This change switches the board drill to use hole_diameter , ensuri...
cad model rotation seems correct now
