Comments (4)
@JBraumueller You probably want to avoid fracturing before the fillet operation. Both shape
and merged
will be fractured if you don't specify otherwise. To do so you have to set the max_points
argument in fast_boolean
to something sufficiently large (or zero to disable checking completely).
In that case you probably don't need to manually merge the result from the first operation:
shape = gdspy.fast_boolean(Rectangle, Circle, 'not', max_points=0)
shape.fillet(20, 100)
Note that if the circle is inside the rectangle (shape
has a hole) fillet
is probably give the wrong result because of the connection between the hole and the outside boundary. In that case, you'll probably want to run fillet
before the boolean operation.
from gdspy.
Thank you very much for your answer.
I was using max_points=0 in the merge and I just tested using max_point=0 as you suggested without the additional merge. In both cases, the fillet works at the corners of the rectangle, but is not applied to the cutting-edge between rectangle and circle. The circle was not within the rectangle but only cuts out some section.
rectangle = gdspy.Rectangle([0,0], [50, 50])
circle = gdspy.Round([50+25], 25], 30)
shape = gdspy.fast_boolean(rectangle, circle, 'not', precision=0.01, max_points=0)
shape.fillet(20, 100)
gives me a non-rounded corner at the region where the circle was cut out from the rectangle.
Thank you again!
from gdspy.
That's expected. Unfortunately the fillet
function only works at vertices whose edges are long enough to touch a circle with the radius specified at both tangent points. That's probably not the case at the intersection of the rectangle and the circle, since the latter is composed of very small edges.
from gdspy.
Ok, I see. Thank you very much.
from gdspy.
Related Issues (20)
- RobustPath : Unsupported types for -: 'tuple' and 'tuple' HOT 1
- Use scaling to reduce file size HOT 1
- the direction of polygon in the cellreference is wrong HOT 3
- may be it is a bug for GdsLibrary.new_cell() HOT 6
- 'Cell' object has no attribute 'elements' HOT 1
- gdspy installation in python 3.10. HOT 1
- How can I get the information of the instance?
- Use gdspy in Klayout Macro developement (reopened) HOT 1
- How to read a gds file data and export it as PNG? HOT 1
- gdspy.inside only checks for inside the bbox HOT 1
- GdsLibrary object has no attribute 'cells' HOT 2
- Multiple cells with name: FGCCTE in GDSII file HOT 2
- result of get_bounding_box() for a polygon is wrong HOT 2
- conda install gdspy
- overwrite_duplicate not working with (use_current_library = True) HOT 1
- After gdspy boolean OR operation, help HOT 1
- [0.9.46] Python extension build fails when the PYPI tarball is used HOT 1
- Python tests fail HOT 1
- Merging polygons with gdspy boolean vs Klayout merge produces different results
- [Documentation] What does "intersect, but not cross" mean? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gdspy.