Example Code

STL Geometry in 3D Picture Control

Code and Documents

Attachment

Overview


This example program demonstrates how to display a StereoLithography (STL) geometry in a 3D picture control.

Some Computer Aided Design (CAD) software, like SolidWorks™, allows you to save 3D geometries in StereoLithography (STL) file format. You can view these files in LabVIEW using a 3D picture control.

Note: You can load only ASCII STL files in LabVIEW. Some CAD programs save STL files as binary STL files by default.

The attached example VI shows how to apply an STL geometry to a 3D object. You must have the LabVIEW 8.2 Professional Development System or later to run this VI.

You can apply transformations and textures and create object relationships between 3D objects with STL geometries just like any other 3D object.

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Contributors