There is the possibility to import surface geometries form CAD file. Currently, STL files format (ASCII or binary) are allowed. The following procedure shows how import surfaces using Tonatiuh:
- Select a surface node.
- Select ShapeCAD form the Shape menu or from the Shape taskbar.
|
Figure 1. Insert CAD surface. |
- When the action to insert this shape is selected by the user, a dialog window is opened to enable the selection of the desired CAD file geometry. Select the file and click Open:
|
Figure 2. Select a STL CAD file. |
- After the file selection, the new shape will be shown in Tonatiuh main windows.
|
Figure 3. Tonatiuh main window view after importing a shape from CAD file. |
The users have also an alternative way to insert these geometries in Tonatiuh, using the scripting. The following code is an example of scripting to create a cube importing the geometry from STL file:
tonatiuh.New();
tonatiuh.SelectNode( "//SunNode/RootNode" );
tonatiuh.CreateSurfaceNode();
tonatiuh.SelectNode( "//SunNode/RootNode/TShapeKit1" );
var arg = new Array("C:/Cube.stl" );
tonatiuh.CreateShape( "CAD_Shape", 1, arg );
Type of Nodes | User's Guide | Wiki Home