Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates to the non-plated hole and support for changes to mechanical/MountingHoles #209

Merged
merged 12 commits into from
Dec 18, 2024

Conversation

callendorph
Copy link
Contributor

Many changes here - most of them are going to support better handling of mounting holes.

@callendorph callendorph requested a review from bhusang November 8, 2024 23:32
@@ -376,6 +376,30 @@ public defn get-layers (vp:VirtualLP, offset:Pose = loc(0.0, 0.0)) -> Tuple<Laye
get-layers(child, offset * pose(child))
to-tuple $ cat(local-art, kid-art)

doc: \<DOC>
Retrieve Geoemtry for all including pads
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Retrieve Geoemtry for all including pads
->
Retrieve Geometry for all including pads

Null Numbering Object

This is a default object for creating packages that don't require
any pad numbering. These landpatterns may not contain any pads to
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this may not or should not?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't prevent composition of landpatterns or manually defining, for example, a mechanical hole pad outside of these constructs.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool, then maybe we change the language to something like?
"These landpatterns do not need to contain any pads to number."

This supports the cases where we don't need these
types in a landpattern generator.
This adds some additional geometry implementations
to suplement the JITX runtime
The Polygon and PolygonWithArcs have no `expand` operator in
the JITX runtime. I've just forced this to return the same
shapes for now so that I can have this functionality work.

It now prints an error message instead of just `FATAL`
The current platform can't support non-plated holes via
the `pcb-pad` definition. I've added:

1.  Generators for creating non-plated hole statements
2.  Landpatterns for non-plated holes.

I've left the current `npth-pad` function in place
and marked it with a deprecation warning. We will
remove in a future iteration.
@callendorph callendorph merged commit c63c3dc into main Dec 18, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants