stlwrite

Write mesh to STL file

Syntax

stlwrite(objname,filename)

Description

example

stlwrite(objname,filename) writes the triangles in the mesh for an antenna or array object to an STL file in text format using the specified file name.

Examples

collapse all

Create a waveguide antenna for operation at 8 GHz and compute the impedance.

w = design(waveguide,8e9);
Z = impedance(w,8e9);

Create an STL file for the above antenna.

stlwrite(w,'waveguide_8GHz.stl')

You will see the waveguide_8GHz.stl file in your current folder.

Load waveduide_8GHz.stl and visualize the platform.

plat = platform('FileName','waveguide_8GHz.stl','Units','m')
plat = 
  platform with properties:

    FileName: 'waveguide_8GHz.stl'
       Units: 'm'
        Tilt: 0
    TiltAxis: [1 0 0]

show(plat)

Input Arguments

collapse all

Antenna or array object, specified as an antenna or array handle.

Name of STL file, specified as a character vector in STL format.

Introduced in R2019a