by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - FEM/PDE
Introduced first in SolidGeometry 4.0, Creation date: 2017-07-20, Last change: 2025-09-14
See Also: pdemodelofSG
, FSplot
, pdestressstatic
pdeplotfaces(model)
model: | pde model |
model=pdemodelofSG(SG);
pdeplotfaces(model);
The function pdeplotfaces is designed to plot the surfaces of a PDE model to facilitate selection. It is part of the SolidGeometry library and was introduced in version 4.0.
The function pdeplotfaces performs the following steps:
pdegplot function with the model as an argument. The pdegplot function is used to plot the geometry of the PDE model.'Facelabel','on' is passed to pdegplot, which enables the labeling of faces in the plot. This helps in identifying and selecting different surfaces of the model.show command is used to display the plot. This command ensures that the plot window is brought to the front and made visible to the user.An example of how to use the pdeplotfaces function is provided:
SG = SGreadSTL('/Applications/MATLAB_R2017a.app/toolbox/pde/pdedata/BracketWithHole.stl', 1000);
model = pdemodelofSG(SG);
pdeplotfaces(model);
In this example, an STL file is read using SGreadSTL, and a PDE model is created from the solid geometry using pdemodelofSG. The pdeplotfaces function is then called to plot and label the faces of the model.