Create geometries from primitives and boolean operators #138
-
Hello all, I've got a specific question rgd geometry creation: is it possible to define geometries from boolean operations on object primitives? E.g. can I intersect a CylindricalShell with a Box? Maybe easier to describe by what I want to achieve .. maybe there is a simple way .. otherwise it'll get tedious. So I want to create geometries in openEMS using Python modeling the following PCB antenna which is just a non-optimized "sketch" in KiCad I created: I want to have a parametrized geometry model in Python, currently, I've got this in openEMS: Currently, it uses Wires between the helix turning points, but I want to use Boxes (I can do that) .. BUT .. please have a look at this problem: So the Wires extend into the inner space of the CylindricalShells ... which is obviously wrong ... the Wire bodies must "merge" with the CylindricalShells. I use the CylindricalShells to model Vias. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hi, I haven't seen any boolean operations in openEMS interface, but what I have experience you have these options: Hope this helps. |
Beta Was this translation helpful? Give feedback.
-
you can use Blender to create complex geometries, and then export them as STLs |
Beta Was this translation helpful? Give feedback.
Hi, I haven't seen any boolean operations in openEMS interface, but what I have experience you have these options:
- create parametrized model using python which generates STL using some 3rd party library and then import generated model using PolyhedronReader
- using primitives using python functions with set priorities, at the place of object intersections the object with higher priority is taken, so if same materials intersect you don't have to do anything, for substraction you have to define material with er=1, mu=1 and give it highest priority therefore it will have same effect like cutting out these parts of model
- you can use fcad_pcb (https://github.com/realthunder/fcad_pcb) in Fr…