Changes

Building Geometrical Constructions in CubeCAD

5,165 bytes added, 16:10, 11 June 2017
/* 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 stepping stone for learning all the other modules. Once you have mastered the basics of CubeCAD, using the other modules will be very straightforward.
</ul>
<table><tr><td> [[Image:Apache1.png|thumb|left|360px|An Apache helicopter.]]</td></tr><tr><td> [[Image:CAD_Apache_new.png|thumb|left|360px|The imported model of the Apache helicopter.]]</td></tr></table>== Constructing Physical Structures Using Standard Geometric Objects ==
== Constructing Physical Structures Using Standard Geometric Objects =The Variety of EM.Cube's Native Object Types===
===Variety of In [[EM.Cube's Native Object Types===]], objects are generally categorized into four types: solids, surfaces, curves and special objects.
In [[EM.Cube]], objects are generally categorized into four types: solids, surfaces, curves and special objects. *Curves are one-dimensional objects, whose length can be measured. The simplest curve object is a (straight) line. Other curve objects include circle, super-quadratic curve, parabola, hyperbola, spiral curve, helix, polyline and NURBS curve. [[EM.Cube]] also provides a generalize curve generator. *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. Other surface objects include circle strip, radial strip, ellipse strip, taper strip, regular polygon, spiral strip, polystrip and NURBS curve. [[EM.Cube]] also provides a generalized surface generator. *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. Other solid objects include cylinder, cone, pyramid, sphere, ellipsoid and taper. [[EM.Cube]] also provides a Platonic solid generator which includes tetrahedron, tessellated hexahedron, octahedron, tessellated dodecahedron and icosahedron. *[[EM.Cube]] currently offers two special object types: point and fractal tree. A Point is a dimensionless object that is represented by a set of coordinates (xX,yY,zZ). A fractal tree is a group of recursively scaled self-similar objects. In addition to the standard geometric 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.
In view of the drawing process and geometrical properties, objects can also be divided into two groups: dimensional objects and nodal objects. A dimensional object is characterized by a local coordinate system (a center and local X-, Y- and Z-axes) and a number of dimensional parameters such as length, width, height, radius, etc. Examples of dimensional objects are box, sphere, rectangular strip, line, helix, etc. In addition to the standard geometric object types, there are generic curve objects, generic surface objects and generic solid objects. Most external CAD objects are imported as objects of generic type. You can translate or rotate an object of generic type, but you cannot changes its size properties. A nodal object is characterized by a set of points (nodes). [[EM.Cube]]'s nodal objects include polystrip, polyline, NURBS strip, NURBS curve and polymesh objects.
CubeCAD provides a diverse set of standard geometric objects that are fully parameterized. In addition to the center coordinates and rotation angles, these objects have a variety of dimensional parameters that are used to set and control their size and geometrical shape. More complex objects can be created by editing and combining these basic shapes. Objects can be created by clicking on one of the object buttons on the '''Object Toolbar''' or from the '''Object &rarr; Solid''', '''Object &rarr; Surface''', or '''Object &rarr; Curve''' menus. Once an object tool is selected, left click anywhere on the work plane to draw the object.
=== 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.
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 &rarr; CubeCAD &rarr; 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>
[[Image:moveobject_new.png|thumb|left|720px640px|Moving objects from their current color group to another color group or to another [[EM.Cube]] module.]]
</td>
</tr>
Only one color group of the navigation tree is active at any time. All the newly drawn objects belong to the active color group. CubeCAD displays the active color's name in bold letters. When you start [[EM.Cube]] for the first time and draw a new object in CubeCAD, a default grey color named &quot;Color_1&quot; is immediately created and set as the active color. Every time you create a new color, it is set as the active color. To change the active color, right-click on the name of a color group and select '''Activate''' from the contextual menu. New objects will now be added under the new active color.
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 '''Object &rarr; 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 min 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 length parameters are always in the currently selected project units and angles are measured in degrees.
<table>
* 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 &quot;parent&quot; 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 &quot;Draw &amp; Edit&quot; mode or when you open the property dialog of an object, [[EM.Cube|EM.CUBE]] enters its &quot;Object Edit Mode&quot;. In this mode, a number of small red balls appear on the object that are called &quot;Edit Handles&quot; 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 &quot;Object Edit Mode&quot;, 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 &quot;Normal&quot; arrow shape. Besides the default &quot;Draw &amp; Edit&quot; mode, [[EM.Cube]] provides another drawing modes mode called &quot;Persistent Draw&quot;. In this persistent mode, after you complete the drawing of an object, the mouse cursor does not return to &quot;Normal&quot; 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 &quot;Drawing Mode&quot; 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>
*Super-Quadratic Curve
Of the above list, box, pyramid, rectangle strip, ellipse strip and super-quadratic curve (<i>i.e. </i> all but line) have fixed centers by default. This means that when you draw these objects or later edit them, the coordinates of their LCS centers remains fixed. As a result, as you draw the base of a box or a pyramid in the XY plane, or as you draw a rectangle strip, an ellipse strip or a super-quadratic curve in the XY plane, the dimensions of the object expand or shrink in equal amounts along the &plusmn;X-axis, and so do they along the &plusmn;Y-axis. By contrast, the line object doesn't have a fixed center by default. This means that the length of the line object always expands away from or shrinks towards its start point. If you check the '''Fix Center''' box in the line';s property dialog, then its length will changes in equal amounts from both ends.
<table>
<table>
<tr>
<td> [[Image:draw_modes_tn.jpg|thumb|left|480px|Drawing a rectangle strip object with or without a fixed The center (locked base)-, edge- and corner-based drawing modes.]] </td>
</tr>
</table>
CubeCAD is a full 3D CAD environment that allows you to move your mouse to any arbitrary point in the three-dimensional coordinate space. A work plane is the plane on which the mouse cursor is located and moves freely around. When you start the [[EM.Cube]] application, the mouse always moves on the XY plane, meaning that the XY plane is your default work plane. In addition, [[EM.Cube]]'s &quot;Snap-to-Grid&quot; mode is enabled by default even though the project workspace's grid is not displayed by default. As you move the mouse around, it snaps to the invisible grid points. This provides a convenient way to draw objects with precise dimensions and at precise locations. The coordinates of the current location of the mouse are reported in the Status Bar.
[[Image:Info_icon.png|40px30px]] Click here to learn more about [[EM.Cube]]'s '''[[Getting Started with EM.Cube#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:
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 &quot;Snap to Object&quot; 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.}}
Oftentimes, you may simply need to set up your work plane parallel to one of the three principal planes but at an offset distance. [[EM.Cube]] provides easy shortcuts for this purpose. Hover the mouse over any object in the project workspace and highlight one of the snap points of that object. Then, type {{key|X}}, {{key|Y}}, or {{key|Z}} on your keyboard. This will establish a new work plane centered at the snapped point and parallel to the YZ, ZX or XY planes, respectively. You can also set up an arbitrary work plane non parallel to any of the principal coordinate planes.
[[Image:Info_icon.png|40px30px]] Click here to learn how to set up an '''[[Glossary of EM.Cube's Basic File, Edit & View Operations#Arbitrary Work Plane| Arbitrary Work Plane]]'''.
Once a new work plane is established, the movement of your mouse will be bound to that plane. In other words, the cursor will move freely on the surface of the new work plane. The status bar now reports the &quot;User Coordinates&quot; of the cursor position as opposed to its &quot;World Coordinates&quot;. The status bar also shows the word '''User''' in front of these coordinates. You can switch back to the world coordinates at any time by double-clicking on the word '''User''', which changes it to '''World'''. Double-clicking once again toggles the state back to the user coordinates. Any object that you draw on the new work plane will have its local X - and Y-axes on this plane, and its local Z-axis normal to the plane.
{{Note|A new work plane will stay in effect until you switch to one of the three principal work planes.}}
== Geometric Object Operations & Transformations==
=== Changing Object Visibility, Color and & Texture ===
You can hide and show individual objects, color groups and even the entire parts. This can be very helpful when you work with structures that contain a significant sizable number of parts containing large and small objects in close proximity to of one another. Hiding individual objects or color groups allows you to focus on the points of interest within your structure. To hide or show individual objects or color groups or the entire parts, right -click on the name of the object, color or the &quot;Parts&quot; item in the Navigation Tree navigation tree and select '''Hide''' or '''Show''' from the contextual menu.
You can also freeze individual objects or color groups. When an object is frozen, [[EM.Cube]] shows only a wire-frame wireframe of that object in its own color. You cannot mouse-over, highlight or select a frozen object in the project workspace. To freeze an individual object or a color group, right -click on its name in the Navigation Tree navigation tree and select '''Freeze''' from the contextual menu. To unfreeze a frozen object or color group, right -click on its name in the Navigation Tree navigation tree and remove the check mark already places placed before the '''Freeze''' item in the contextual menu. You can also freeze individual geometric objects using their contextual menu in the project workspace by right-clicking on their surface.
{{Note|You cannot highlight &quot;frozen&quot; objects by mouse-over.}}
</table>
You can change the default color by clicking the button labeled '''Color''' to open up the standard color palette. You can edit an existing color through its Property Dialogfrom a group's property dialog. Right -click on the name of a color group on the Navigation Tree navigation tree and select '''Properties...''' from the contextual menu. This opens up the Property Dialog property dialog of the selected color. You can change the name, color or texture of the group just as explained later. By default, the color groups do not have a texture. You can replace a solid color with a texture that is generated from a bitmap. First, you have to check by clicking the box labeled '''Texture'''. This enables the texture section of the dialog. Click the '''Texture''' {{key|Color}} button to invoke Windows' Open Dialog. The file type is set to &quot;Bitmap Files (*.bmp)&quot;. Use the Browse button to find the desired bitmap file and open it. Next, you have to define the texture mapping scale. On the objects, the texture will show up as tiles of the imported bitmap. In the Texture Geometry section of the dialog, two boxes show the '''Width''' and '''Height''' of the bitmap in pixels. You need to map these onto the desired tile width and height in project units. These settings determine how many texture tiles appear on each object given its dimensions. If large values are set for the tile width and height, partial bitmap will show up on the objects. You also have the option to apply the texture to the '''Side Only''' by checking the related boxstandard color palette.
<table>
</table>
[[File:texture_tnBy default, the color groups do not have a texture.pngYou can replace a solid color with a texture that is generated from a bitmap image. First, you have to check the box labeled '''Texture'''. This enables the texture section of the dialog. Click the {{key|500px]]Texture}} button to open Windows' Open Dialog. The file type is set to &quot;Bitmap Files (*.bmp)&quot;. Use the {{key|Browse}} button to find the desired bitmap file and open it. Next, you have to define the texture mapping scale. On the geometric objects, the texture will show up as tiles of the imported bitmap. In the "Texture Geometry" section of the dialog, two boxes show the '''Width''' and '''Height''' of the bitmap in pixels. You need to map these onto the desired tile width and height in project units. These settings determine how many texture tiles appear on each object given its dimensions. If large values are set for the tile width and height, partial bitmap will show up on the objects. You also have the option to apply the texture to the '''Side Only''' by checking the related box.
<table><tr><td> [[Image:texture_tn1.png|thumb|left|450px|A bitmap image.]]</td></tr></table><table><tr><td> [[Image:texture_tn2.png|thumb|left|550px|Setting the texture of a color group..]]</td></tr></table>
=== Selecting, Cutting, Copying, Pasting &amp; 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 &quot;Selection Color&quot; (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 &quot;Range Selection&quot;, 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>
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 &quot;Place&quot; 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]] To learn more about the various types of geometric object transformations and edit operations, see the '''[[Glossary of EM.Cube's CAD Tools]]'''.
==Importing & Exporting External CAD Models==
=== Importing Objects from External Files ===
Building complex geometries often requires the import of external CAD models. Currently, [[EM.Cube]] can import the following CAD file formats:
* # STEP File (*.STEP or *.STP)* # IGES File (*.IGES or *.IGS)* # Stereolithography File (*.STL)* # Raw Triangles (*.RAW)* # Shape File (*.SHP)* # CUBIT Facet File (*.FACET)* # ASCII DXF File (*.DXF)* # Digital Elevation Map (DEM) File (*.DEM)* # Python File (*.PY)
To import an external file of one of the above formats, select the menu item '''File &rarr; Import...''' Once the standard Windows "Open Dialog" pops up, select the desired file extension from the drop-down list labeled &quot;Files of Type:&quot;. 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 STL and Facet, solid objects are imported as generic solids and surface objects are imported as 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 which you can then move the imported objects to [[EM.Cube]]'s other modules.}}
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 export the physical structure to the following file formats:
* # STEP File (*.STEP or *.STP)* # IGES File (*.IGES or *.IGS)* # Stereolithography File (*.STL) - ASCII* # Stereolithography File (*.STL) - Binary* # CUBIT Facet File (*.FACET)* # DXF File (*.DXF)* # Python File (*.PY)
To export the project structure to an external file of one of the above formats, select the menu item '''File &rarr; Export...''' Once the standard Windows "Save As Dialog" pops up, select the desired file extension from the drop-down list labeled &quot;Save as type:&quot;. 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 ===
Stereolithography files contain a tessellated (triangulated) representation Mesh generation is an important part of a structurecomputational engineering. [[EM.Cube]] treats STL files in A mesh is used to discretize a special way. You can export the project structure continuous geometry into a STL file in the form set of a polymesh object. This is similar to writing the structure much simpler elementary cells or "mesh data into a mesh data file of &quot;.msh&quot; extension. The project structure is tessellated using CubeCAD's triangular surface mesher of the '''Structured Type'''elements". As you will see in [[EM.Cube]] gives you two options for STL export: '''Binary STL''' and '''ASCII STL'''. The latter file is bigger in size. You can import STL files of both binary and STL types into s other modules, [[EM.Cube]]. STL models are imported as native polymesh objects. As a result, you can edit the imported objects and modify their various parameters arbitrarily. This is in contrast to importing files provides several mesh generators of other formats, which create solid and surface objects of the generic typedifferent types. Once you import a STL file, you can change the mesh type The accuracy of the imported object to the '''Regular Type'''. You can also decrease the '''Edge Length''' to obtain a higher resolution. Just like other polymesh objects, you can insert nodes numerical simulation often depends directly on the faces quality and edges or delete nodes from resolution of the imported objectmesh.
=== CubeCAD provides a triangular surface mesh generator that discretizes surface objects and the surface of solid objects based on a specified edge length. The mesher algorithm generates a regularized mesh and attempts to create triangular cells of almost equal area. CubeCAD's Surface Mesh ===mesh generator polygonizes curve objects based on the same edge length.
=== 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 &quot;elements&quot;. 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]]'s other modules, [[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.===
Tetrahedral and surface triangular meshes are one You can generate a mesh of the most widely used mesh types physical structure in many different engineering disciplines. CubeCAD provides two types in one of mesh generation algorithms for the following three ways: # By clicking the '''Show Mesh''' [[Discretizing Objects|discretizing objectsFile:mesh_tool_tn.png]]button of the Simulate Toolbar. The first one generates a wire-frame surface triangular # By selecting the menu item '''Simulate &rarr; Discretization &rarr; Show Mesh'''.# Using the keyboard shortcut {{key|Ctrl+M}}. When the mesh of surface objects and a polyline is displayed in the project workspace, [[EM.Cube]]'s mesh of curve objectsview mode is enabled. The solid In this mode, all the objects are treated as closed surfaces and are discretized using a similar wire-frame surface CubeCAD's mesh. in other words, objects generation algorithm and the meshes of all types objects are meshed in some sortdisplayed. The wire-frame In mesh generator has two variationsview, you cannot mouse-over, select or edit any objects. The first algorithm generates a regularized mesh and attempts to create triangular cells view is for viewing purpose only. You can perform most of almost equal sizeview operations such as zooming in and out using the mouse scroll wheel, rotating the view using the right mouse button {{key|RMB}} and panning the view using {{key|Shift+RMB}}. The second algorithm tries to create a structured When [[EM.Cube]] is in mesh with cells view mode, the '''Show Mesh''' [[File:mesh_tool_tn.png]] button of similar patternsSimulate Toolbar remains depressed. CubeCAD's other To hide the mesh generator generates a tetrahedral , exit the mesh for solid objectsview mode and return to the normal view mode, simply click the '''Show Mesh''' [[File:mesh_tool_tn. Tetrahedral meshes are usually enormous in size. Note that surface png]] button one more time to toggle its state, or press the keyboard's {{key|Esc}} (Escape) key, or select the menu item '''Simulate &rarr; Discretization &rarr; Show Mesh''' and curve objects cannot be discretized using this type remove the check mark in front of mesh generatorit.
<table>
<tr>
<td>
[[Image:cadmesh1_tn_newcadmeshsettings_new.png|thumb|left|400px480px|The geometry of a sphere.]]</td></tr><tr><td> [[Image:cadmesh2_tn_new.png|thumb|left|400px|The triangular surface CubeCAD's mesh of the sphere generated by CubeCADsettings dialog.]]
</td>
</tr>
</table>
===Generating and Controlling the Mesh===  You can generate a change the mesh of type and the structure in mesh resolution from CubeCAD in one of the following three ways: # By clicking 's Mesh Settings dialog. Click the '''Show MeshSettings'''[[File:mesh_tool_tnmesh_settings_tn.png]] button of the Simulate Toolbar or select the menu item '''Compute ToolbarSimulate &rarr; Discretization &rarr; Mesh Settings...'''.# By selecting In the drop-down list labeled '''Menu [[File:larrow_tn.png]] Compute [[File:larrow_tn.png]] Discretization [[File:larrow_tn.png]] Show MeshType'''.# Using you can select one of the keyboard shortcut two options: '''Ctrl+MRegular Surface''' or '''Tessellated Surface'''. When The latter option shows the simplest tessellation of the physical structure. The mesh resolution is displayed controlled by '''Edge Length''', which is expressed in the Project Workspace, [[EMproject units.Cube]]'s mesh view mode The default value of edge length is enabled10 units. In this mode, all the objects are discretized using This means that the selected default mesh generation algorithm and the meshes features cells with a size of all objects are displayedabout 10 units. In When you change the mesh viewtype or resolution, you cannot mouse-over, select or edit any objects. The mesh view is for viewing purpose only. You can perform most of view operations such as zooming in and out using see the mouse scroll wheel, rotating the view effect using the right mouse {{key|Apply}} button '''RMB''' and panning the view using '''Shift+RMB'''. When if [[EM.Cube]] is already in mesh view mode, the '''Show Mesh'''. After [[File:mesh_tool_tnEM.pngCube]] button of Simulate Toolbar remains depressed. To hide the generates a mesh, exit it saves it and uses it the mesh view mode and return next time you want to see the normal view mode, simply click mesh. The mesh stays the '''Show Mesh'''[[File:mesh_tool_tnsame until you change its parameters.png]] button one more time Sometimes, you may want to toggle its state, or press regenerate the keyboard's '''Esc Key''' (Escape)mesh with the same current parameters. To do so, or select the menu item '''Simulate &rarr; Discretization &rarr; Show Regenerate Mesh''' and remove the check mark in front of it.
<table>
<tr>
<td>
[[Image:cadmeshsettings_newcadmesh1_tn_new.png|thumb|left|480px|CubeCAD's The geometry of two spheres.]]</td></tr><tr><td> [[Image:cadmesh2_tn_new.png|thumb|left|480px|The triangular surface mesh settings dialogof the two spheres generated by CubeCAD.]]</td></tr><tr><td> [[Image:cadmesh3_tn_new.png|thumb|left|480px|The tessellated version of the two spheres.]]
</td>
</tr>
</table>
You can change the ===Working with STL & FACET Models=== Stereolithography (STL) files contain a tessellated (triangulated) representation of a geometrical structure. CUBIT FACET files are used to store surface mesh type and the mesh resolution from the CAD Mesh Settings Dialogdata. Click the '''Mesh Settings'''[[File:mesh_settings_tnEM.pngCube]] button treats STL and FACET files in a special way. You can export the physical structure of '''Simulate Toolbar''' your project workspace into a STL or select FACET file in the menu item form of polymesh objects. Your physical structure is tessellated for export using CubeCAD's triangular surface mesh generator. Therefore, you can use CubeCAD''Simulate &rarr; Discretization &rarr; Mesh Settingss mesher to see and examine how your physical structure is going to be exported and will look like before you export it.[[EM..'''In the drop-down list labeled '''Mesh Type''' Cube]] gives you can select one of the three two optionsfor STL export: '''Regular SurfaceBinary STL''', and '''Structured Surface''' or '''TetrahedralASCII STL'''. The mesh resolution latter file is controlled by '''Edge Length''' which is expressed bigger 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 You can see the effect using the '''Apply''' button if import STL files of both binary and STL types into [[EM.Cube]] is already in mesh view mode. After [[EMBoth STL and FACET models are imported as native polymesh objects.Cube]] generates As a meshresult, it saves its you can edit the imported objects and uses it the next time modify their various parameters as you want to see like. This is different than the meshimport of files of other formats, which always create generic solid and surface objects. The mesh stays the same until Just like other polymesh objects, you change can insert nodes on the faces and edges of the imported object or delete some of its parametersnodes. SometimesNote that some objects might be imported to CubeCAD in a freeze state, and you may want need to regenerate the mesh with the same current parametersunfreeze them before being able to edit their properties. To do so {{Note|FACET files are always expressed in meters. Therefore, select before importing a FACET file, you should change the menu item '''Simulate &rarr; Discretization &rarr; Regenerate Mesh'''project units to meters.}}  <br /> <hr>
<p>&nbsp;</p>[[Image:Top_icon.png|48px30px]] '''[[#CubeCAD_in_a_Nutshell | Back to the Top of the Page]]'''
[[Image:Back_icon.png|40px30px]] '''[[EM.Cube | Back to EM.Cube Main Page]]'''
28,333
edits