stl2vrml
Convert STL file to virtual world file
Description
stl2vrml(
converts an ASCII or binary STL file that you specify withsource
)source
to a VRML97-compliant, UTF-8 encoded text file.
这converted VRML file has the same name as the source STL file, except that the extension is。wrl
instead of。stl
。这stl2vrml
function places the VRML file in the current folder.
stl2vrml(
creates the converted VRML file in thesource
,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.
这
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
获取Simulink的功能金宝app®model with VRML visualization.