Documentation Center    • Trial Software   • Product Updates
Add virtual reality visualization framework to block diagrams
vrphysmod(vrmlfile, model) vrphysmod(vrmlfile, subsystem)
vrphysmod(vrmlfile, model) or vrphysmod(vrmlfile, subsystem)
updates the model or subsystem that the SimMechanics™
mech_import function generates.  The model must be on the
MATLAB® path or already open prior to calling the vrphysmod
function.  As necessary, vrphysmod adds additional blocks to
visualize the mechanical system in virtual reality. You can then
save, rename, modify, and run the model. The .wrl extension for
vrmlfile is optional. The association between mechanical system
bodies and corresponding VRML nodes found in the VRML file is
based on the name correspondence.  If your model contains
several VR Sink blocks that refer to the same vrmlfile, this
function attempts to consolidate the animation signals of that
virtual scene into one VR Sink block.      Note:   The
SolidWorks® VRML export filter does not preserve pa