Example Code

How to Rotate a .wrl File in LabVIEW

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Software

  • LabVIEW

Code and Documents

Attachment

Overview

This example shows how to open and manipulate a 3D WRL model

 

Description

A .wrl is created from many different 3D modeling languages. The nice thing with LabVIEW, is that you can see these 3D models in a 3D picture control. While the model can be rotated by changing the camera controller and using your mouse, you can also use the built in subVIs to manipulate the model.

 

Requirements

LabVIEW Full Development System 2012 or compatible

 

Steps to Implement or Execute Code:
1- Enter the .wrl model file path
2- Run the VI
3- Move the model by clicking and dragging inside the 3D picture
4- Test the automatic rotation using the boolean controls (Rotate X,Y,Z)

  

Additional Information or References

VI Block Diagram

 9581.PNG

 

 **This document has been updated to meet the current required format for the NI Code Exchange. **

 

Chris Van Horn
Applications Engineer

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