Module - 2
Module - 2
Module - 2
MODULE – 2
CAD and Computer Graphics Software
&
Computerized Manufacture Planning and Control System
Prepared by:
Anand A
Assistant Professor
Department of Mechanical Engineering,
RajaRajeswari college of Engineering,
Bangalore - 74
2
Alternatively,
In matrix form, the new center coordinates of C after translation may be obtained as-
Problem-02:
Given a square with coordinate points A(0, 3), B(3, 3), C(3, 0), D(0, 0). Apply the
translation with distance 1 towards X axis and 1 towards Y axis. Obtain the new
coordinates of the square.
Solution-
Given-
•Old coordinates of the square = A (0, 3), B(3, 3), C(3, 0), D(0, 0)
•Translation vector = (Tx, Ty) = (1, 1)
Let-
Initial coordinates of the object O
= (Xold, Yold)
Initial angle of the object O with
respect to origin = Φ
Rotation angle = θ
New coordinates of the object O
after rotation = (Xnew, Ynew).
50
Alternatively,
In matrix form, the new ending coordinates of the line after rotation may be obtained as-
Thus, New ending coordinates of the line after rotation = (1.46, 5.46).
53
Problem-02:
Given a triangle with corner coordinates (0, 0), (1, 0) and (1, 1). Rotate the triangle by 90 degree
anticlockwise direction and find out the new coordinates.
Solution-
We rotate a polygon by rotating each vertex of it with the same rotation angle.
Given-
•Old corner coordinates of the triangle = A (0, 0), B(1, 0), C(1, 1)
•Rotation angle = θ = 90º
For Coordinates A(0, 0)
Let the new coordinates of corner A after rotation = (Xnew, Ynew).
Applying the rotation equations, we have-
Xnew
= Xold x cosθ – Yold x sinθ
= 0 x cos90º – 0 x sin90º
=0
Ynew
= Xold x sinθ + Yold x cosθ
= 0 x sin90º + 0 x cos90º
=0
Thus, New coordinates of corner A after rotation = (0, 0).
54
Thus, New coordinates of the triangle after rotation = A (0, 0), B(0, 1), C(-1, 1).
56
57
58
59
60
61
Let-
•Initial coordinates of the object O = (Xold, Yold)
•Scaling factor for X-axis = Sx
•Scaling factor for Y-axis = Sy
•New coordinates of the object O after scaling = (Xnew, Ynew)
Problem-01:
Given a square object with coordinate points A(0, 3), B(3, 3), C(3, 0), D(0, 0). Apply the
scaling parameter 2 towards X axis and 3 towards Y axis and obtain the new coordinates
of the object.
Solution-
Given-
•Old corner coordinates of the square = A (0, 3), B(3, 3), C(3, 0), D(0, 0)
•Scaling factor along X axis = 2
•Scaling factor along Y axis = 3
Homogeneous Coordinates:
➢The rotation of a point, straight line or an entire image on the screen, about a point other
than origin, is achieved by first moving the image until the point of rotation occupies the
origin, then performing rotation, then finally moving the image to its original position.
➢The moving of an image from one place to another in a straight line is called a translation. A
translation may be done by adding or subtracting to each point, the amount, by which picture
is required to be shifted.
➢Translation of point by the change of coordinate cannot be combined with other
transformation by using simple matrix application. Such a combination is essential if we wish
to rotate an image about a point other than origin by translation, rotation again translation.
➢To combine these three transformations into a single transformation, homogeneous
coordinates are used. In homogeneous coordinate system, two-dimensional coordinate
positions (x, y) are represented by triple-coordinates.
➢Homogeneous coordinates are generally used in design and construction applications. Here
we perform translations, rotations, scaling to fit the picture into proper position.
➢The homogeneous coordinates representation of (X, Y) is (X, Y, 1).
➢ Through this representation, all the transformations can be performed using matrix / vector
multiplications.
68
Composite Transformation:
A number of transformations or sequence of transformations can be combined into
single one called as composition. The resulting matrix is called as composite
matrix. The process of combining is called as concatenation.
Suppose we want to perform rotation about an arbitrary point, then we can perform
it by the sequence of three transformations
✓Translation
✓Rotation
✓Reverse Translation
The ordering sequence of these numbers of transformations must not be changed. If
a matrix is represented in column form, then the composite transformation is
performed by multiplying matrix in order from right to left side. The output
obtained from the previous matrix is multiplied with the new coming matrix.
69
➢In recent years, computer aided process planning (CAPP) has been recognized as
a key element in computer integrated manufacturing (CIM).
78
79
➢Next step to be followed in process planning is the selection of machine tools on which these
operations are made. Unit cost of production, manufacture lead time and quality are three basic criteria
for evaluating the suitability of a machine tool to accomplish an operation.
➢Next step to be followed is the selection of tools work holding devices and inspection equipments.
Features on the workpieces are generated using a combination of machine tool and cutting tools. Work
holding devices are used to locate and hold the workpiece to generate features. In order to ensure the
dimensional accuracy, tolerance and surface finish on the feature, inspection equipments are required.
Part features play a vital role in the selection of machine tools, fixture and inspection equipment.
➢Now sixth step which has to be performed is the determination of machining condition and
manufacturing time. The controllable variables of machine condition are cutting speed (υ), feed (f) and
depth of cut (d).
➢Minimum cost per piece, maximum production rate and manufacture lead time are same for the
model to be optimized for high production and less cost.
82
Several computer-aided process planning systems are available for use for a variety of
manufacturing operation.
These systems can broadly be clarified into two categories :
(i) Variant computer aided process planning method.
The variant approach was used in early computer-aided process-planning systems, and is
basically a computerised database retrievel approach . The variant or retrieval approach is
based on group technology methods of classifying and coding parts for the purpose of
segregating these parts into family groups. In this approach, parts produced in a plant are
grouped into part families, distinguished according to their manufacturing characteristics. For
each part family, a standard process plan is established. The plan is stored in a computer file
and then retrieved for new parts that belong to that family. Some form of parts classification
and coding system is required to organise parts into families for correct retrieval of the
appropriate plan for a new part. A major problem with this approach is the lack of adequate
classification models that can provide consistency in classifying and coding parts. It is also
restrictive in that new parts to be planned have to be similar to those already in the data file.
87
88
The second approach to computer-aided process planning is the generative type. Systems
of this type synthesise the process plan for a new part, based on an analysis of part
geometry, material and other factors that may influence manufacturing decisions. Inputs to
the system would usually include a comprehensive description of the part. This may also
involve the use of some form of part coding, but this does not involve the retrieval of
existing standard plans. These systems usually employ either a set of algorithms or
knowledge- based techniques to progress through the various technical and logical decisions
toward an appropriate process plan for a part. The generative approach provides fast advice
to designers early in the design process and is closely coupled with the product-modelling
activities. Once the manufacturing technology, and the type of equipment or process have
been chosen, further detailed planning is carried out as usual. The use of knowledge-based
systems and artificial intelligence techniques was the next major development in generative
process planning.
90
Generative CAPP:
➢Process plans are generated by means of decision logics, formulas, algorithms, and
geometry based data that are built or fed as input to the system.
➢Format of input
– Text input (interactive)
– Graphical input (from CAD models)
➢First key: to develop decision rules appropriate for the part to be processed. These rules
are specified using decision trees, logical statements, such as if-then-else, or artificial
intelligence approaches with object oriented programming.
➢Second key: Finding out the data related to part to drive the planning. Simple forms of
generative CAPP systems may be driven by GT codes.
➢The generative CAPP has all the advantages of variant CAPP however it has an additional
advantage that it is fully automatic and a up-to-date process plan is generated at each time.
➢It requires major revisions if a new equipment or processing capabilities became available.
➢The development of the system in the beginning is a difficult.
92