Reverse Engineering-Unit 1 Notes
Reverse Engineering-Unit 1 Notes
1) Forward engineering:
High level abstractions (means defining system’s design, components and interaction on
conceptual level) and logical design to physical implementation of a system.
2) Reverse engineering:
It is process of duplication existing part, subassembly or product without drawings,
documentation or computer model.
Also defined as process of obtaining CAD model from 3D points (cloud points) obtained by
scanning existing parts/products
Application of reverse engineering: Manufacturing, industrial design and jewelry design and
reproduction
Advantage: Using reverse engineering we can quickly capture a physical product in a digital
form, remodel it and export it for rapid prototyping using 3D printer or CNC machine. This
shorten product development time
RE tech. is used for reconstructing 3D models of object in different geometric formats
RE tech. are of 3 types: contact, noncontact and destructive
Output of RE’s data acquisition process is 2D images and point cloud representing geo.
of object
RE software transforms data from RE hardware into 3D model
Final output of data processing is 2 types of 3D data: 1) Polygon 2)NURBS (non uniform
rational B-splines)
Polygon used for: rapid prototyping, laser milling, 3D graphics, simulation and
animations.
NURBS used in: CAD,CAM and CAE
Q) How RE reduce product development time (CHAT GPT)
A) Reverse engineering can indeed contribute to reducing product development time for
mechanical engineers in several ways:
6. Faster Replacement Part Development: In cases where replacement parts are needed for
maintenance or repair, reverse engineering can expedite the process. Engineers can quickly
recreate the required part without starting from scratch.
8. Reduced Trial and Error: With a better understanding of existing designs obtained through
reverse engineering, engineers can reduce the trial-and-error phase during product
development. This leads to more efficient decision-making and design choices.
10. Minimized Research Time: Reverse engineering can provide insights into competitors'
products or similar solutions in the market. This can help engineers quickly understand industry
trends and best practices, reducing the time spent on research.
Considerations:
1) Reason for RE
2) Number of parts to be scanned
3) Part Size
4) Part Complexity
5) Part material
6) Part finish
7) Part geometry
8) Accuracy needed
Phase 1 – Scanning: Choose correct scanning technique, prepare part to scan, perform scanning to
capture info. describing all geo. features of part (slots, pockets, holes)
Scanning devices can be a dedicated tool or add-on to existing computer numerically controlled (CNC)
machine tools
CONTACT SCANNERS:
Issues:
Problem when laser strikes shiny surfaces, so we need to prepare part using temporary coating
of fine powder b4 scanning
Accuracy matters more than speed of scanning => restricted use of remote sensing devices
It involves importing cloud points, reducing noise in collected data and reduce number of
pts..These task performed by predefined filters
Need understanding of filter algo so they know which filter to use for each task
Processing allows to merge multiple scan data sets
Part is scanned multiple times to ensure each feature is scanned (by rotating part) => each
scanned data is crucial. Good datum (Datum planning involves selecting reference points or
planes on an object's surface that serve as a coordinate system for aligning and merging
multiple scans) planning for multiple scanning reduces effort required in point processing
Output of point processing is clean, merged, point cloud data set in most convenient format
Current RE tech., helping to reduce time to create electronic CAD model from existing physical
representations
Surface fitting algo are needed to generate surface that accurately represent 3D info. described
within point cloud data sets
Most CAD software cannot display and process large amount of point data, so RE modules or
discrete software packages are needed for pt. processing
This phase depends on real purpose for reverse engineering
RE software can also be used for inspection by importing CAD model used for designing a
product and superimposing scanned point cloud data on it
1) Contact Methods
They use sensing devices with mechanical arms, coordinate measurement machines
(CMM) and computer numerical control (CNC) machines, to digitalize surface
2 types of data collection tech.:
2) Noncontact method:
2D images and point cloud representing geo. of object are captured by projecting
energy sources (light, sound or magnetic field) onto object.
Transmitted or reflected energy is observed
Geo. data finally calc.ed using triangulation, time of flight, wave interference info. and
image processing algo.
No contact btw RE hardware and an obj during data acquisition
Non-contact RE can be classified on basis of: sensor tech., data acquisition technique
OPTICAL TECH.
Triangulation method: use location and angles btw light sources and photosensitive devices (CCD-charge
coupled devices) to calc. coordinates
High E light source – focused and projected at specific angle (Q) onto surface of obj.
Photosensitive device sense reflection from illuminated point on surface
Baseline length(L) / Calibration: fixed distance btw light source and camera
Angle (Q)
Focal length of camera(F)
Image coordinate point of illuminated point (P)
Pos. of illuminated point (Pi) wrt camera coordinate sys given by:
Increasing base line length => higher accuracy but due to practical reasons we can’t inc. base
line length, limited by hardware structure of scanner
So, used for smaller obj over short distance
If single-pt. or sheet light pattern used as light source, scanner mounted on travel platform, to
prod. multi. surface scans
STRUCTURED LIGHT:
A light pattern is projected at a known angle onto surface and an image of reflected pattern,
reflected by surface is captured
Image is analyzed to calc. coordinates of data points on surface
Light pattern: single point, sheet of light, strip, grid,etc
Most common pattern : sheet of light
When sheet of light intersect obj, line of light is formed along contour of obj
Line is detected and X,Y,Z coordinates of pts. Along line are calc. by triangulation
Sheet of light sweeps obj as linear slide(carrying source of light) moves in X dir while a sequence
of img. are taken by camera
Index number k assigned to each img. taken in order
So k correspond to X pos. of sheet of light
Image k got image coordinates (i, j)
(I,j,k) are range image coordinates which are transformed into (x,y,z) world coordinates using
calibration matix
DESTRUCTIVE METHOD:
Used for small and complex obj. in which both internal and external features are scanned.
CNC milling machine expose 2D cross sectional img. which are gathered by CCD camera
In RP process, part-built layer by layer using 2D img. data
RE is reverse of RP process, 2D data is gathered by destroying part layer by layer
DISADVANTAGE:
ADVANTAGES:
Fast
Acceptable accuracy
Repeatability is ± 0.0127mm
Layer thickness: 0.0127 – 0.254 mm
Allows capturing of internal features
Can be used on any machinable obj.
WHAT IS CARE? :
CAE(using CAD and CAM tech.) is automation of engineering an fabrication where a design
formalizes ideas through computer modeling and then fabricate those models into real world
objects. CAD softwares are used to create digital models and CAM softwares are used to give
instruction to machine and tools for converting these digital models into real life obj.
CARE is opposite of this
It creates digital models of obj through measurements of obj.
First step in CARE is making measurements at pts. along surface of obj.
Each pt. has x,y,z coordinates in 3D space
Collection of these pts. is pt. cloud. It gives sufficient desc. of obj
Higher level possible by using more surface features such as surface edges and creases from pt.
cloud data.
ADVANTAGES OF CARE:
Its allows rapid inspection and validation of real life obj. based on original CAD designs
Can quickly evaluate tolerance relative to CAD model
Such feedback enables tighter control over manufacturing process or aids redesign of
component
It allows faster and easier transfer of data as compared to traditional method of expensive
courier delivery of physical prototype
HOW TO AUTOMATE measuring of geo. of obj? : CMMs and Computer vision systems
Vernier Caliper- manually measure objects, requires significant effort for complex obj.
CMM tech. – first step taken to automate RE process
CMM still used and popular for simple tasks
For simple obj., manual process of measurement using caliper is straightforward but as
complexity of obj. inc. , primitive planar and quadratic surfaces are no longer suitable
To solve this prob, CMM was introduced.
It has 3 mutually perpendicular axes (X,Y,Z) each has built in reference standard
COMPUTER VISION:
Laser travels as wave from source to obj. and then back to detector
As a wave, light undergoes phase change
Difference in initial phase and final phase use to find obj’s distance
Theoretical comparison:
CMM are mechanical sys, bound by physical principles i.e. probe must physically maneuver
around obj.
Camera (are solid state sensors) take measurements from a distance and require less
mechanical precision
Accuracy of CMM depend on mechanical control of probe
Accuracy of active stereo sys depend on solid state sensors
Advantage of standoff nature of computer vision (i.e. camera is at some standoff dist. Away frm
obj):
Avoid damaging to obj and probe: as probe travels on surface it may scratch it, if the temp. of
surface is too hot or too cold then heat transfer can dmg probe
Simplification of path planning: in CMM- need to plan path carefully to avoid tight spaces and
discontinuity but there is no such limitation for computer vision
Laser projects line on obj. and triangulation among line, laser and camera give 3D
measurement
Convery belt can used to move obj. under laser line to scan profiles over the obj.
Another approach is not move the obj. but the scanner.
The laser and camera are mounted on wand. User swipes wand arund obj.
1. Data collection:
Sheet of light is best suited for CARE application
1st step (after data collection) Calibration allows transforming of range image into 3D
pt. cloud
Range img. is similar to conventional digital img. (one we find in digital cam)
Calibration determine relationship btw img. coordinates (r,i,j) (r is range value units are
relative to config. of sys.) and world coordinate system(x,y,z)
Left img in fig. 2.13 is range img.
Right img is point cloud, diff. to visualize on 2D sheet but can be easily viewed in a 3D
viewer
2nd step View registration: Fig. 2.14 shows u need at least 2 views to collect
measurements from entire part
Challenge: we need to define 2 coordinate sys.
Consider pt. P in one view img. has (x,y,z) coordinates relative to one coordinate system
but this same point will have p’ = (x’,y’,z’) coordinates relative to the second coordinate
system on the other view img.
P and P’ are physically same pt. so we will need to apply transformation, eq. of
transformation:
R is rotational matrix
T is translational matrix
The problem is that R and t are unknown
Registered algo. find R and t using raw data from diff view of obj
If no overlap exist in the view imgs then registration is almost impossible, we will need
higher order constraints
3rd step is Mesh Reconstruction:
After making a point cloud we need to mesh the model
Triangle mesh are default standard as they simply computer visualization cuz they have
guaranteed convexity
Sampling: defines no. of pts. in pt cloud and their relative distance to each other
Under-sampling: incomplete and inaccurate model
Over-sampling: overwhelm computer resources.
Mesh reconstruction algo must define their sampling requirements
Measurement error: If we have 3D point p on surface of obj, measuring it with scanner
will have some errors. If the observed pt is q then relation btw the pt is:
vector e is error
Mesh reconstruction tries to minimize the impact of e
Mesh reconstruction algo must consider 3 factors:
1) Topology of obj.
2) Overlap btw diff view of obj.:
primarily for registration but it also useful to minimize measurement error
3) Missing data:
It leads to holes in mesh
1) Surface based
2) Volumetric based
Once we have first order approximation of obj from mesh reconstruction, final stage is
higher order desc. that is needed for CAD applications
In some cases triangle mesh from reconstruction are sufficient
In other cases we need parametric rep. such as nonuniform rational B-splines(NURBS)
Last stage is broadly labeled as surface fitting
Parametric rep. of surface: