VXmodel - Tutorial 1 - Scan-to-CAD 1 - EN
VXmodel - Tutorial 1 - Scan-to-CAD 1 - EN
May 2017
1
Introduction
This tutorial is intended for users who need to become familiar with VXmodel. It will guide you through
a Scan-to-CAD workflow by cleaning and aligning the mesh, then extracting required entities in order
to transfer to a CAD software.
Session file and CAD file can be found here after download: *\Downloads\Scan-to-CAD_Tutorial-
1.zip\_Dataset
*The sample data for this tutorial is provided by Creaform. It is the property of Creaform and is used for informational purpose only.
After completing the scan, click on Send to VXmodel . For this tutorial, the scan data has been
already transferred to the VXmodel node of VXmodel. As good practice, hide the Scan and
Positioning Targets node to avoid confusion in display.To do so, click on the eye icon to hide or show.
2
What will this tutorial cover?
Step 1.
Best-fit alignment of the meshes.
Step 2.
Merge meshes together.
Step 3.
Extract entities for alignment.
Step 4.
Align the mesh to origin.
Step 5.
Create entities for reverse engineering.
Step 6.
Duplicate the middle section of the pipe and create a
new mesh.
Step 7.
Clean the mesh & fill holes.
3
Step 8.
Fit boundary to curve and cut mesh.
Step 9.
Complete the inner surface and create the auto-
surface.
Step 10.
Export files for CAD software.
Step 11.
Inspect the reverse engineered part.
4
Best Fit Alignment of Meshes
VXmodel allows the user to align two or more meshes together by best-fit. This operation is also useful
when you want to align different meshes of the same part and compare them together or, like the
example in this tutorial, to merge two meshes together.
Best-Fit Alignment
Note: As soon as 3 points are selected on each meshes, a preview of the alignment will appear on the
split screen left side.
Click on Align, look at the result and then Accept.
Click OK.
5
Merge Meshes Together
Since the two meshes are aligned together it is now possible to merge the two meshes. This step is
necessary in order to have a complete mesh in order to extract all the entities for the reverse
engineering of this part.
Note: Once the merging is completed, a new Mesh is created in the Navigation tree under the
VXmodel node.
6
Extract Entities for Alignment
Creating geometric entities based on the mesh will be used for alignment; therefore it is important to
choose the most relevant entities for the alignment.
Add a Plane
7
Add Circles
Hold the CTRL key and left-click to select the inner sur-
face of the following cylinder located on the bottom
flange.
8
Align the Mesh to Origin
Mesh Alignment
In this step, we will use the three generated entities, one plane and two circles, to align the surface to
the origin. Alignment is done by pairing entities previously created with the XYZ reference frame.
Note: On the right side of the Entity column, the flip button flips the
normal of paired entities.
9
Create Entities for Reverse Engineering
Now that our surface is aligned to the origin, we can proceed with reverse engineering portions of the
pipe's surface. Various geometries will be extracted in preparation for the CAD software.
10
Hold the CTRL key and left click to select the inner sur-
face of the following cylinder located on the bottom
flange.
11
Create Cross-Section
Note: Make sure the position of the cross-section is in the middle of the
flange. If not, set a positive value for the position.
12
Create New Mesh from the Pipe Surface
In order to extract a CAD surface from the pipe surface, a new mesh will be created by selecting and
copying the pipe surface.
Note: Depending on where the selection is made upon the first click, the global selection can differ
from the tutorial. Always look at your global selection prior of executing an function.
Click the Copy button from the main toolbar. A new mesh, Mesh 1, will be created in
the Navigation tree with the selection.
Click on the eye icon to hide the mesh Scan-to-CAD Tutorial 1 Merge and Entities
related.
13
Clean the Mesh & Fill Holes
Fill Holes
Filling holes is mainly used with mesh preparation for surfacing or 3D printing.
Note: Unwanted data has been selected due to the Select Through button and has to be removed
from the selection.
14
Delete selected, unwanted data around
each hole with the button.
15
Fit Boundary to Curve and Cut Mesh with Plane
The boundaries of both openings needs to be cleaned in order to create a clean surface. Two different
techniques will be used.
First Technique:
The Fit Boundary to Curve function allows rebuilding boundaries using curves that have been created
in the function.
16
Second Technique:
The second technique uses Cut Mesh. This function allows cutting a mesh using a plane.
17
Create Surface from Mesh with Auto-Surface
At this step, we will create the inner pipe surface. First, the two boundaries will be extended and then
the outer surface will be offset to replicate the pipe thickness. The Extrude boundary function
increases the length of the surface making sure the pipe, in this case, will be in contact with the flange.
First Step
The Extrude boundary function might not create a smooth transition from the boundary selected.
18
Second Step
To smooth the transition, the Defeature function can be used.
Select the Brush Selection and make a partial selection at the boundary by adjusting the size
of the brush
Click on the Defeature function to remove and fill the selected feature.
Repeat the operation 5-6 times to clean the boundary all around the pipe.
The Shell/Offset Mesh function will create the inner surface of the pipe.
Click on the eye icon to hide Scan-to-CAD Tutorial 1 Merge - Copy 1 and click Scan-
to-CAD Tutorial 1 Merge - Copy 1 - Shell/Offset mesh 1
Click on Flip/Fix Normals button.
Select Flip Normals and click on the mesh surface to inverse the normal of all triangles
connected with the root vertex.
19
Optional: If needed, select Fix Normals and click on the mesh surface to harmonize the
normal of all triangles connected.
Before creating the auto-surface, combine the inner and outer pipe surfaces into a single mesh.
20
Third Step: Create auto-surface from mesh
This function allows creating a surface with organized patch layout on the entire mesh or on specific
selected triangles. To avoid bad surface reconstruction, it is recommended to fix small irregularities of
the mesh with the Clean Mesh function.
21
Export Entities
At this step, the aligned mesh and the entities to use in the CAD software will be saved.
Export Entities
Export the entities in STP format to use in the CAD software:
Note: It is recommended to export entities grouped by type, i.e. export the planes together, the
cylinders together, etc.
22
Note: To export one or more entities, select only
the ones to be exported holding the CTRL button
before clicking Export Selected Entities.
Note: If SOLIDWORKS, Inventor, or Solid Edge are not open, the function will open it and create a new
part and import the entities. If SOLIDWORKS, Inventor, or Solid Edge are open, it will import, in the
active part, the entities.
23
Inspect the Reverse Engineered Part
Once the solid part has been created in CAD software with the entities previously created, it is possible
to import the result to compare it with the mesh. To do this inspection, a color map will be created
between the imported CAD and the aligned mesh.
If the mesh if not align perfectly with the CAD model, click on Best
fit on CAD button to align the CAD with the mesh Scan to-
CAD Tutorial 1 Merge.
Note: It is possible to compare the last operation to another mesh or a surface created with the auto-
surface function.
24
Click on the Flip button to inverse the Reference and the
Measured model and do an inspection of the reverse engin-
eered part.
Note: It is possible to change the color map tolerance and/or the options of the comparison.
Note: It is possible to export a snapshot with a right-click and choose Capture 3D Viewer Image.
Note: Right-click on a box to close one annotation or click Close annotation button if you want to
clear all annotations.
25