InStep Studio

INSTEP STUDIO 3D

Tutorial 6 - Reverse Engineering I

In this tutorial we will look at Reverse Engineering of a complex shape by means of obtaining cross section data. This is the first of two tutorials that deals with how to (ideally) use this application for reverse engineering task. We previously looked at the Features option which attempts to directly convert bodies that are of a more mechanical (read: made up of well-defined geometries) nature into a format that works well for Step files.
The approach in this tutorial will focus on mechanical parts (smooth, aka. 'organic' shapes are covered in part II) but will take a different approach than to directly convert the data through the Features capability.

Other options for Reading/Learning

Alternatively, you may want to
Download as PDF
Watch the YouTube Video

The model file being used here was originally one of our designs that never made it into production and has found a new life as a test file. You can download it here:
Example of Mechanical Part File (STL)

Please click on the items below as we progress through this tutorial

Once the example file has been imported, we will switch to the Rev-Eng (Reverse Engineering) Tab. Note that if you have followed the previous tutorials, it may happen that the import completes but you do not see the body. This is most likely due to the Setting we changed to prevent a reset during import. if that is the case, go to Menu: Settings > Application Settings and change the ResetViewOnImport to 'True' from the Behavior Category. You can also manually force a complete re-draw of the data using the shortcut Ctrl+Home (or just the Home key to recenter the view).

You will now see the imported Body:

T4 Back plate
Imported Mechanical Body

We could certainly use the Features options to attempt to detect all the different surfaces and then directly export this for use in a CAD application. However, let's assume that we were given this part and were tasked with coming up with some fitting that can be attached to the cylindrical extrusion on top.
Using the entire part is quite possible, but considering that all we are looking for is the cross section of the round part, using the full feature conversion, export and import is likely time consuming (hint: if you proceed with the Feature conversion, not all of the smooth surfaces are converted and therefore the output will still be very large).
Instead, what we will do is to create a sketch of the cross section and then export that as both a DXF and STEP file. To do so:

  1. Once the file has been imported, switch to the RevEng tab page
  2. From the two tool options: Click on the Slicing Tool
  3. Find the Option to 'Add a new Slice': Add Slice Button

This brings up the Create Slice tool box:

Adding a slice
Adding a Slice in Rev-Eng:Slicing

There are several different ways to create a slice through the body. The simplest is to use the 'From Surface' which uses an existing surface / triangle as the definition of the slice but allows the cut-plane to be offset parallel to this: Select the 'From Surface' drop down if not already selected. Now click on the 'Pick Surface' button below and pick one of the narrower ends from the viewer. You can rotate the object just as you would normally and you will see the target triangle highlighted for reference.
With the Surface selected, you can use the 'Offset' value up/down option to move the slice preview around (give that a try...) or you can pick a point directly using the view pick option: Select Surface Button
By picking a point from the viewer, we shift the plane to this location and the offset value gets updated. Though this is perfectly acceptable if, for example, you want to move the plane to a well-defined point, for something like this, we want to pick the center point of the circular shape. For this we will use the Advanced Point selector: Advanced Point Selection Button
This brings up the point selection dialog box:

Advanced Point Selection options
Advanced Point Selection options

Again, we have a number of different ways that we can select a point. The 'Implied' option is a way for you to tell the application by selecting a few items and, if the application can make sense of what it is that you are asking, it will define the point... generally though, you want to be clear about what it is, so for this case, we will use the option for 'Arc Center'. This selection tool works best when only edges are picked, so we will disable the 'Select Points' Filters but otherwise keep the options at their defaults. Now click on the 'Select Item(s)' button and find an edge that is on the cylindrical section. If all goes well, the application will recognize that this is part of a circle and will highlight the entire circle and insert a point at its center. Also, the coordinates will be updated with this location. If it cannot recognize an arc/circle, try to select a neighboring edge that is also on the arc. Often, if it cannot determine the circle from one edge, it can from two or three. If that does not work, check your edges (Alt+E) or try a different option. For well-formed surfaces, this option generally works quite well.
If you are happy with the arc center point, click OK to apply this point to the previous ('Create Slice') dialog for the point through which the plane is to be defined (still parallel to the one you selected). Once you are happy with the option, click OK to apply the slice and close the dialog box.

The best way to preview your slices is to toggle the Face display mode off (Alt+F). Now the only thing shown is the outline of where the slicing plane intersects the body. In the left-hand view, you can see the Tree structure with 'Body 0' being the top most item (if there are multiple bodies, each body will be intersected independently). Expand the Body0 item and you'll see the Slice 0 item. Clicking on this item will show the plane you created which can be edited using the 'Edit selected Slice' option from above the tree view. Expanding the Slice 0 item shows the 'Surface 0' which now highlights in blue when clicked on. If this slice were to intersect a body that contains an inside/outside, then the inside section would be in red, this helps to identify what the application thinks is going on.

Also note that there is a check option below the tree labeled 'Delay Surface Creation'. This determines whether a (tessellated) surface is to be generated from the Surface 0 item when it is clicked or not. Tessellating a surface can take a few seconds to complete and is generally not needed (if/when it is needed, it will be automatically created). Give this a try nevertheless: un-check the delay option then click on the 'Slice 0' item and then again on the 'Surface 0'.
There will be a brief delay and you will see a grey surface appear. Also, you will notice that there is now a 'Surface 1' item under the Slice. This is because the algorithm has detected that the two sections are not joined and has split them. You can click on either to show them.
For now, click on 'Surface 0' and then click the 'Delete the Selected Slice' tool button above the Tree. This will remove the selected item:

Remaining Slice
Remaining Slice after tessellation and deleting other slice

From here we have the choice to export this surface directly as a STEP file (in the Tool Menu there are two options: Slice STP and Slice DXF). Picking the Slice STP exports the slices to a STEP file and they can be used just like other items - with the limitation that they are (flat) surface/shell bodies.
The other option, Slice DXF, generates a flat DXF file (rotated to lie in the XY plane by default) that can be used by CAD applications as a sketch for creating a rotated shape from scratch. Often, having a cross section is all that is needed as CAD applications are often better suited to creating data in their native format.

One last note on the slicing options: In general, you will want to keep this as simple as possible. The application does not have a hard limit to the number of items it can handle, but several CAD applications do not like to work with a stack of surfaces or overlapping sketches.
There are also additional options available that are specific to the Slice tool. You can access them through the menu button above the tree (small gear with wrench inside). More information about how these affect the behavior is available in the dedicated Slicing Help Page for the Slicing tool and can be directly accessed by hovering over the corresponding button and the hitting F1 on the key board (this will usually open the corresponding help page online or at the least open the generic help page if a source help page does not exist).

<< Modifying Body Data Reverse Engineering II >>