Plot and animate FEM geometry in 3-D space using VTK
vtkplot(fem)
[h,shpout]=plot(shp,fem,group,handle,format,complexdisplay,'noundeformed','title',titlestr,'scale',scalefactor,'silent')
VTKPLOT generates a 3-D representation of an IMAT_FEM using the Visualization Toolkit libraries. This visualization is very fast and can be further manipulated using the methods on the IMAT_VTKPLOT object, as well as through the toolbar icons and menus. This includes setting the formatting of the model, as well as setting the view and adding clipping planes to better view the model. An image of the model can also be exported to a number of formats, including X3D and VRML.
VTKPLOT expects that FEM information is passed in as an IMAT_FEM object. It returns the handle to the IMAT_VTKPLOT object containing the plot. This object can be manipulated from the command line using its methods. The available methods can be viewed by using the methods function, or by reading the help for IMAT_VTKPLOT.
GROUP is an optional IMAT_GROUP containing group information. If supplied, you will be able to display subsets of your FEM based on the elements in the group(s).
If you pass in a valid figure handle in the VTKPLOT function, the FEM will be displayed on the supplied figure. If you pass in a uipanel handle, the FEM will be displayed in that panel.
Node-to-ground springs are drawn with an up triangle. Node-to-ground dampers are drawn with adown triangle. Node-to-ground gaps are drawn with a diamond.
To specify the figure title, pass in the string 'title', followed by a string containing the title. If a title is not specified, the variable name for the supplied FEM will be used, if it has a name.
Passing in the string 'silent' will suppress message displays.
See imat_shp/vtkplot for a list of other supported command line options.
The output argument for VTKPLOT is an IMAT_VTKPLOT object. It contains all of the formatting and contents of the plot. If IDLines are modified during the plotting session, and they need to be retrieved, place the handle to the figure into uiwait, and then retrieve the modified imat_shp object once the user is done editing it.
>> vtkplot(fem)
>> h = vtkplot(fem,h,'title','The title')