Changes
/* Generating and Controlling the Mesh */
[[Image:Splash-cad.jpg|right|800px720px]]<strong><font color="#655234" size="4">An Intuitive 3D Parametric CAD Modeler Shared By All [[EM.Cube]] Computational Modules</font></strong>
<table>
<tr>
<td> [[image:Cube-icon.png | link=Getting_Started_with_EM.CUBECube]] [[image:fdtd-ico.png | link=EM.Tempo]] [[image:prop-ico.png | link=EM.Terrano]] [[image:postatic-ico.png | link=EM.IlluminaFerma]] [[image:staticplanar-ico.png | link=EM.FermaPicasso]] [[image:planarmetal-ico.png | link=EM.PicassoLibera]] [[image:metalpo-ico.png | link=EM.LiberaIllumina]] </td>
<tr>
</table>
[[Image:Back_icon.png|40px30px]] '''[[EM.Cube | Back to EM.Cube Main Page]]'''
== CubeCAD in a Nutshell ==
CubeCAD is a comprehensive, parametric, 3D CAD modeler along modeling environment equipped with integrated mesh generation, data processing and visualization capabilities and a powerful Python scripting environmentinterpreter. A highly streamlined visual interface literally puts all of CubeCAD's features at your fingertips. With the click of buttons, you can build complex 3D models and structures in seconds using a large variety of intuitive mouse-based object creation and transformation tools. Import and export of standard CAD formats allow for native construction of complex geometries along with the ability to fly in external CAD models with utmost ease. CubeCAD also features an extensive library of mathematical functions that can be used for construction of new geometries and data or post-processing of existing data. CubeCAD allows you to visualize simulated, measured or imported 3D data in a variety of formats and overlay them on your CAD structures.
All of [[EM.Cube]]'s computational modules use CubeCAD together with individually customized navigation trees as their graphical user interface and geometry definition utility. Learning CubeCAD is therefore the gateway to stepping stone for learning all the other modules. Once you have mastered the basics of CubeCAD, using the other modules will be very straightforward.
<table>
<tr>
<td>
[[Image:cad_manual-25_tn.jpg|thumb|left|640px|An example of a complex CAD geometric structure in CubeCAD.]]
</td>
</tr>
Native Solids: Box, cylinder, cone, pyramid, sphere, ellipsoid, torus, and polymesh solids (generalized polyhedra)</li>
<li>
Native Surfaces: Rectangular strip (or loop), circle strip (or ring), radial strip, ellipse strip, spiral strip, triangle strip, taper strip (with exponential transition), regular polygon, polystrip, NURBS strip, polymesh surfaces, equation-based, grid-based and data-file-based parametric surfaces</li>
<li>
Native Curves: line, polyline, NURBS curve, circle, super-quadratic curve, parabola, hyperbola, spiral curve, helix, and equation-based Cartesian, polar and parametric curves and grid-based and data-file-based curves</li>
<li>
Easy mouse-based object creation and real-time editing with preview</li>
<li>
Translate, rotate, scale, mirror and link operations</li>
Fillet sharp corners and polylines</li>
<li>
Sweep curves into strips, pipes or rail curve and surfaces along other curves</li>
<li>
Fill closed curves to create planar objects</li>
<li>
Merge or sew curves</li>
<li>
Roughen surfaces and solids with specified statistics</li>
<li>
Create random clouds of a given key object within a specified container object</li>
<li>
Fractal trees with random pruning</li>
<li>
Adaptive grid with local view rotation</li>
<ul>
<li>
Define variables to relate and control CAD geometric object properties</li>
<li>
Constrained variables with arbitrary mathematical expressions including random variablesand Python functions</li>
<li>
Continuous, discrete or mixed parametric spaces</li>
<li>
Dynamic update and parametric editing</li>
<li>
Dry runs for sanity check</li>
<li>
Object links with arbitrary local offsets and rotation angles</li>
</ul>
Shapefile import</li>
<li>
DXF import/export</li> <li> FACET file import/export for triangular surface mesh</li>
<li>
</ul>
Hundreds of mathematical functions for data processing</li>
<li>
User defined Python functions and expressionsscripts</li>
<li>
Statistical analysis of data</li>
Differentiation, integration, discrete Fourier transform and linear regression of data</li>
<li>
Data generator utility for creation of 3D data of Cartesian, spherical and mesh typesdata</li>
</ul>
<li>
2D complex uniform and non-uniform data planes with magnitude, phase and 3D vector plots</li>
<li>
Vectorial data surfaces and planes with individual X, Y, Z and total plots</li>
Extensive graphing capability (Cartesian, polar, Smith chart, bar chart, polar stem chart, etc.) with dynamic editing</li>
</ul>
== Constructing Physical Structures Using Standard Geometric Objects ==
===The Variety of EM.Cube's Native Object Types===
In [[EM.Cube]], objects are generally categorized into four types: solids, surfaces, curves and points. A Point is a dimensionless object that is represented by a set of coordinates (x,y,z). Curves are one-dimensional special objects, whose length can be measured. The simplest curve object is a (straight) line. Surfaces are two-dimensional objects whose surface area can be measured. A surface is usually characterized by a number of edges that enclose the object's area. The edges meet at vertices or nodes. The simplest surface object is a rectangle strip, which has four edges and four vertices. Solids are three-dimensional objects whose volume can be measured. A solid is usually characterized by a number of faces that enclose the object's volume. Faces meet at edges and edges meet at vertices or nodes. The simplest solid object is a box, which has six faces, twelve edges and eight vertices. In addition to the specific standard object types, there are generic curve objects, generic surface objects and generic solid objects. Most external CAD objects are imported as objects of the generic type.
<table>
<tr>
<td> [[Image:lcs_tn_newCADVAR1_new.png|thumb|left|450px640px|The local Coordinates System (LCS) Property dialog of Basic Shapesa dimensional triangle strip object.]]</td>
</tr>
<tr>
<td> [[Image:persistentCADVAR2_new.png|thumb|left|300px640px|Changing CubeCAD's drawing mode from the preferences Property dialog.]] </td></tr><tr><td> [[Image:draw_modes_tn.jpg|thumb|left|450px|The various drawing modesof a nodal polystrip object.]]</td>
</tr>
</table>
===Glossary of Standard Geometric Objects===
[[Image:Info_icon.png|40px]] Learn To learn more about CubeCAD's the standard geometric objects, see the '''[[Glossary of EM.Cube's Standard Geometric Objects | Standard Geometric Objects]]'''.
{| class="wikitable"
| [[File:curves_tn.jpg|CURVES|260px]]
|}
=== Local Coordinate System ===
[[EM.Cube]] provides a number of different coordinate systems. The two most important ones are the World Coordinate System (WCS) and the Local Coordinate System (LCS). Every object has a Local Coordinate System that determines the location of the object in the world coordinate system and its orientation, <i>i.e.</i>, its rotation angles with respect to the world principal axes. The center of the local coordinate system is the most important characteristic point of an object. The position of the LCS center varies among different object types. For example, the LCS center of a box is the center of its bottom face, while the LCS center of a sphere is its true geometrical center. The LCS has three local X-, Y-, and Z-axes. For most objects, these axes line up with the object's natural axes. For example, the local Z-axis of a cylinder or a cone is always aligned along its geometrical axis. When you draw a new object, its LCS axes are aligned along the principal world axes by default. After you rotate an object, its LCS axes are no longer aligned with the principal world axes.
When you start the [[EM.Cube]] application, you will only see the world X- and Y-axes in the Project Workspace. A small trident icon at the lower left corner of the workspace also shows the world coordinate system at all times. There are many instances when the relative orientation of objects with respect to one another and their positive or negative directions are very important. In such cases, making the LCS of objects visible would be very useful. You can enable the local coordinate system of an object by selecting it, right clicking on the surface of the object or right clicking on its name in the Navigation Tree and selecting '''Show LCS''' from the contextual menu. This will display the red, green and blue local X-, Y- and Z-axes of the objects in dashed lines. To disable the LCS, select '''Hide LCS''' from the contextual menu of that object.
<table>
<tr>
<td>
[[Image:lcs_tn_new.png|thumb|left|450px|The local Coordinates System (LCS) of Basic Shapes.]]
</td>
</tr>
</table>
=== Organizing Objects in Color Groups ===
<tr>
<td>
[[Image:cad_manual-0_new.png|thumb|left|360px480px|CubeCAD's Navigation Tree.]]
</td>
</tr>
You can move objects from one color to another in CubeCAD. You can also move objects from CubeCAD to other modules or among different modules. To transfer an object from its current color group to another color group, first select it in the Project Workspace and right click on its surface to open the contextual menu. Select '''Move To''' from the contextual menu. This menu item opens up to a number of submenus that include CubeCAD and possibly the names of some other [[EM.Cube]] modules. Each submenu leads to yet other submenus that contain the names of all the object groups that are available for object transfer. For instance, if CubeCAD has three color groups, color_1, color_2, color_3, you will see submenus like''' Move To → CubeCAD → Color_1''', '''Color_2''' or '''Color_3'''.Select the desired object group to transfer the selected object to. The transferred object's name is removed from its original color group and is added to the new color group. The color of the transferred object also changes to that of the new color group. In exactly the same way, you can transfer any object from its current group in any module to any other object group in any other module as long as it is listed in the '''Move To''' submenus.
You can also transfer objects from the Navigation Tree. When you import external CAD objects, they are always imported into CubeCAD initially. Then, you have to move them to the right module. In such cases, you can select one of more object names on the Navigation Tree and right click on the highlighted selection to access the '''Move To''' submenus in the contextual menu. If you have highlighted a multiple selection using the '''{{key | Ctrl''' }} or '''{{key | Shift''' }} keys, remember to keep holding those keys down when right clicking; otherwise, you will lose the selection.
<table><tr><td> [[FileImage:moveobject_new.png|500px]] thumb|left|640px|Moving objects from their current color group to other another color group or other to another [[EM.Cube|EM.CUBE]] modulesmodule.]]</td></tr></table>
== Creating New Objects ==
=== Drawing CAD Objects in the Active Color Group ===
To draw an object in [[EM.Cube]], click one of the many '''Object''' buttons in '''Object Toolbar''' and start drawing a new object in the project workspace. Alternatively, you can call on any object creation tool through one of the menu items '''Menu > Object ⥸ Solids''', '''Surfaces''' or '''Curves''' submenus. Once an object creation tool is selected, the shape of the cursor changes to a cross, signifying that [[EM.Cube]] is in object creation mode. Left -click anywhere in the Main Window main window to draw an object of the selected type. While the new object is being drawn, a property dialog appears on the lower right corner of the screen. Also, a small '''Help Tip''' window opens up on the upper right corner of the screen that guides you through the drawing process. The property dialog allows you to customize the new object's dimensions and other parameters. The entered values for lengths length parameters are always in the currently selected project units and angles are measured in degrees.
<table>
<tr>
<td>
[[Image:activecolor_new.png|thumb|left|420px480px|Setting the active color.]]
</td>
</tr>
===The Property Dialog & Object Parameter Types===
Each CubeCAD object has a number of properties that are characteristic to the object type and are listed in its '''Property Dialog'''. When you draw a new object, its property dialog opens up while you are drawing it. After the new object has been created, its properties dialog remains open until you close it. To open the property dialog of an object, double click on the object's surface in the project workspace or first select it and then right click on its surface and select '''Properties...''' from its contextual menu. You can also open an object's property dialog by right -clicking on its name in the navigation tree and selecting '''Properties...''' from the contextual menu. The diagram on the right figure below shows the property dialog of a Box object. <table><tr><td> [[Image:box_tn_new.png|thumb|left|640px|A box object's property dialog and its edit handles.]]</td></tr></table>
All object property dialogs share some common fields:
* Nodal information such as node indices and coordinates (this applies to nodal object types like polyline, polystrip, etc.)
CAD objects are characterized by their Local Coordinate Systems (LCS). Spatial information contains two sets of information: '''LCS Center'''– the X-, Y-, and Z-coordinates of the origin of the local coordinate system, and '''LCS Rotation''' – the right-sense rotation angles of the object about the X, Y, and Z-axes before the object is translated to the specified base center. As you will see later, objects in CubeCAD can be linked to each other. The linkage information part of the property dialog shows whether an object is linked to another "parent" object and if so, in what manner. The type and number of property fields are unique to each differ among the native CubeCAD objectobjects. The box object, for instance, contains Lengthis characterized by '''X-Size''', Width and Height '''Y-Size''', '''Z-Size''' values along with Lock Base two '''Fix Center''' check boxes and two '''Cap Ends ''' check boxes. ===Modifying Objects Using Edit Handles=== Once you finish drawing an new object in the default "Draw & Edit" mode or when you open the property dialog of an object, [[EM.Cube]] enters its "Object Edit Mode". In this mode, a number of small red balls appear on the object that are called "Edit Handles" and are located at some of the object's snap points The exact number of edit handles varies among the different object types. For example, a box has six edit handles, one at the center of each face. A rectangular strip has four edit handles, one at the midpoint of each edge. A line has two edit handles at its two ends. In the "Object Edit Mode", you can grab an edit handle and drag it with the mouse to change the size or shape of an object. By grabbing we mean first hovering on the handle (mouse-over) to highlight it and then clicking the left mouse and dragging it around. In dimensional objects, grabbing an edit handle usually changes a certain length or an angle. In nodal objects, grabbing an edit handle changes the position of a node. === General Drawing Rules === By default, when you draw a new object, its property dialog appears at the lower right corner of main Window, and [[EM.Cube]]'s object edit mode is enabled. This means that you can edit the newly drawn object at this time. After the drawing is completed, the mouse cursor changes to its "Normal" arrow shape. Besides the default "Draw & Edit" mode, [[EM.Cube]] provides another drawing mode called "Persistent Draw". In this persistent mode, after you complete the drawing of an object, the mouse cursor does not return to "Normal" and stays in the drawing mode. You can continue drawing more objects of the same type as many as you like. Switching the drawing mode is done from the User Preferences Dialog, which can be accessed from '''Edit Preferences...''' In the "Drawing Mode" section of the '''Objects''' tab of this dialog, select the radio button labeled '''Persistent Draw'''. In this mode, you will still see the object's property dialog at the lower left corner of Main Window. You can hide this dialog by unchecking the box labeled '''Display Properties'''.
<table>
<tr>
<td> [[Image:box_tn_newpersistent.png|thumb|left|540px480px|A CAD objectChanging CubeCAD's property drawing mode from the preferences dialog and its edit handles.]]</td>
</tr>
</table>
=== Using the Grid & Principal Work Planes ===
[[Image:Info_icon.png|40px30px]] Click here to learn more about [[EM.Cube]]'s '''[[Getting_Started_with_EMGetting Started with EM.CUBECube#The_Grid|Grid]]''' or '''[[Glossary of EM.Cube's Basic File, Edit & View Operations#Grid Properties | Grid Properties]]'''.
Using the View Toolbar, you can easily change the work plane to any of the three principal coordinate planes:
<tr>
<td>
[[Image:cone_plane_new.png|thumb|left|720px|Drawing a cone at three different principal (XY, YZ and ZX) work planes.]]
</td>
</tr>
=== Object Snap Points & EM.Cube's Snap Modes===
Every [[EM.Cube]] standard geometric object has a number of '''Snap Points''' that are strategically located on it for a variety of purposes. Snap points are very important in [[EM.Cube]]. Many CAD operations and object transformation tools work based on snap points. Each solid object in general has a number of faces, edges and vertices (or nodes).A surface object normally has one face, a number of edges and vertices. A curve usually has one edge and two or more nodes. In most [[EM.Cube]] objects, the centers of faces, the midpoints of edges and the nodes or vertices constitute the snap points of that object. For example, a Box has six face snap points, twelve edge snap points and eight vertex snap points.
When you start the [[EM.Cube]] application, it is by default in the '''Snap to Object''' mode. This means that when you move the mouse over the surface of an object (without clicking), the object becomes highlighted with a translucent shade of the selection color (yellow by default). If the object is a solid, you can see inside of the object. If you get close to a vertex, the mouse snaps to that vertex. Similarly, if you get close to the middle of an edge, the mouse snaps to the edge's midpoint. Or on a face, the mouse snaps to the center of that face. When the mouse snaps to an object's snap point, a small circle in the complementary selection color (dark blue by default) appears on the snapped point. We refer to this as a "Mouse-Over" state. At this state, the '''Status Bar''' reports the coordinates of the snapped point. If the snapped point is the center of a face, the perimeter of that face is also highlighted in the same color. If the snapped point is the midpoint of an edge, that edge is also highlighted. If you move the mouse slightly away from the snapped point, it unsnaps and starts moving freely on the work plane until it snaps again to another available snap point.
Sometimes, highlighting objects simply by mouse-over may turn out to be rather bothersome especially in dense structures. In this case, you can turn off the "Snap to Object" mode. To do so, double click on the small window at the right end of the Status Bar, which reports the current state of object snap mode. This will cycle through the different objects snap mode. Continue double clicking until you get '''Obj. Snap: OFF'''. Double clicking one more time will lead to '''Obj. Snap: ON'''. You can also enable the '''Snap to Object''' mode using the keyboard shortcut '''O'''. The illustration below depicts several objects and their corresponding snap points.
Accessing all the available snap points of an object can be quite tricky. When the mouse hovers over an object, you can more easily access the hidden snap points (those associated with the hidden faces or edges or corners) by holding down the keyboard's '''{{key | Ctrl }} Key''' and positioning the mouse close to the desired point.
{{Note|Snap to object always has priority over snap to grid. In other words, the mouse jumps from a grid node point immediately to the closest object snap point.}}
{{Note|Mouse-over and highlighting objects works only in one of the four object snap modes.}}
<table><tr><td> [[FileImage:snapedge_tn_new.png|status bar]] thumb|left|640px|Snapping to an object edge and viewing the mouse coordinates in Status Bar.]]</td></tr></table>
=== Drawing New Objects Using Other Objects' Snap Points ===
</table>
=== Setting Up Quick Standard or Non-Principal Work Planes ===
Setting the right work plane is very important for the following reasons:
* Surfaces and curves are always drawn on the active work plane. As for Helix, its turns are parallel to the active work plane while its axis is normal to that plane.
* The LCS of [[Solid Objects|solid objects]] is drawn with local X- and Y-axes in the active work plane and the local Z-axis normal to it. This means that the bottom base of all boxes, cylinders, cones and pyramids are always drawn on the active work plane. Spheres, ellipsoids and tori are always drawn centered on the active work plane.
[[FileImage:standardworkplane_tn_newInfo_icon.png|workplane offset30px]] Click here to learn how to set up an '''[[Glossary of EM.Cube's Basic File, Edit & View Operations#Arbitrary Work Plane|500pxArbitrary Work Plane]]'''.
<table>
<tr>
<td>
[[Image:workplane_newobjectfreeze_tn_new.png|thumb|left|480px540px|EM.Cube's work plane dialogFreezing objects in the project workspace.]]
</td>
</tr>
</table>
<table>
<tr>
<td>
[[Image:arbitworkplane_tn_newsetcolor_new.png|thumb|left|550px720px|Setting up an arbitrary work plane in Changing the project workspacecolor of a color group.]]
</td>
</tr>
</table>
=== Selecting, Cutting, Copying, Pasting & Deleting Objects ===
In order to modify or apply CAD operations to objects, they must first be selected. The navigation tree provides a convenient interface that allows you to select one or more objects. The simplest way to select an object is to click on its surface in the project workspace. When an object is selected, its color changes to the "Selection Color" (yellow by default). When you select an object in the project workspace, its name on the navigation tree is highlighted in the selection color. Alternatively, you can select an object by clicking on its name in the navigation tree. In that case, the selected object's name is highlighted in the navigation tree, and the object itself is highlighted in the selection color in the project workspace. To deselect a selected object, simply click on any blank point in the project workspace.
You can select more than one object at a time. There are several ways to do a multiple selection. The simplest way is to select the first object in the project workspace. Then, while holding the keyboard's {{key|Ctrl}} key down, click on the second and subsequent objects that you want to add to the selection. You can follow the same procedure in the navigation tree. While holding the keyboard's {{key|Ctrl}} key down, click on the names of all the objects you want to select in the navigation tree. In a "Range Selection", you can select a sequential set of objects belonging to the same color group. First, you click on the name of the first object in the navigation tree. Then, while holding the keyboard's {{key|Shift}} key down, you click on the name of the last object to be selected. All the objects whose name names are listed between those two objects are also selected and highlighted.
Cut, copy, paste and delete are some of the most common edit operations. As in many other Windows applications, you can cut an object (from the workspace) and hold it in the Windows' clipboard until you paste it back to the workspace. You can also copy an object and paste it back to the workspace. Deleting an object removes it forever from the project workspace, although you can undo your delete operation.
<tr>
<td>
[[Image:selection2_tn_new.png|thumb|left|450px640px|Selection of one or more objects (selection color is yellow).]]
</td>
</tr>
The simplest way to cut, copy, paste o delete an object or a selection of objects is using the keyboard shortcut {{key|Ctrl+X}}, {{key|Ctrl+C}}, and {{key|Ctrl+V}}, respectively, or use the keyboard's {{key|Delete}} key. You can also use the {{key|Cut}}, {{key|Copy}}, {{key|Paste}} and {{key|Delete}} buttons of '''System Toolbar''' or similar items of the '''Edit Menu'''. The right-click contextual menu of objects in the project workspace or on the navigation tree yet provide additional ways for cutting, copying, pasting and deleting objects.
When you paste an object or a selection of objects to the project workspace, [[CubeCAD]] allows you to place the pasted object(s) in any arbitrary location right away. First, a wire-frame of the pasted object(s) appears in the workspace, which you can drag around with the mouse. Wherever in the workspace you click the mouse, the pasted object(s) will be dropped. A dialog titled "Place" appears on the lower right corner of the screen that shows the current coordinates of the mouse point (as you drag it) in three X-, Y- and Z-coordinate boxes labeled '''Destination''' as well as three X-, Y- and Z-coordinate boxes labeled '''Vector'''. The vector coordinates show the Cartesian components of the displacement vector pointing from the original position of the cut or copied object(s) to the current mouse position. As you drag the mouse around, all these values get updated continuously. You can fine-tune the final location of your pasted object using either of the two coordinate sets. ===Operational Modes of CubeCAD Tools=== Each of CubeCAD tools performs a certain operation or transformation on one or more selected CAD objects. [[EM.Cube]] provides a number of different ways to use these tools. First, you have to activate a CAD tool. Each tool has a button with a particular icon on '''Tools Toolbar''', which you can click to activate. If you hover your mouse on one of these buttons before clicking, a small tooltip shows up displaying the name of that tool. You can also enable a tool from '''Tools Menu''' at the top of the screen. Many tools have a keyboard shortcut, which you simply type on your keyboard to enable that tool. You can also access some tools from the contextual menu of individual objects either by right-clicking on the surface of an object in the project workspace or by right-clicking on the object's name in the navigation tree. When you access a CAD tool from Tools Toolbar or Tools Menu, one or more '''Help Tips''' appear on the upper right corner of the screen, which guide you along the different steps of usage of the enabled tool. The first step in using each CAD tool is to select one or more objects. When you activate a tool from Tools Toolbar or Tools Menu, a help tip prompts you to select an object by clicking on it. If the enabled tool allows the selection of more than one object (e.g. Group Tool), you can select the objects one by one and then press the '''Enter Key''' to finish the object selection. At this point, another help tip instructs you to take the next action. For most tools, alternatively, you can first select the object(s) and then activate the tool in one of the ways mentioned earlier. This is often more convenient and spares a few mouse clicks. ===Working with Generic Objects=== [[EM.Cube]] offers a large selection of parameterized native objects. Many of CubeCAD tools, such as translate, rotate or mirror, transform native objects to other objects of the same kind or result in the creation of other types of native objects like polylines and polystrips. Some other CAD tools result in the creation of a generic solid object, a generic surface object or a generic curve object. [[EM.Cube]]'s generic objects have a limited number of parameters. They have three '''LCS Coordinates''' and three '''Rotation Angles''', which determine their location and orientation in the project workspace. You can change these parameters by accessing the property dialog of a generic object. They also have '''Dimension''' parameters, which represent the size of the their bounding box along the three principal directions, but they are not editable. Most CAD import operations bring in external CAD files to your project workspace as generic objects. ===Working with Transform Objects=== Many of CubeCAD operations and transformations result in the creation of either native objects like polylines and polystrips or in generic curve, surface or solid objects. Each of the following tools, however, creates a special "Transform Object": # [[Glossary_of_EM.Cube%27s_CAD_Tools#Group_Tool | Group Tool]]# [[Glossary_of_EM.Cube%27s_CAD_Tools#Array_Tool | Array Tool]]# [[Glossary_of_EM.Cube%27s_CAD_Tools#Subtract_Tool | Subtract Tool]]# [[Glossary_of_EM.Cube%27s_CAD_Tools#Union_Tool | Union Tool]]# [[Glossary_of_EM.Cube%27s_CAD_Tools#Intersect_Tool | Intersect Tool]]# [[Glossary_of_EM.Cube%27s_CAD_Tools#Extrude_Tool | Extrude Tool]]# [[Glossary_of_EM.Cube%27s_CAD_Tools#Loft_Tool | Loft Tool]]# [[Glossary_of_EM.Cube%27s_CAD_Tools#Revolve_Tool | Revolve Tool]]# [[Glossary_of_EM.Cube%27s_CAD_Tools#Polymesh_Tool | Polymesh Tool]]# [[Glossary_of_EM.Cube%27s_CAD_Tools#Random_Group_Tool | Random Group Tool]]# [[Glossary_of_EM.Cube%27s_CAD_Tools#Roughen_Tool | Roughen Tool]] Each transform object has a special property dialog. The Group tool and the three Boolean operation tools, Subtract, Union and Intersect, have similar property dialogs and allow you to access their constituent objects. The property dialog of composite or Boolean objects has a '''Member List''' containing the names of all constituent objects. You can highlight and select any member from this list and click the '''Edit''' button of the dialog to open up its property dialog, where you can edit its properties. The property dialog of Extrusion, Loft, Revolution, Polymesh and Rough objects has an '''Edit Primitive''' button, which lets you access the property dialog of the original object used for the generation of the selected transform object. After you finish editing the primitive object, you will return to the property dialog of the transform object. Array and Random Group objects are arrangements of clones of an original key object. In these cases, the '''Edit Primitive''' button opens up the property dialog of the key element.
===Glossary of EM.Cube CAD Tools===
[[EM.Cube]] provides a large number of CAD tools that translate, rotate, scale and perform more complex geometric transformations on one or a selection of several objects.
[[Image:Info_icon.png|40px30px]] Click here to To learn more about the various types of geometric object transformations and edit operations, see the '''[[Glossary_of_EMGlossary of EM.Cube%27s_CAD_Tools| 's CAD Tools & Geometric Transformations]]'''.
==Importing & Exporting External CAD Models==
=== Importing Objects from External Files ===
Building complex simulations geometries often requires one to the import CAD objects from of external filesCAD models. Currently, [[EM.Cube]] can read in import the following CAD file formats:
To import an external file of one of the above formats, select the menu item '''Menu > File > → Import...''' Once the standard [[Windows]] "Open Dialog " pops up, select the desired file extension from the dropdown drop-down list labeled "Files of typeType:". Then, select the desired file and click the '''{{key|Open''' }} button of the dialog. This opens another dialog that shows the progress of loading the imported file. You can abort the import process by clicking the '''{{key|Abort Translation''' }} button. You can also view a report of the process. All imported objects are listed under "Color_1". From this group you can move them to other groups. In some cases, the imported object might already be organized in different colors or groups. In all file formats except for STLand Facet, [[Solid Objects|solid objects]] are imported as [[EM.Cube]]'s generic solids and [[Surface Objects|surface objects]] are imported as [[EM.Cube]]'s generic surfaces. From STL and Facet files, objects are imported as [[EM.Cube]]'s native polymesh objects.
{{Note|You can import external CAD files only into [[CubeCAD]]. From here , from which you can then move the imported objects to [[EM.Cube]]'s other modules.}}
<table>
<tr>
<td>
[[Image:import3_tn_new.png|thumb|left|500px720px|The imported STEP model of a helicopter.]]
</td>
</tr>
=== Exporting Project Structure ===
You can save the structure that you build in [[EM.Cube]] to an external CAD file for later use or transfer to other applications. Currently, [[EM.Cube]] can write out export the physical structure to the following file formats:
To export the project structure to an external file of one of the above formats, select the menu item '''Menu > File > → Export...''' Once the standard [[Windows]] "Save As Dialog " pops up, select the desired file extension from the dropdown drop-down list labeled "Save as type:". Then, type in a name for the file and click the '''Save''' button of the dialog. This opens another dialog that shows the progress of writing the exported file. You can abort the export process at any time by clicking the '''Abort Process''' button.
Note that in the case of DXF export, all the surface CAD objects lying in the XY Plane or in any horizontal plane and only rectangular objects lying in the YZ or ZX planes or in any vertical plane parallel to these planes are exported. Curve and solid CAD objects are ignored during the export process.
===Working with STL ModelsCubeCAD's Triangular Surface Mesh ===
=== Generating and Controlling the Mesh generation is an important part of computational engineering. A mesh is used to discretize a continuous geometry into a set of much simpler elementary cells or mesh "elements". [[Solid Objects|Solid objects]] can be discretized into tetrahedral elements. Surfaces can be meshed using triangular cells. Curves can be discretized into polylines. As you will see in [[EM.Cube|EM.CUBE]]'s other modules, [[EM.Cube|EM.CUBE]] provides a large number of diverse mesh generators. The accuracy of a numerical simulation often depends directly on the quality of the mesh. It is also important to be control the resolution of a mesh, namely, the size of mesh cells. Higher mesh resolutions normally lead to better accuracy of the numerical results.===
# By clicking the '''Show Mesh''' [[File:cadmesh1_tn_newmesh_tool_tn.png|260px]] [[File:cadmesh2_tn_newbutton of the Simulate Toolbar.png# By selecting the menu item '''Simulate → Discretization → Show Mesh'''.# Using the keyboard shortcut {{key|260px]]Ctrl+M}}.
You can change the mesh type and the mesh resolution from CubeCAD's Mesh Settings dialog. Click the '''Mesh Settings''' [[File:cadmeshsettings_newmesh_settings_tn.png|thumb|250px|CUBCAD]] button of the Simulate Toolbar or select the menu item 's ''Simulate → Discretization → Mesh Settings dialog...''' In the drop-down list labeled '''Mesh Type''' you can select one of the two options: '''Regular Surface''' or '''Tessellated Surface'''. The latter option shows the simplest tessellation of the physical structure. The mesh resolution is controlled by '''Edge Length''', which is expressed in project units. The default value of edge length is 10 units. This means that the default mesh features cells with a size of about 10 units. When you change the mesh type or resolution, you can see the effect using the {{key|Apply}} button if [[EM.Cube]]is already in mesh view mode. After [[EM.Cube]] generates a mesh, it saves it and uses it the next time you want to see the mesh. The mesh stays the same until you change its parameters. Sometimes, you may want to regenerate the mesh with the same current parameters. To do so, select the menu item '''Simulate → Discretization → Regenerate Mesh'''.
===Saving Mesh Data to a FileWorking with STL & FACET Models===
[[Image:Back_icon.png|40px30px]] '''[[EM.Cube | Back to EM.Cube Main Page]]'''