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
Mirroring cross-sections #1049
Comments
yes, that would be a great addition This is on
|
#1050 extends the mirroring to all cross-sections To fix the routing polarity issues: I think we can add a new argument in component.mirror and componentReference.mirror that, if True, makes it so the returned Component or Reference is the base component but with all its ComponentSpec arguments having mirror=True. Then, when appropriate we can use this flag, for instance in the manhattan function if x_reflection is true. |
This issue is stale because it has been inactive for 60 days. Remove stale label or comment or this will be closed in 7 days. |
In #1048 I added an argument to flip the offsets of all sections in the pn cross-section
What would be the best place to add such a feature to generic cross-sections? Say, an argument in CrossSection that, if True, flips the signs of offset, all section offsets, all cladding_offsets, and all bbox_offsets?
CrossSection does not have a constructor where we could do this (it currently uses the BaseModel one). We could override that init and add the preprocessing there. Alternatively, if path.extrude is always called on cross-sections, maybe we could put it here. Does that cover all cases?
The text was updated successfully, but these errors were encountered: