Reverse Engineering and CAD Modeling Guide
Reverse Engineering and CAD Modeling Guide
modeling
[Link]
GCT, CBE
UNIT- II Reverse Engineering and CAD
modeling
• Basic concept - Digitization techniques – Model
reconstruction – Data Processing for Rapid
Prototyping: CAD model preparation, Data
requirements – Geometric modeling techniques:
Wireframe, surface and solid modeling – data
formats - Data interfacing, Part orientation and
support generation, Support structure design, Model
Slicing, Tool path generation.
Basic Concept - RE process
• The whole Reverse Engineering process can be divided
into four steps:
1. Data capturing - Scanning – Digitizing
2. Pre-processing captured data
3. CAD modeling
4. CAD model updating
Basic Concept - RE process
• 1. Data capturing: The first step in reverse engineering is to acquire the
geometrical shape of the physical models using some measuring devices.
The captured information is usually represented as a set of three-
dimensional (3D) data points, 2D slices or images. A variety of equipment
can be used for data capturing.
• During the scanning process the system records information about the
surface in the form of numerical data – generates a point’s cloud matrix
(3D-coordinates).
• 2. Data pre-processing: The captured data are first pre-processed
to facilitate subsequent surface modeling. Typical data pre-
processing steps include registration, data cleaning, data reduction
and segmentation.
• Registration transforms the measured results obtained from
different setups into a single coordinate system.
• Data cleaning wipes out all points not on the part surface.
• Data reduction reduces the number of points if they are too many
to handle.
• Segmentation is the most important step during data pre-
processing. It subdivides the combined data set into individual
regions, each representing a single geometric feature that can be
mathematically represented by a simple surface.
• 3. CAD modeling: The segmented data are further transformed into
individual surfaces. Several mathematical schemes for representing
geometrical shapes are available. One can also use interpolation or fitting
techniques for identifying the parameters of the geometrical shape. After
fitting individual surfaces to measured points, the surfaces must be
further processed to form the complete CAD model - Model
reconstruction system software - conceptual model supported by a
triangular surface geometry.
• 4. CAD model updating: When a product design is directly modified on
the shop floor through adjustments to the physical prototypes, the CAD
model must be further updated according to the changes made to the
physical part.
Basic Concept
• Reverse Engineering (RE) is the process of generating a Computer Aided
Design (CAD) model from an existing physical part. It enables the
reconstruction of an object by capturing the component's physical
dimensions and geometrical features.
It allows to generate surface
models by 3D-scanning
technique.
It is now an accepted part of
the product design and
manufacturing process,
especially when relating to
complex surfaces, which are
often very difficult to create
on conventional route in
modern CAD-software.
Digitization techniques
• Digitizing is the representation of a part by a discrete set of
its points or samples. The result is called digital
representation or, more specifically, a digital image, for the
part.
• Contact based methods of reverse engineering (CMM,
Electromagnetic and Sonic digitizers) and
• Non-contact based methods of reverse engineering (3D Laser
scanners, 3D photogrammetry) are used for part digitizing.
• Contact based methods employ a pressure sensitive probe for
the scanning of surface points where as non-contact type
uses either optical based or ultrasonic.
Main components
• Probing unit provides the action(s)
necessary between the measuring
equipment and an area of the part
surface being digitized. The
action(s) could be either
mechanical contact, or non-contact
operations. Eg) Mechanical or
Trigger probe, Laser beam
• Detecting unit, such as a position
sensitive device (PSD) or a charge
coupled device (CCD), generates
related signals corresponding to
the range/depth information from
the measuring probe to the
probing area.
Main components
• Scanning unit enables one to
change the probing areas in the
required directions so that the
entire surface of the object could
be measured. Eg) x, y, z guiding
mechanism and their scaling
units,the mechanisms of the two
rotational axes of the probe head,
the servomotors, etc.
• Processing/control unit takes care
of the overall control of the
measuring system and transforms
the acquired range information to
3D data.
Contact based scanning
techniques
• Most commonly the device is equipped with a touch trigger
probe or mechanical scanning probe.
• The following are some of the contact based scanning
equipment used for reverse engineering applications in
manufacturing.
• Coordinate Measuring Machine (CMM)
• Electromagnetic digitizers
• Sonic digitizer
Coordinate Measuring Machine (CMM)
• A Coordinate Measuring Machine
(CMM) gives physical
representation of a three-
dimensional Cartesian coordinate
system.
• The CMM measures the surface of
the object using a contact probe, a
highly sensitive pressure sensing
device that is activated by any
contact with an object.
• The linear distances from three
axes to the position of the probe
are ascertained, thus giving the x,
y, and z coordinates of the
surface.
Digitizing using CMM
• A typical CMM measuring system
includes a CNC machine, a scanning
probe, 3-axis simultaneous motion
drivers and counters, and a
personal computer.
• The workpiece is positioned on top
of the XY stage.
• The scanning probe is mounted in
the vertical direction (Z stage) of
the CNC machine.
• The probe stylus picks up the signal
when contacted with the workpiece
and transfers it to the digital signal
processor and counter. Schematic diagram of a typical
measuring system.
Digitizing using CMM
• Each of the three CNC stages can be moved simultaneously in the X, Y and
Z axes simultaneously.
• When the probe is traversed along the work piece surface, there exists a
settling time for signal pickup, which is influenced by the probe's contact
pressure.
• Based on the geometry of the object surface, the measured points usually
form irregular grids or meshes.
• In order to determine the surface normal along the surface under
inspection, these points need to be re-sampled or reassembled through an
interpolation scheme such as cubic splines or bilinear.
• Uniqueness problem
• Ambiguity problem
WIREFRAME MODELING
WIREFRAME MODELING
• There are three types of wire frame geometric modeling:
• 2D: It stands of two dimensional view and is useful for flat objects.
• 2½D: It gives views beyond the 2D view and permits viewing of
object that has no sidewall details.
• Provides extruded depth to 2D model without any detailing on its
depth.
• 3D: The three dimension representation allows complete three-
dimensional viewing of the model with highly complex geometry.
WIREFRAME MODELING
SURFACE MODELING
• A surface model represents the skin of an object, these skins have no
thickness or material type.
• These models define the surface features, as well as the edges of objects.
• A mathematical function describes the path of a curve (parametric
techniques).
• Surfaces are edited as single entities.
• External shape of object can be obtained with no information about
internal shape. E.g. sheet metal cover, car body exteriors.
• The basic sketching tools required for surface generation are :
• extruded surface
• revolved surface
• swept surface
• offset surface
SURFACE MODELING
• ADVANTAGES:
• Eliminates ambiguity and non-uniqueness present in WFM
• Renders the model for better visualization and presentation
• Objects appear more realistic.
• Provides the surface geometry for CNC machining.
• Provides the geometry needed for mold and die design.
• Can be used to design and analyze complex free-formed surfaces (ship
hulls, airplane wings, car bodies, …).
• Surface properties such as roughness, color and reflectivity can be
assigned and demonstrated.
• DISADVANTAGES:
• Surface models provide no information about the inside of an object.
• Complicated computation, depending on the number of surfaces .
SOLID MODELING
• Analysis, automation and integration is possible only with solid
models has properties such as weight, moment of inertia, mass.
Subtract
Union Intersection
57
Solid Modeling Example Using CSG
Union
Cut
Constructive Solid Geometry (CSG)
In this figure, the nodes are labeled for intersection, for union, and - for
difference.
CSG DATA STRUCTURE (BINARY TREE)
60
Constructive Solid Geometry (CSG)
• ADVANTAGES:
• Easy to construct a solid model – minimum step.
• CSG modeling techniques lead to a concise database less storage.
– Complete history of model is retained and can be altered at any point.
• Can be converted to the corresponding boundary representation.
• DISADVANTAGES:
• Only boolean operations are allowed in the modeling process with
boolean operation alone, the range of shapes to be modeled is severely
restricted not possible to construct unusual shape.
• Requires a great deal of computation to derive the information on the
boundary, faces and edges which is important for the interactive display/
manipulation of solid.
Solid Modeling
Boundary Representation (B-rep)
• A solid model is formed by defining the surfaces that form its
boundary (edges and surfaces)
F-E+V=2
SWEEP REPRESENTATION
• In theory, moving (sweeping) any geometry (point, line, surface,
solid) through space along an arbitrary path defines new geometry.
69
It needs the surface shape to be defined and the trajectory.
This will be used to create a CSG primitive and/or a B-Rep solid
within the system.
Translational
Rotational
70
71
SWEEP
CAD MODELLING – DATA FORMATS
STL FORMAT
• Representation methods used to describe CAD geometry vary
from one system to another.
1. Facet orientation
– The direction of the normal is outward.
– Vertices are listed CCW order when looking
at the object from outside.
Out
1
CCW 3
2
76
STL file format Specifications
2. Vertex-to-vertex rule
– Each triangle must share two vertices with
each of the adjacent triangles.
– A vertex cannot lie on the side of another
triangle.
Correct Incorrect
77
STL file format Specifications
3. STL files do not contain any scale info; the coordinates
are in arbitrary units.
4. Save as “.stl”, case insensitive.
5. Virtually every 3D modeling package provides an
interface for exporting into STL files.
79
SAMPLE ASCII STL FILE
BINARY STL FORMAT
• An 80-byte ASCII header that can be used to describe the
part.
• A 4 byte unsigned long integer that indicates the number of
facets in the object.
• A list of facet records, each 50 bytes long.
• The facet record will be presented in the following way:
– 3 floating values of 4 bytes each to describe the normal vector
– 3 floating values of 4 bytes each to describe the first vertex
– 3 floating values of 4 bytes each to describe the second vertex
– 3 floating values of 4 bytes each to describe the third vertex
– One unsigned integer of 2 bytes, that should be zero, used for
checking
ADVANTAGES OF STL FILE
• It provides a simple method of representing 3D CAD data.
• It is already a de facto standard and has been used by
most CAD systems and rapid prototyping systems.
• Finally, it can provide small and accurate files for data
transfer for certain shapes.
DISADVANTAGES OF STL FILE
• The STL file is many times larger than
the original CAD data file for a given
accuracy parameter.
• The STL file carries much redundancy
information such as duplicate vertices
and edges.
• Geometry flaws exist in the STL file
because many commercial
tessellation algorithms used by CAD
vendor today are not robust. This
gives rise to the need for a “repair
software” which slows the production
cycle time.
Finally, the subsequent slicing of large
STL files can take many hours.
STL FILE PROBLEMS
• A surface intersection
anomaly which results in
a gap is shown in Figure.
DEGENERATE FACES
• A geometrical degeneracy of a facet occurs when all of the
facets’ edges are collinear even though all its vertices are
distinct.
• This might be caused by stitching algorithms that attempt to
avoid shell punctures.
OVERLAPPING FACETS
• Overlapping facets may be generated due to numerical
round-off errors occurring during tessellation.
• The vertices are represented in 3D space as floating
point numbers instead of integers. Thus the numerical
roundoff can cause facets to overlap if tolerances are set
too liberally.
NON-MANIFOLD CONDITIONS
• Once the boundaries of the gap are identified, suitable facets would
then be generated to repair and “patch up” these gaps.
• If this condition is not fulfilled, then this indicates that there are
some missing facets.
• The IGES file can precisely represent CAD models. It includes not
only the geometry information (Parameter Data Section) but also
topological information (Directory Entry Section).
DISADVANTAGES OF HP/GL
• First, because HP/GL is a 2D data format, the files would
not be appended, potentially leaving hundreds of small
files needing to be given logical names and then
transferred.
• Second, all the support structures required must be
generated in the CAD system and sliced in the same way.
CT Data
• CT (Computerized Tomography) scan data is
a particular approach for medical imaging.
Disadvantage of CT Data
• Disadvantages of CT data include firstly, the increased
difficulty in dealing with image data as compared with
STL data and secondly, the need for a special
interpreter to process CT data.
OTHER FORMATS
CSlice
SLI
106
Part Orientation and Support
Generation
Part Orientation
• The Part orientation and support generation are very
important issues in additive manufacturing.
• The optimum orientation of the CAD model will,
• Reduce the part building time
• Reduce the cost of prototype
• Reduce the support material requirement and
• Reduce prototype building errors (eg. Staircase effect)
Part Orientation
• Shortest dimension in the ‘z’ direction:
• Normally the RP machine allows the operator to rotate parts to a desired
position before slicing and building with consideration of height of the
part. If a part can be placed with the shortest dimension in the ‘z’
direction, it will require the minimum number of slices and therefore take
less time and effort in building.
• Shape of the part :
• It is usually effective to place larger cross sections near the bottom of the
build, so that overhangs do not have to be supported. If a large cross
section were to be placed on top of a significantly smaller one, the edges
of the top slice would sag due to lack of physical support.
Part Orientation
• Curved surfaces:
• If it is practical concerning the number of slices, curves will be
smoother if placed in the cutting plane. Sometimes a trade-
off between curve accuracy and build layers can be achieved
by rotating the part at an angle.
Support Generation
• The support requirements for prototype will differ based on
additive manufacturing technologies.
• The supports are normally generated as a separate CAD file
by the RP software like Bridgeworks.
• In general, supports are required,
• To give support to the hanging portions
• To separate part from the platform upon its completion
• To avoid collision between platform and other components
• To improve liquid flow in and around the part
111
Support Structure Design
• The supports are normally generated as a separate CAD file by the RP
software like Bridgeworks.
• The structure should be designed such that its total weight is minimized.
• Three functional areas are:
• Sierras or Needles: connections between the main support and the part
(should be easily removable while providing sufficient support)
• Supports: the main support structure (should be strong enough to
withstand both the vertical weight and other horizontal disturbances).
• Separators: connections between the main support and the platform
(easy removal while providing a stable base support).
Categories of Supports
Columns
Projected
Feature Edges
Gussets
Double Webs
Single Webs
1-Sep-22 116
Model Slicing
• The part is • Need to consider:
mathematically – Slice axis vs. part
sectioned by the orientation
computer into series – Slice resolution
of parallel horizontal – Layer thickness
planes. • Cure depths
• linewidth
compensation
• Shrinkage
compensation
• Building time
121
Model slicing
• Direct slicing generates precise • Adaptive slicing modifies the layer
contours for each layer from the thickness to take into account the
solid model and avoids an curvature of the surface of the
intermediate representation. solid model in the vertical
direction, to alleviate the staircase
• When producing prototype effect, and to decrease the
models with uniform layer number of layers.
thickness, there is no guarantee
that important features of an • The advantage of the adaptive
object, such as horizontal slicing is by varying layer thickness
features and other important the number of layers is minimized
feature points, are properly without compromising on height
reproduced. or quality of the part. And also it
reduces the build time and
support structures.
122
Adaptive slicing
Mathematical
Representation
SLA Layers
123
Tool Path Generation
• After the slicing contour is prepared, the tool path planning is
carried out layer by layer, starting from bottom layer.
• Different toolpath categories:
• Raster scanning: It refers to the scanning along one axis. This is the
simple toolpath for layer by layer manufacturing. It is used in
processes such as Stereolithography (SL), Selective laser sintering
(SLS) and 3D printing processes for internal hatching.
• Perimeter scanning: Pattern makes contour scanning on external
surfaces. It is used in Laminated Object Manufacturing for paper
cutting. The internal scanning will be done by orthogonal scanning
on x and y axis.
Tool Path Generation
Tool Path Generation
• Directional scanning: The pattern which scans internal sections at
various angles to an axis jointly with one perimeter scanning. This is
the basic style in 'Tri-Hatch' building style used on
Stereolithography machines of 3D Systems.
• Zigzag tool path: A zigzag tool path is for internal solidification with
a single perimeter for surface scanning. Used in processes like 3D
printing and Ballistic Particle Manufacturing.
• Contouring and spiral paths: Contouring and spiral tool paths can
also be used for certain geometries to improve mechanical
properties.
• Line by line scanning: Line by line scanning is often used in inkjet
type printing processes, such as ThermoJet 3D printer.