← Back to community index
# contributor·Active

Techmannih - @Seve there are some concave and s...

mention there are some concave and some convex. can we use them with flags convex or concave?

Started by techmannihJan 9, 202631 messages

Discussion

Last active 5 months ago · plain text
techmannihoriginal post
<@757706909351411845> there are some concave and some convex. can we use them with flags convex or concave?
Seve
yes we should add those flags
techmannih
is there any default use like 0402x2 which is for default convex or concave
Seve
probably convex is the default
techmannih
Sorry I am founding lot of unwanted thing in 3d-viewer when i try to refactor with circuit-to-canvas.
Seve
Hmm it seems like just a bug with the conversion not related to clockwise/ccw
Seve
Because if we’re converting custom symbols it should just adopt whatever we say
techmannih
yes for custom symbols, the conversion should follow exactly what we define
techmannih
<@757706909351411845> yep, there is the rotation issue, we doest support the rotation to the polygon smtpad. do we need to add support rotation. ???
Seve
i don't know what we need to do exactly, but polygons are never represented with rotations in circuit json
Seve
it's not tricky
techmannih
https://github.com/tscircuit/kicad-to-circuit-json/pull/36
techmannih
Removing incorrect logic handling that was affecting the pill-shaped plated hole. https://github.com/tscircuit/kicad-to-circuit-json/pull/38
techmannih
Yes, I have added rotation support for circular holes and rectangular pads. It is also being generated in the circuit JSON, but I still need to figure out what the issue is in this case and why it is not working. I am also looking on it.
Seve
sg!
techmannih
https://github.com/tscircuit/circuit-to-canvas/pull/184
techmannih
I’ve fully switched to using the transformation matrix for the plated hole. All ctx.translate, ctx.save, ctx.restore, and ctx.rotate calls have been removed. I’ll address the rotation handling separately later on. Could you please review? https://github.com/tscircuit/circuit-to-canvas/pull/189
Seve
i'm not really sure what to do because i've given a lot of feedback to PRs but the quality doesn't seem to be getting better, i just don't have time to review PRs with a lot of mistakes
Seve
you have single letter functions and variables like `mat`
Seve
you also used the word `rotation` for a fourth time
techmannih
these are matrix and radian, yeah i change them.
techmannih
No, it was using ccwRotationDegrees.
Seve
Shared an attachment
techmannih
oh variable name, it was param
techmannih
Can you reopen it? I’ve applied the changes.
Seve
you need to get another reviewer before requesting my reviews, you need to get two reviews now for your PRs
Seve
the reviews must come from a maintainer
techmannih
sure

Want to add to the conversation?

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