Sidebar

Home



Knowledge Base


Guides & Tutorials

Projects

Samples

kb:tutorials:advanced:use_3d_object_visualization_in_tng_software

Use 3D object visualization in TNG software

TNG software offers visualization/display of 3D models in the workspace area. 3D models can represent either workpiece, tool sensors, milling vise or even a CNC machine. User is able to create fully movable 3D model that recreates his exact machine and simulates machine movement.

Example of a 3D model of generic desktop CNC machine:

How to start

TNG uses dedicated file which contains the 3D model configuration. File should be located in user profile root folder. It is recommended to use a dedicated folder.

In order to be recognized by the software, user needs to insert sub-folder path and filename in settings:

File/Settings/User Interface/3D/View -> Model

In this case, dedicated folder is located in user profile and named “3dObj” and filename is “small_cnc.txt”:


In order that visualization is enabled, make sure that “Model” option is enabled under View/Show:

3D configuration file

As mentioned at the beginning, entire 3D model visualization is stored and configured within a main XML file.

Which means:

  • file needs XML declaration at the beginning: <?xml version=“1.0” encoding=“UTF-8”?>
  • use of XML tags and elements
  • structured hierarchy
  • attribute values should be written within quotes “”

NOTE: Main file can use dependency files, which can be external .stl files, or other 3D configuration XML files. But there can be only one main file.

PlanetCNC tags/elements and attributes

Bellow is the list of custom PlanetCNC tags and their attributes:

<Model/>


<Transform/>


<Color/>


<Expr/>


<Include/>


<Assembly/>


<Items/>


<Part/>


<Mesh/>


<Cuboid/>


<Sphere/>


<Cylinder/>


<Poly/>


<Move/>


Simple and straight forward form of a 3D configuration file:

<?xml version="1.0" encoding="UTF-8"?>
 
<Model>
  <Assembly Name="Main Assembly" Enable="true">
    <Items>
      <Assembly Name="Sub-Assembly">
        <Items>
          <Part>
            <Cuboid L W H>
          </Part>  
          <Part> 
            <Sphere R>
          </Part> 
          <Part>  
            <Cylinder R1 R2 Size>
          </Part>
        </Items>
      </Assembly>
    </Items>    
  </Assembly>			
</Model>

kb/tutorials/advanced/use_3d_object_visualization_in_tng_software.txt · Last modified: 2023/10/10 22:50 by andrej

Page Tools