stl2vrml
(To be removed) Convert STL file to virtual world file
stl2vrml
will be removed in a future release. For more information,
see stl2vrml
.
Description
stl2vrml(
converts an ASCII or
binary STL file that you specify with source
)source
to a
VRML97-compliant, UTF-8 encoded text file.
The converted VRML file has the same name as the source STL file, except that the
extension is .wrl
instead of .stl
. The
stl2vrml
function places the VRML file in the current
folder.
Tip
You can also use the vrimport
function to import
STL files. However, to import Physical Modeling XML files, use the stl2vrml
function.
stl2vrml(
creates the converted VRML file in the source
,destination
)destination
folder.
stl2vrml(
creates the converted virtual world file in the specified format.source
,destination
,format
)
Examples
Input Arguments
Tips
Use the created assembly virtual world files as templates for creating virtual scenes. Edit the scenes. For example, add lights, viewpoints, or surrounding objects, modify part materials, define navigation speeds, and so on.
The
stl2vrml
function places assembly parts in the global coordinate system. If thesource
is a physical modeling XML file, the resulting virtual world assembly file reflects the initial positions of parts defined in the XML file.To use the tree structure of the related SolidWorks® source file in the assembly virtual world file, avoid spaces in assembly and component names. To process the assembly VRML files (but not X3D files), you can use the
vrphysmod
function to obtain a Simulink® model with VRML visualization.