Look into the following code which imports the sample .stl file into MATLAB and adds the geometry to the PDE model.
In the “pdegplot()” function change the parameter “FaceAlpha” to "0" so that only edges are shown from the geometry present in the .stl file
model = createpde;
importGeometry(model,'cube.stl');
pdegplot(model,'FaceLabel','on', 'FaceAlpha',0)
Results of the about code with the sample cube geometry is as shown below.
With “FaceAlpha = 1”
Results of the about code with the sample cube geometry is as shown below.
With “FaceAlpha = 0”
Refer this "Link" for further information on importing the .stl file and changing the parameters.