how to export model coordinates?

Hello,
I am running the example spiralInductor.
Is there a way to export the geometry for fabrication?
Thank you

2 Comments

Hey Naftali,
I understand that you want to export the model geometrically. While there is not a straightforward approach, you can refer to the “mesh” function to try and generate a 3 dimensional surface:
Once you are able to generate a suitable mesh,you can install the “stlwrite” function from the Add On Manager:
You can refer to the below MATLAB Answer as a guide to install Add Ons:
Great, Thank you. will try

Sign in to comment.

 Accepted Answer

Hi Naftali,
To export the geometry of a spiral inductor from MATLAB for fabrication:
Ensure the spiral inductor object is created.
Use the "exportGeometry" function to export the geometry. For example, to export as an STL file:
inductor = spiralInductor('NumTurns', 5, 'InnerDiameter', 0.001, 'OuterDiameter', 0.005);
mesh = generateMesh(inductor);
exportGeometry(inductor, 'spiralInductor.stl');
Choose File Format:
- STL: For 3D printing.
- DXF: For 2D cutting.
- GDSII: For semiconductor fabrication.
Check the exported file using a CAD viewer.
Hope this helps.

2 Comments

Great, This is what I was looking for.
Thank you
I tried your suggestion and did not work.
Got this messgae
No results for exportGeometry in MathWorks documentation.
Did you mean: importgeometry (98 results in MathWorks documentation).
is this a MATLAB version issue?

Sign in to comment.

More Answers (0)

Categories

Products

Release

R2023b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!