Professional Documents
Culture Documents
(ME 60305)
• Accordingly they have used the computer’s huge memory capacity, fast processing speed,
and user friendly interactive graphics capabilities to automate and integrate otherwise
cumbersome and separate engineering or production tasks, thus reducing the time and
cost of product development and production.
• The design process starts from customer’s demands that are identified by the
marketting personnel and ends with a complete description of the product,
usually in the form of a drawing.
• The manufacturing process starts from the design specifications and ends with
shipping of the actual products.
• The activities involved in the design process can be classified largely as two
types: synthesis and analysis.
Introduction to CAD/CAM/CAE (continued)
• As illustrated in Figure, the initial design activities (such as identification of design need, formulation
of design specifications, feasibility study with collecting relevant design information, and design
conceptualization) are part of the synthesis subprocess.
• That is the result of the synthesis subprocess is a conceptual design of the prospective product in
the form of a sketch or a layout drawing that shows the relationships among the various components
as well as any surrounding constraints.
• The major financial commitment needed to realize the product idea are made and the functionality of
the product is determined during this phase of the cycle.
• Most of the information generated and handled in the synthesis subprocess is qualitative and
consequently is hard to capture in a computer system.
Introduction to CAD/CAM/CAE (continued)
• Once the conceptual design has been developed, the analysis subprocess begins with analysis and
optimization of the design.
• An analysis model is derived first because the analysis subprocess is applied to the model rather than the
design itself.
• The analysis model is obtained by removing from the design unnecessary details, reducing dimensions
and recognizing and employing symmetry.
• Dimensional reduction, for example, implies that a thin sheet of material is represented by an equivalent
surface with a thickness attribute or that a long slender region is represented by a line having cross-
sectional properties.
• Bodies with symmetries in their geometry and loading are usually analyzed by considering a portion of the
model.
Introduction to CAD/CAM/CAE (continued)
• Once a design has been completed, after optimization or some tradeoff decisions, the design
evaluation phase begins.
• Nowadays new technologies like rapid prototyping are becoming popular for constructing prototypes.
• The rapid prototyping process fabricates the object by starting at the base and building each layer on
top of the preceding layer to approximate the solid shape.
• Stereolithography uses a photosensitive liquid polymer that cures (solidifies) when subjected to intense
light. Curing is accomplished using a moving laser beam whose path at each layer is controlled by the
CAD model.
Introduction to CAD/CAM/CAE (continued)
• If the design evaluation of the prototype indicates that the design is unsatisfactory, the
process described is repeated with a new design.
• When the outcome of the design evaluation is satisfactory, the design documentation is
prepared.
• Conventionally, blueprints are made from the drawings and passed on to manufacturing.
Introduction to CAD/CAM/CAE (continued)
• As illustrated in Figure, the manufacturing process begins with process planning, using the drawings from
the design process, and it ends with the actual products.
• Process planning is a function that establishes which processes – and the proper parameters for the
processes – are to be used.
• The outcome of process planning is a production plan, materials order and machine programming.
• The analysis subprocess of the design process is the area where computer finds
application.
• There are many available software packages for stress analysis, interference checking,
and kinematic analysis, etc. These software packages are classified as CAE.
• However, an analysis model must be derived first from the conceptual design by
eliminating unnecessary details from the design or by reducing its dimensions.
• The proper level of abstraction differs, depending on the type of analysis and the desired
accuracy of the solution.
• It is a common practice to create the abstract shape of the design by using a computer-
aided drafting system or a geometric modeling system or sometimes by using the built-in
capabilities of the analysis packages.
Introduction to CAD/CAM/CAE (continued)
• Analysis packages usually require the structure of interest to be represented by an
aggregation of interconnected meshes that divide the problem into manageable chunks for
the computer.
• This activity of generating meshes is called finite element modeling. It also includes the
activity of specifying the boundary conditions and external loads.
• The design is further optimized by implementing various optimization procedures with the
help of computer.
• The design evaluation phase can be also facilitated by the use of computer.
• It is based on virtual reality technology, and involves the use of the CAD geometric model
to construct a digital mock-up of the product.
• It enables the designer and the others to obtain the sensation of the real physical product
without actually building the physical prototype.
• Virtual prototyping has been used in automotive industry to evaluate new car style designs.
Other applications include checking the feasibility of assembly operations.
Introduction to CAD/CAM/CAE (continued)
• The final phase of the design process is design documentation. In this phase, computer-
aided drafting is a powerful tool.
• CAD systems can be used as automated drafting machines to prepare highly accurate
engineering drawings quickly.
• CAD systems increase the productivity in the drafting function by about five fold over
manual preparation of drawings.
• The file handling capability of computer drafting systems also allows systematic storage
and retrieval of documents.
Introduction to CAD/CAM/CAE (continued)
• Computer technologies are also used in manufacturing process and can be classified
as Computer-Aided Manufacturing (CAM) e.g. production planning, ordering
materials, NC programming, quality control and so on.
• For example, computer-aided process planning (CAPP) software to aid the process
planning activity is one type of CAM software.
• There are software packages that can generate the numerically controlled (NC)
programs that drive NC machines.
• In addition, also belonging to CAM are the software packages to program the robot
motion to assemble components or deliver them to the various manufacturing
activities, or to program a coordinate measuring machine (CMM) to inspect the
product.
Introduction to CAD/CAM/CAE (continued)
• Computer-Aided Design (CAD) is the technology concerned with the use of computer
systems to assist in the creation, modification, analysis, and optimization of a design.
• CAD tools can vary from geometric tools for manipulating shapes, tolerance analysis, mass
property calculation, finite element modeling and visualization of the analysis results,
optimization, to name a few.
• The most basic role of CAD is to define the geometry of design. Computer-aided drafting
and geometric modeling are typically used for this purpose.
• The geometry created by these systems can be used as a basis for performing other
functions in CAE and CAM.
Introduction to CAD/CAM/CAE (continued)
• Computer-Aided Manufacturing (CAM) is the technology concerned with the use of
computer systems to plan, manage and control manufacturing operations through either
direct or indirect computer interface with the plant’s production resources.
• Some CAM applications for manufacturing control are process monitoring and control,
quality control, shop floor control, inventory control, and just-in-time systems, and so on.
Introduction to CAD/CAM/CAE (continued)
• Computer-Aided Manufacturing (CAM) is the technology concerned with the use of
computer systems to plan, manage and control manufacturing operations through either
direct or indirect computer interface with the plant’s production resources.
Manufacturing planning
• CAM applications for manufacturing planning are those in which the computer is used
indirectly to support the production function.
• The computer is used “offline” to provide information for the effective planning and
management of production activities.
• Process planning is concerned with the preparation of route sheets that list the
sequence of operations and work centres required to produce the product and its
components.
• One of the problems in operating a machine tool is determining the speeds and feeds.
• Computer programs have been written to recommend the appropriate cutting conditions to use for
different materials.
• The calculations are based on data obtained either in the factory or lab that relate tool life to
cutting conditions.
• Establishing the time standards by direct time study can be a tedious and time consuming task.
• These computer programs use standard time data that have been developed for basic work
elements that comprise any manual task.
• By summing the times for individual elements required to perform a new job, the program
calculates the standard time for the job.
Introduction to CAD/CAM/CAE (continued)
Cost estimating
• The task of estimating the cost of a new product has been simplified in most industries by
computerizing several of the key steps required to prepare the estimate.
• The computer is programmed to apply the appropriate labor and overhead rates to the sequence
of planned operations for the components of new products.
• The program then sums the individual component costs from the engineering bill of materials to
determine the overall product cost.
• The computer has found widespread use in many of the functions in production and inventory
planning.
• These functions include: maintenance of inventory records, automatic reordering of stock items
when inventory is depleted, production scheduling, maintaining current priorities for the different
production orders, materials requirement planning, and capacity planning.
Introduction to CAD/CAM/CAE (continued)
Production and inventory planning (continued)
• Capacity planning is concerned with determining the labor and equipment resources
needed to achieve the production schedule.
• Finding the best allocation of work elements among stations on an assembly line is a
large and difficult problem if the line is of significant size.
• Computer programs have been developed to assist in the solution of this problem.
Introduction to CAD/CAM/CAE (continued)
Manufacturing control
• The second category of CAM applications is concerned with developing computer
systems to implement the manufacturing control function.
• It is concerned with managing and controlling the physical operations in the factory.
process monitoring and control, quality control, shop floor control, inventory control, and
just-in-time systems.
Introduction to CAD/CAM/CAE (continued)
Process monitoring and control
• Process monitoring and control is concerned with observing and regulating the
production equipment and manufacturing processes in the plant.
Quality control
• It is concerned with maintaining the most appropriate levels of inventory in the face of
two opposing objectives: minimizing the inventory and storage costs of holding inventory
and maximizing service to the customers.
• The term just-in-time refers to a production system that is organized to deliver exactly
the right number of each component to downstream work stations in the manufacturing
sequence just at the time when that component is needed.
• It applies to not only production operations but to supplier delivery operations as well.
Introduction to CAD/CAM/CAE (continued)
• Computer-Aided Engineering (CAE) is a technology concerned with the use of computer
systems to analyze CAD geometry, allowing the designer to simulate and study how the
product will behave so that the design can be refined and optimized.
• CAE tools are available for a wide range of analyses e.g. kinematics analyses, mass
properties analysis, Interference checking, tolerance analysis, finite element analysis and
so on.
• For example, kinematic analysis can be used to study the operation of mechanical
linkages to analyze their motions.
• Typically it consists of specifying the motion of one or more driving members of the linkage
and the resulting motions of other links are determined by the analysis package.
• Dynamic analysis extends the kinematic analysis by including the effects of mass of each
linkage member and the resulting acceleration forces as well as any externally applied
forces.
Introduction to CAD/CAM/CAE (continued)
• Mass properties analysis involves computation of volume, surface area, weight, centre
of gravity, etc.
– To determine how the tolerance affects the ease or difficulty of assembling the product
– To assess how the variations in the component dimensions affect the overall size of the
assembly
Introduction to CAD/CAM/CAE (continued)
• Another widely used method of computer analysis in engineering is finite element
analysis (FEA) used to determine stress, deformation, heat transfer, magnetic field
distribution, fluid flow and other problem.
• By solving the equations for each node, the distribution of values of the variable
throughout the physical object is determined.
Introduction to CAD/CAM/CAE (continued)
FEA model to analyze the temperature of a cutting tool
Introduction to CAD/CAM/CAE (continued)
• A proper level of abstract model is required by the finite element method instead of the design
geometry itself.
• The abstract model is obtained by eliminating the unnecessary details from the design geometry
or by reducing the dimensions of the design geometry.
• For example, a 3D object having thin thickness may become a 2D shell model when it is converted
to an analysis model.
• It is necessary to generate the abstract model either automatically or interactively in order to use a
finite element method. Once the abstract model has been developed, the finite elements are
generated to yield the analysis model.
• The software tools that enable the construction of the abstract model and generation of the finite
elements are called pre-processors.
• After performing an analysis on each element, the computer assembles the results and displays it
visually e.g. areas of high stress may be shown in red. The software tools for this visualization are
called post-processors.
Introduction to CAD/CAM/CAE (continued)
• Thus CAD, CAM, and CAE are concerned with automating specific functions of the product cycle
and making them more efficient.
• Because they were developed separately, they have not fully realized the potential of integrating
the design and manufacturing activities of the product cycle.
• To solve this problem, a technology called computer integrated manufacturing (CIM) has been
introduced.
• CIM is aimed at integrating the separate “islands of automation” together into a smoothly running
efficient system.
• CIM is concerned with using the computer database as a way to run an entire enterprise more
efficiently, having an impact on accounting, scheduling, shipping and other management functions
in addition to the engineering design and production functions of concern to CAD/CAM/CAE.
• A wireframe model of an object is the simplest geometric model that can be used to represent
it mathematically in the computer.
• The word wireframe is related to the fact that one may imagine a wire that is bent to follow the
object edges to generate the model.
• A wireframe model consists entirely of points, lines, arcs, circles, conics and curves.
• It is the most commonly used technique and all commercial CAD/CAM systems are
wireframe-based.
Introduction to CAD/CAM/CAE (continued)
•It does not require much computer time and memory as does surface or solid modeling.
•However, the user or terminal time needed to prepare and / or input data is substantial
and increases rapidly with the complexity of the object being modeled.
•The CPU time required to retrieve, edit, or update a wireframe model is usually small
compared to surface or solid models.
Introduction to CAD/CAM/CAE (continued)
Disadvantages of Wireframe models
• These models are usually ambiguous representations of real objects and rely heavily on
human interpretation e.g. wireframe model of a box, where the model may represent more
than one object depending on which face(s) is assumed to exist.
•Models of complex designs having many edges may become very confusing and perhaps
even impossible to interpret.
•Another disadvantage is lack of visual coherence and information to determine the object
profile e.g. representation of a hole or curved portion of the object.
Introduction to CAD/CAM/CAE (continued)
Disadvantages of Wireframe models (continued)
• Figure shows possible cases to display holes and / or curved surfaces of objects.
• In most systems the hole is displayed as two parallel circles separated by the hole length.
• Some systems may connect a line between the two circles on one side of the hole.
• In many cases, users add edges of the hole for appearance purposes at the drafting mode or may use
a cylindrical surface to represent the hole which introduces problem later on during the model cleanup
phase.
• Representing the intersection of plane faces with cylinders, cylinders with cylinders, or tangent
surfaces in general is usually a problem in wireframe modeling and requires user manipulations.
Introduction to CAD/CAM/CAE (continued)
Disadvantages of Wireframe models (continued)
• Wireframe models are also considered lengthy or verbose when it comes to the amount of
defining data and command sequence required to construct them.
• For example, consider the creation of a simple box as a wireframe and as a solid.
• In the latter, the location of one corner, the length, width and height are the required input
while in the former the coordinates of atleast four corners of one face, the depth, and the
edge connectivity are required, considering the box as a two and a half dimensional object.
• In other words, both topological and geometrical data are needed to construct wireframe
models while solids require only geometrical data.
Introduction to CAD/CAM/CAE (continued)
Disadvantages of Wireframe models (continued)
A wireframe model consists of the vertex table and the edge table. Each entry of the vertex table records a
vertex and its coordinate values, while each entry of the edge table has two components giving the two
incident vertices of that edge.
Edge Table
Edge Start End
Vertex Table # Vertex Vertex
Vertex # x y z 1 1 2
1 1 1 1 2 2 3
2 1 -1 1 3 3 4
3 -1 -1 1 4 4 1
4 -1 1 1 5 5 6
5 1 1 -1 6 6 7
6 1 -1 -1 7 7 8
7 -1 -1 -1 8 8 5
8 -1 1 -1 9 1 5
10 2 6
11 3 7
12 4 8
Introduction to CAD/CAM/CAE (continued)
Disadvantages of Wireframe models (continued)
• From an application and engineering point of view, wireframe models are of limited use.
Unless the object is two and a half dimensional, volume and mass properties, NC tool path
generation, cross-sectioning, and interference directions cannot be calculated.
• The model can however, be used in manual finite element modeling and tolerance analysis.
Introduction to CAD/CAM/CAE (continued)
Wireframe entities
• All CAD/CAM systems provide users with basic wireframe entities which can be divided into
analytic and synthetic entities.
• Analytic entities are points, lines, arcs and circles, fillets and chamfers and conics (ellipses,
parabolas and hyperbolas).
• Synthetic entities include various types of spline (cubic spline, B-spline, beta-spline) and
Bezier curves.
• Table in the next slide shows the common methods utilized by CAD/CAM systems to create
wireframe entities.
Introduction to CAD/CAM/CAE (continued)
Methods of defining points
Introduction to CAD/CAM/CAE (continued)
Methods of defining points (continued)
Introduction to CAD/CAM/CAE (continued)
Methods of defining lines
Introduction to CAD/CAM/CAE (continued)
Methods of defining arcs and circles
Introduction to CAD/CAM/CAE (continued)
Methods of defining ellipses and parabolas
Introduction to CAD/CAM/CAE (continued)
Methods of defining synthetic curves
Introduction to CAD/CAM/CAE (continued)
Curve representation
• Many applications (automotive and aerospace industries) require other than general curves to
meet various shape constraints (continuity and / or curvature).
• The coordinate array method is impractical as the storage required can be execessively large and
the computation to transform the data from one form to another is cumbersome.
• In addition, the exact shape of the curve is not known, therefore impairing the exact computations
such as intersection of curves and physical properties of objects (e.g. volume calculations).
• From a design point of view, it becomes difficult to redesign shapes of existing objects via the
coordinate array method.
• Analytic equations of curves provide designers with information such as the effect of data points
on curve behavior, control, continuity and curvature.
Introduction to CAD/CAM/CAE (continued)
Curve representation (continued)
• The treatment of curves in computer graphics and CAD/CAM is different from that in analytic
geometry.
• Curves describing engineering objects are generally smooth and well behaved.
• In addition, not every available form of curve equation is efficient to use in CAD/CAM software due
to either computation or programming problems e.g. a curve equation that results in a division by
zero while calculating the curve slope causes overflow and errors in calculation.
• Similarly if intersection of two curves is to be found by solving their two equations numerically, the
forms of the equations may be inadequate to program due to known problems with numerical
solutions.
• In addition considering that most design data of objects are available in a discrete form, mainly key
points, the curve equation should be able to accept points and / or tangent values as input from
the designer.
Introduction to CAD/CAM/CAE (continued)
Curve representation (continued)
• Curves can be described mathematically or nonparametric or parametric equations.
• For a nonparametric curve, the coordinates y and z of a point on the curve are expressed as two
separate functions of the third coordinate x as the independent variable (see equation below).
• If the coordinates x, y and z are related together by two functions (see equation below), a
nonparametric implicit form results.
Introduction to CAD/CAM/CAE (continued)
Curve representation (continued)
• For parametric curve, on the other hand, a parameter is introduced and the coordinates x, y and z are
expressed a functions of this parameter. (see equation below)
• Explicit nonparametric representation of a general three dimensional curve takes the form:
• This form cannot be used to represent closed (e.g. circles) or multivalued curves (e.g.
parabolas).
Introduction to CAD/CAM/CAE (continued)
Curve representation (continued)
• The implicit nonparametric representation can solve this problem and is given by the
intersection of two surfaces as
• However the equation must be solved to find its roots (y and z values) if a certain value of x is
given. This may be inconvenient and lengthy.
– Shapes of most engineering objects are intrinsically independent of any coordinate system. What determines
the shape of an object is the relationship between its data points themselves and not between these points
and some arbitrary coordinate system.
– If the curve is to be displayed as a series of points or straight line segments, the computations involved could
be extensive.
Introduction to CAD/CAM/CAE (continued)
Curve representation (continued)
• It allows closed and multiple-valued functions to be easily defined and replaces the use of
slopes with that of tangent vectors.
• In the case of commonly used curves such as conics and cubics, these equations are
polynomials rather than equations involving roots.
• Hence the parametric form is not only more general but it also well suited to computations
and display.
• In addition, this form has properties that are attractive to CAD/CAM and the interactive
environment.
Introduction to CAD/CAM/CAE (continued)
• In parametric form, each point on a curve is expressed as a function of a parameter u.
• The parametric equation for a three dimensional curve in space takes the following vector form:
• The above equation implies that the coordinates of a point on the curve are the components of its
position vector.
• It is a one to one mapping from the parametric space (euclidean space E1 in u values) to the Cartesian
space (E3 in x, y, z values) as shown.
Introduction to CAD/CAM/CAE (continued)
• The parametric curve is bounded by two parametric values umin and umax. It is however
convinient to normalize the parametric variable u to have the limits 0 and 1. The positive
sense on the curve is the sense in which u increases.
• The parametric form as given by the following equation facilitates many of the useful related
computations ion geometric modeling.
•To check whether a given point lies on the curve or not reduces to finding the corresponding
u values and checking whether that value lies in the stated u range.
•Points on the curve can be computed by substituting the proper parametric values into the
above equation.
•Parametric geometry can be easily expressed in terms of vectors and matrices which
enables the use of simple computation techniques to solve complex analytical geometry
problems.
Introduction to CAD/CAM/CAE (continued)
• To evaluate the slope of a parametric curve at an arbitrary point on it, the concept of the
tangent vector must be introduced.
• As shown in Fig., the tangent vector is defined as vector P´(u) in the Cartesian space such
that
•Substituting the parametric equation for a three dimensional curve in the above equation
yields the components of the tangent vector in the parameter space as
where x´(u), y´(u) and z´(u) are the first parametric derivatives (with respect
to u) of the position vector components x(u), y(u) and z(u) respectively.
•The slopes of the curve are given by the ratios of the components of the tangent
vector:
Introduction to CAD/CAM/CAE (continued)
•The slopes of the curve are given by the ratios of the components of the tangent
vector:
•The tangent vector has the same direction as the tangent to the curve – hence the
name “tangent vector”.
where is the unit vector with Cartesian space components nx, ny and nz.
•The magnitude of the tangent vectors at the two ends of a curve affects its shape
and can be used to control it.
Introduction to CAD/CAM/CAE (continued)
• There are two categories of curves that can be represented parametrically: analytic and
synthetic.
• Analytic curves are defined as those that can be described by analytic equations such as
lines, circles and conics.
• Synthetic curves are ones that are described by a set of data points (control points) such as
spline and Bezier curves.
• While analytic curves provide very compact forms to represent shapes and simplify the
computation of related properties such as areas and volumes, they are not attractive to deal
with interactively.
• Alternatively, synthetic curves provide designers with greater flexibility and control of a curve
shape by changing the positions of the control points.
Introduction to CAD/CAM/CAE (continued)
• CAD software may be perceived as an application program supported by a graphics system
as shown in Fig.
• In the actual source code of the application program, the graphics system is embedded in the
form of subroutine calls.
Introduction to CAD/CAM/CAE (continued)
• The graphics system is divided into two parts: the kernel (core system), which is hardware
independent and the device handler/driver, which is hardware dependent.
• The kernel system acts as a buffer between the application program and the specific
hardware to ensure the independence and portability of the program.
• At interface A in the Fig., the application program calls the standard functions and
subroutines provided by the kernel system through what is called language bindings.
• These functions and subroutines in turn calls the device handler / driver functions and
subroutines at the interface B to complete the task required by the application program.
Introduction to CAD/CAM/CAE (continued)
Data Structure
• A data structure is defined as a set of data items or elements that are related to each other by
a set of relations. Applying these relations to the elements of the set results in a meaningful
object.
• From a CAD/CAM point of view, a data structure is scheme, logic or a sequence of steps
developed to achieve a certain graphics, non-graphics and / or a programming goal.
• A decison on data structure has to be made first, followed by a choice of a database to implement such
as structure.
• The objective of a database is to collect and maintain data in a central storage so that it will be
available for operations and decision making.
• The CAD/CAM databases must be able to store pictorial data in addition to textual and alphanumeric
data typically stored in conventional databases.
• Popular database models are: Relational database, Hierarchical database, Network database, and
Object oriented database
Introduction to CAD/CAM/CAE (continued)
Relational database
• Data is stored in tables, called relations, that are related to each other.
• The relations are stored in files which can be accessed sequentially or in a random access mode.
• e.g. The relations needed to describe the object are shown in Fig. The object is represented by three
relations POINT, LINE/CURVE and SURFACE.
• One of the disadvantages of the relational database is that it requires substantial sorting which might
result in slowing the system response to user commands.
Introduction to CAD/CAM/CAE (continued)
Hierarchical database
• In this model, data is represented by a tree structure. The top of the tree is usually known as the “root” and the
superiority, or hierarchy, of the tree levels relative to each other descends from the root down.
• One of the drawbacks of hierarchical approach is the asymmetry of the tree structure, which forces database
programmers to devote time and effort to solving problems, introduced by the hierarchical approach, which are not
intrinsic to the object modeling itself.
Introduction to CAD/CAM/CAE (continued)
Network database
• In network approach permits modeling of many to many correspondence more directly than the
hierarchical approaches.
• The prime disadvantage of the network approach is its undue complexity both in the database structure
itself and in the associated programming of it.
Introduction to CAD/CAM/CAE (continued)
Hierarchical database
• In this model, data is represented by a tree structure. The top of the tree is usually known as the “root” and the
superiority, or hierarchy, of the tree levels relative to each other descends from the root down.
• This type of relationship is called superior/subordinate relationship or is also known as parent/child relationship.
• This data structure has one to one and one to many relationship between entities i.e. a parent record can have many
child records but a child record can have only one parent record; a child can turn into a parent and can have several
children.
• In hierarchical database, the records form the nodes and the fields form branches of the tree.
Advantages
– It is simple straight forward method of implementing record relationship.
Disadvantages
– A child record cannot be added if there is no corresponding record as well as it is not possible to insert a new
dependent if its superior does not exist.
– A parent record cannot be deleted if a child record exists. (before deleting a parent record, it is necessary to first
delete the child record)
– All the relationships that occur in the real world cannot be depicted (like many to many).
• It is similar to hierarchical model except that an entity can have more than one parent.
– It is an improvement over the hierarchical database and can be used to represent many to
many relationships.
Disadvantages
– All record are maintained using pointers and hence the whole database becomes very
complex.
• Data is stored in tables, called relations, that are related to each other.
• The relations are stored in files which can be accessed sequentially or in a random access
mode.
• e.g. The relations needed to describe the object are shown in Fig. The object is represented
by three relations POINT, LINE/CURVE and SURFACE.
Introduction to CAD/CAM/CAE (continued)
Relational database (continued)
Advantages:
– Very effective for small databases.
– Network and hierarchical database use pointers to implement the record relationships but in relational database
the record relationship is implemented using primary key or composite key. Hence it is simple and represents
logical relation among the data items rather than the physical relationships.
Disadvantages
– It supports limited number of data types such as int, float, char, text, etc.
– Itrequires substantial sorting, which may slow down the system’s response to users commands.
Introduction to CAD/CAM/CAE (continued)
Object oriented database
• Unlike conventional database processing, CAD/CAM applications require object oriented accessing and
manipulation i.e. units of retrieval and storage are design objects and not individual records in files.
• These objects are nothing but components having attributes and behavior. Every object will have data
structures called attributes and behaviors called operations.
• For example, the object bicycle has attributes like gear, pedal, wheels, etc. behaviour like braking,
accelerating, changing gears, etc.
• These design objects also form the basis for ensuring database integrity upon the insertion, deletion, or
modification of component objects.
• The object oriented model should be able to capture all the relevant semantics of objects.
• This in turn results in a rich, well integrated and complete database readily accessible for applications.
• Object oriented database models include the entity relationship model, complex object representation, and
abstract data model.
Introduction to CAD/CAM/CAE (continued)
Object oriented database (continued)
• It employs abstract objects as primitives in the design of database. Vertices, edges are Vertices, edges are
the attributes
the attributes
• Fig. shows an example of this database. Primitives are constructed from input data and form the
lowest field or record of storage in the database.
Advantages over Relational DBMS
– Object do not require assembly and disassembly saving coding time and execution time to
assemble/disassemble objects.
• The iterative nature of design. CAD/CAM database management systems must support the
tentative, iterative and evolutionary nature of the design process.
• Design versions and level of detail. CAD databases must provide a capability for storage and
management of multiple design solutions that may exist for a particular design. There is seldom a
unique solution to a design problem and there may exist several optimal solutions.
• Concurrent and multiple users must be supported from the database. Large design projects sually
involve multiple designers working simultaneously on multiple aspects of a project.
• Temporary database support. Due to iterative nature of design, earlier generated data may not be
committed to the database until the design process is completed.
Introduction to CAD/CAM/CAE (continued)
• Free design sequence. The database system should not impose constraints on the designer to
follow because different designs require different sequences.
• Easy access. Application programs requiring data from a CAD/CAM database should not require
extensive knowledge of the database structure to extract the data needed. This is important in
customizing CAD/CAM systems for specific design and manufacturing procedures.
Introduction to CAD/CAM/CAE (continued)
Database Management System (DBMS)
• A DBMS is defined as software that allows access to use and / or modify data stored in a
database.
• The DBMS forms a layer of software between the physical database itself (i.e. stored data)
and the users of this database as shown in Fig.
Introduction to CAD/CAM/CAE (continued)
Database Management System (DBMS) (continued)
• It also shields the users from having to deal with hardware level details by interpreting their
input commands and requests from the database.
• In general, a DBMS is responsible for all database-related activities such as creating files,
checking for illegal users of the database and synchronizing user access to the database.
• DBMSs designed for commercial business systems are too slow for CAD/CAM. The data
handled by the commercial realm is mostly alphanumeric and the objects described are
usually not very complex.
• The handling of graphics data is an area where the conventional DBMSs tend to break down
under the shear volume of data and the demand for quick display.
• The requirements of a DBMS for CAD/CAM are fundamentally different from those required
by commercial data processing applications.
• Therefore, current DBMS and techniques that are originally designed to support business
data processing are not directly applicable to CAD/CAM databases.
• The CAD/CAM databases must support complex relationships between data items in contrast
to business databases that are designed for record keeping and modeling of relatively simple
relationships between data types.
• Another fundamental difference is that business databases are relatively stable over time.
However, CAD/CAM databases must reflect the iterative nature of design and manufacturing.
• Object oriented databases and their related DBMSs seem to be ideal for CAD/CAM and can
result in a significant improvement of CAD/CAM systems.
Introduction to CAD/CAM/CAE (continued)
Software modules
• This module provides the users with utility and system commands that deal with their
accounts and files.
• Typical functions such as file manipulations (delete, copy, rename, etc.), managing
directories and subdirectories using text editors, programming and accounts setup are
supported by the OS module.
• Files that are generated in the user’s CAD/CAM account by the OS can be classified into two
groups: first group including all conventional files (text files) and second group including
graphics related files ( a model geometry and its shaded images are stored in these files).
Introduction to CAD/CAM/CAE (continued)
Software modules (continued)
Graphics Module
• This module provides users with various functions to perform geometric modeling and
construction, editing and manipulation of existing geometry, drafting and documentation.
• The typical graphics operations that users can engage in are model creation, documentation
and plotting.
Solid model of
Typical Surface models a Wine Glass Solid Model of a
universal joint
Introduction to CAD/CAM/CAE (continued)
Software modules (continued)
Applications Module
• The creation of a geometric model of an object represents a means and not a goal to
engineers. The ultimate goal is to be able to utilize the model for design and manufacturing
purposes.
• Manufacturing applications include process planning, NC, CIM, robot simulation and group
technology.
Introduction to CAD/CAM/CAE (continued)
Stress contours
• Manufacturing applications include process planning, NC, CIM, robot simulation and group
technology.
Programming Module
• Typically this module provides the users with system dependent and standard programming
languages.
• The former is provided for graphics purposes while the latter is used for analysis and
calculations.
Introduction to CAD/CAM/CAE (continued)
Software modules (continued)
Communications Module
• This module is crucial if integration is to be achieved between the CAD/CAM system, other
computer systems and manufacturing facilities.
• It is common to network the system to transfer the CAD database of a model for analysis
purposes or to transfer its CAM database to shop floor for production.
• This module also serves the purpose of translating databases between CAD/CAM systems
using graphics standards such as IGES, STEP.
Introduction to CAD/CAM/CAE (continued)
Modeling
• A geometric model is defined as the complete representation of an object that includes both its
graphical and nongraphical information.
• Objects can be classified into three types from a geometric construction point of view: two and half
dimensional, three dimensional or a combination of both.
•As Fig. shows, two and a half dimensional objects
are classified to have uniform cross sections and
thicknesses in directions perpendicular to the planes
of the cross sections.
• The construction of a true three dimensional object requires the coordinate input of key points
and then connecting them with proper types of entities.
Parametric representation of Synthetic Curves
• Analytic curves are usually not sufficient to meet geometric design requirements of
mechanical parts.
• Products such as car bodies, ship hulls, airplane fuselage and wings, propeller blades, shoe
insoles and bottles are a few examples that require free form or synthetic curves and
surfaces.
• The need for synthetic curves in design arises on two occasions: when a curve is
represented by a collection of measured data points and when a existing curve must change
to meet new design requirements.
• In the latter case, the designer would need a curve representation that is directly related to
the data points and is flexible enough to bend, twist, or change the curve shape by changing
one or more data points.
• Data points are usually called control points and the curve itself is called an interpolant if it
passes through all the data points.
Parametric representation of Synthetic Curves (continued)
• Mathematically synthetic curves represent a curve-fitting problem to construct a smooth curve
that passes through given data points. Therefore, polynomials are the typical forms of these
curves.
• Various continuity requirements can be specified at the data points to various degrees of
smoothness of the resulting curve.
• The order of continuity becomes important when a complex curve is modeled by several
curve segments pieced together end to end.
• First (C1) – and the second (C2) – order continuities imply slope and curvature continuous
curves respectively.
• For example, curve segments that require positions of control points and / or tangent vectors
at these points are easier to deal with and gather data for than those that might require
curvature information.
• Also the designer may prefer to control the shape of the curve locally instead of globally by
the changing the control point(s).
• If changing a control point results in changing the curve locally in the vicinity of that point,
local control of the curve is achieved; otherwise global control results.
Parametric representation of Synthetic Curves (continued)
• Major CAD/CAM systems provide three types of synthetic curves: Hermite cubic spline,
Bezier and B-spline curves.
• The cubic spline curve passes through the data points and therefore is an interpolant.
• Bezier and B-spline curves in general approximate the data points, that is, they do not pass
through them.
• Both the cubic spline and Bezier curves have a first order continuity and the B-spline has a
second order continuity.
Parametric representation of Synthetic Curves (continued)
Hermite cubic splines
• Parametric spline curves are defined as piecewise polynomial curves with a certain order of
continuity.
• Parametric cubic splines are used to interpolate to given data, not to design free form curves
as Bezier and B-spline curves.
• The Hermite form of cubic spline is determined by defining positions and tangent vectors at
the data points.
• The most commonly used spline curve is a three dimensional planar curve.
• For the planar curve, the XY plane of the current WCS is typically used to define the plane of
the data points and consequently the plane of the curve.
• The WCS then serves as the local coordinate system, of the spline.
Parametric representation of Synthetic Curves (continued)
Hermite cubic splines (continued)
• The parametric cubic spline (or cubic spline) connects two data (end) points and utilizes a
cubic equation.
• Therefore four conditions are required to determine the coefficients of the equation.
• When these are the positions of the two end points and the two tangent vectors at the points,
a Hermite cubic spline results.
• Thus the Hermite cubic spline is considered as one form of the general parametric cubic
spline.
where u is the parameter and Ci are the polynomial (also called algebraic) coefficients.
Parametric representation of Synthetic Curves (continued)
Hermite cubic splines (continued)
• The tangent vector to the curve at any point is given by differentiating the equation
w.r.t. u to give
• The first two functions blend P0 and P1 and the second two blend P0´ and P1´ to produce
the left-hand side in each equation.
where [MH] is the Hermite matrix and V is the geometry (or boundary conditions) vector.
• The above equation describes the cubic spline curve in terms of its two end points and their
tangent vectors.
• The equation shows that the curve passes through the end points (u=0 and 1).
• It further shows that the curve’s shape can be controlled by changing its end points or its
tangent vectors.
• If two end points P0 and P1 are fixed in space, the designer can control the shape of the
spline by changing either their magnitudes or the directions of the tangent vectors P0´ and P1´
• This equation can be used to plot a spline.Points can be generated on the spline for different
values of u between 0 and 1. These points are then transformed to the MCS for display or
plotting purposes.
Parametric representation of Synthetic Curves (continued)
Hermite cubic splines (continued)
• It can be generated for any two adjacent spline segments of a spline curve that are to fit a
given number of data points.
• This introduces the problem of blending or joining cubic spline segments which can be stated
as follows.
• Given a set of points P0, P1, …. Pn-1 and the two end tangent vectors P0´ and Pn-1´ connect
the points with a cubic spline curve.
• The spline curve is created as a blend of spline segments connecting the set of points
starting from P0 and ending at Pn-1.
• Tangent vectors at the intermediate points P1 through Pn-2 are needed to compute these
segments.
Parametric representation of Synthetic Curves (continued)
Hermite cubic splines (continued)
• Thus the geometric information of a cubic spline database consists of the set of the data
points and the two end tangent vectors.
• The major differences between Bezier curve and the cubic spline curve are:
– The shape of Bezier curve is controlled by its defining points only. First derivatives are not used in the curve
development as in case of cubic spline. This allows the designer a much better feel for the relationship
between input points and output curve.
– The order or degree of Bezier curve is variable and is related to the number of points defining it; n+1 points
define nth degree curve which permits higher order continuity. This is not the case for cubic splines where the
degree is always cubic for a spline segment.
– The Bezier curve is smoother than the cubic spline because it has higher order derivatives.
Parametric representation of Synthetic Curves (continued)
Bezier curves (continued)
• These points are called data or control points. They form the vertices of what is called the
control or Bezier characteristic polygon which uniquely defines the curve shape as shown.
• Only the first and last control points or vertices of the polygon actually lie on the curve.
• The other vertices define the order, derivatives and shape of the curve.
• The curve is always tangent to the first and last polygon segment.
• Mathematically, for n+1 control points, the Bezier curve is defined by the following polynomial
of degree n:
• The Bernstein polynomial serves as the blending or basis function for the Bezier curve and is
given by
• The characteristics of the Bezier curve are based on the properties of the Bernstein
polynomials and can be summarized as follows:
– The curve interpolates the first and last control points: that is, it passes through P0 and Pn if we
substitute u = 0 and 1 in the above equation.
– The curve is tangent to the first and last segments of the characteristic polygon. The rth
derivatives at the starting and ending points are given by respectively:
Parametric representation of Synthetic Curves (continued)
Bezier curves (continued)
where (P1 – P0) and (Pn – Pn-1) define the first and last segments of the curve polygon.
or in general, the rth derivative at an end point is determined by its rth neighboring vertices.
– The curve is symmetric with respect to u and (1-u). This means that the sequence of control
points defining the curve can be reversed without changing the curve shape i.e. reversing the
direction of parameterization does not change the curve shape. This can be achieved by
substituting 1-u = v in the equation and noticing that C(n, i) = C (n, n – i). This is a result of the
fact that Bi,n and Bn-i,n(u) are symmetric if they are plotted as functions of u.
Parametric representation of Synthetic Curves (continued)
Bezier curves (continued)
– The interpolation polynomial Bi,n(u) has a maximum value of C(n,i) (i/n)i (1-i/n)n-i occuring at
u=i/n which can be obtained from the equation d(Bi,n)/du = 0. This implies that each control
point is most influential on the curve shape at u = i/n. For example, for a cubic Bezier curve, P0 ,
P1, P2 and P3 are most influential when u = 0, 1/3, 2/3 and 1 respectively. Therefore, each
control point is weighed by its blending function for each u value.
– The curve shape can be modified by either changing one or more vertices of its polygon or by
keeping the polygon fixed and specifying multiple coincident points at a vertex, as shown in Fig.
– For any valid value of u, the sum of Bi,n functions associated with the control point is always
equal to unity for any degree of Bezier curve.
Parametric representation of Synthetic Curves (continued)
Bezier curves (continued)
• Thus far, only one Bezier curve segment is considered.
• In practical applications, the need may arise to deal with composite curves where various curve
segments are blended or joined together.
• In these applications maintaining continuity of various orders between the segments might be desired.
• Fig. shows two curve segments defined by two sets of points P1, P2, P3, P4 and P4, P5, P6, P7 , P8.
• To achieve a zero-order (C0) continuity, it is sufficient to make one of the end control points of the
segments common e.g. P4 in Fig(a).
Parametric representation of Synthetic Curves (continued)
Bezier curves (continued)
• To achieve a first order (C1) continuity, the end slope of one segment must be equal to the starting
slope of the next segment, i.e. the corresponding tangent vectors are related to each other by a
constant.
• This condition requires that the last segment of the first polygon and the first segment of the second
polygon form a straight line.
• With regards to Fig(b), the three points P3, P4 and P5 must be collinear.
• A curve is said to have the convex hull property if it lies entirely within the convex hull defined by the
polygon vertices.
• In a plane, the convex hull is a closed polygon and in three dimensions it is a polyhedron.
• The shaded area shown in Fig. defines the convex hull of a Bezier curve.
• If the polygon defining a curve segment degenerates to a straight line, the resulting segment must be
linear.
• Thus a Bezier curve may have locally linear segments embedded in it, which is a useful design feature.
• Also the size of the convex hull is an upper bound on the size of the curve itself; i.e. the curve always
lies inside its convex hull. This a useful property for graphics functions such as displaying or clipping the
curve.
• For example, instead of testing the curve itself for clipping, the convex hull is tested first and only if it
intersects the display window boundaries should the curve itself be examined.
• A third consequence of the convex hull property is that the curve never oscillates wildly away from its
defining control points because the curve is guaranteed to lie within its convex hull.
Parametric representation of Synthetic Curves (continued)
Bezier curves (continued)
• The database of a Bezier curve includes the coordinates of the control points defining its polygon
stored in the same order as input by the user.
• Other information whuich may obviously be stored include layer colour, name, font and line width of the
curve.
• While the Bezier curve seems to be superior to a cubic spline curve, it still has some disadvantages.
• First the curve does not pass through the control points which may be inconvenient to some designers.
• Second, the curve lacks local control. It only has the global control nature.
• If one control point is changed, the whole curve changes. Therefore, the designer cannot selectively
change parts of the curve.
Parametric representation of Synthetic Curves (continued)
B-spline curves
• B-spline curves provide yet another effective method, besides that of Bezier curve, of generating curves
by polygons.
• In addition to sharing most of the characteristics of Bezier curves they enjoy some other unique
advanrages.
• They provide local control of the curve shape as opposed to global control by using a special set of
blending functions that provide local influence.
• They also provide the ability to add control points without increasing the degree of the curve.
• In contrast to Bezier curves, the theory of B-spline curves separates the degree of the resulting curve
from the number of the given control points.
• While four control points can always produce a cubic Bezier curve, they can generate a linear,
quadratic or cubic B-spline curve.
• This flexibility in the degree of the resulting curve is achieved by choosing the basis (blending) functions
of B-spline curves with an additional degree of freedom that does not exist in Bernstein polynomials.
• These basis functions are the B-splines – thus the name B-spline curves.
Parametric representation of Synthetic Curves (continued)
B-spline curves
• B-spline curves provide yet another effective method, besides that of Bezier curve, of generating curves
by polygons.
• In addition to sharing most of the characteristics of Bezier curves they enjoy some other unique
advantages.
• They provide local control of the curve shape as opposed to global control by using a special set of
blending functions that provide local influence.
• They also provide the ability to add control points without increasing the degree of the curve.
• In contrast to Bezier curves, the theory of B-spline curves separates the degree of the resulting curve
from the number of the given control points.
• While four control points can always produce a cubic Bezier curve, they can generate a linear,
quadratic or cubic B-spline curve.
• This flexibility in the degree of the resulting curve is achieved by choosing the basis (blending) functions
of B-spline curves with an additional degree of freedom that does not exist in Bernstein polynomials.
• These basis functions are the B-splines – thus the name B-spline curves.
Parametric representation of Synthetic Curves (continued)
B-spline curves (continued)
• Similar to Bezier curves, the B-spline curve defined by n+1 control points Pi is given by
• The control points (sometimes called deBoor points) form the vertices of the control or deBoor polygon.
• There are two major differences with the Bezier curve equation.
• First the parameter k controls the degree (k-1) of the resulting B-spline curve and is usually
independent of the number of control points except as restricted as shown below.
• Second the maximum limit of the parameter u is no longer unity as it was so chosen arbitrarily for
Bezier curves.
• The first property ensures that the relationship between the curve and its defining control points is
invariant under affine transformations.
• The second property guarantees that the curve segment lies completely within the convex hull of Pi.
• The third property indicates that each segment of a B-spline curve is influenced by only k control points
or each control point affects only k curve segments.
• It is useful to notice that the Bernstein polynomial Bi,n(u) has the same first two properties mentioned
above.
Parametric representation of Synthetic Curves (continued)
B-spline curves (continued)
• The B-spline function also has the property of recursion which is defined as
• Because Ni,1 is a constant for k = 1, a general value of k produces a polynomial in u of degree (k-1)
(see above equation) and therefore a curve of order k and degree (k-1).
• The values of the ui depend on whether the B-spline curve is an open (nonperiodic) or closed (periodic)
curve.
Parametric representation of Synthetic Curves (continued)
B-spline curves (continued)
• The above relation shows that (n+ k+`1) knots are needed to create a (k-1) degree curve defined by
(n+1) control points.
• These knots are evenly spaced over the range of u with unit separation (∆u=1) between noncoincident
knots.
• While the degree of the resulting B-spline curve is controlled by k, the range of the parameter u as
given by the above equation implies that there is a limit on k that is determined by the number of the
given control points.
• This limit is found by requiring the upper bound in the above equation to be greater than the lower
bound for the u range to be valid i.e.
n–k+2>0
• This relation requires that a minimum of two, three and four control points are required to define a
linear, quadratic and cubic B-spline curve respectively.
• The characteristics of B-spline curves that are useful in design can be summarized as follows:
– The local control of the curve can be achieved by changing the position of a control point, using multiple
control points by placing several points at the same location, or by choosing a different degree (k-1).
Parametric representation of Synthetic Curves (continued)
B-spline curves (continued)
– As mentioned the local control for a cubic B-spline curve by moving P3 to P3* and P3**. The four curve
segments surrounding P2 change only.
– A nonperiodic B-spline curve passes through the first and last control points P0 and Pn+1 and is tangent to the
first (P1-P0) and last (Pn+1 – Pn) segments of the control polygon, similar to the Bezier curve, as shown in Fig.
Parametric representation of Synthetic Curves (continued)
B-spline curves (continued)
– In general, the less the degree, the closer the curve gets to the control points, as shown in Fig.
– When k=1, a zero degree curve results. The curve then becomes the control points themselves.
– A second degree curve is always tangent to the midpoints of all the internal polygon segments (see Fig.). This
is not the case for other degrees.
Parametric representation of Synthetic Curves (continued)
B-spline curves (continued)
– If k equals the number of control points (n+1), then the resulting B-spline curve becomes a Bezier curve (see
Fig.). In this case, the range of u becomes zero to one as expected.
Parametric representation of Synthetic Curves (continued)
B-spline curves (continued)
– Multiple control points induce regions of high curvature of a B-spline curve. This is useful when creating
sharp corners in the curve (see Fig.). This effect is equivalent to saying that the curve is pulled more towards a
control point by increasing its multiplicity.
– Increasing the degree of the curve makes it more difficult to control and to calculate accurately.
• Thus far, open or nonperiodic B-spline curves have been discussed. The same theory can be extended
to cover closed or periodic B-spline curves.
• The only difference between open and closed curves is in the choice of the knots and the basis
functions.
• The following equations determine the knots and the spacing between them for open curves.
• Closed curves utilize periodic B-spline functions as their basis with knots at the integers.
Parametric representation of Synthetic Curves (continued)
B-spline curves (continued)
• Closed curves utilize periodic B-spline functions as their
basis with knots at the integers.
• Quadratic and cubic spline curves have quadratic and cubic basis functions with intervals of (0,3) and
(0,4) and knot vectors of [0 1 2 3] and [0 1 2 3 4] respectively.
• The closed B-spline curve of degree (k-1) or order k defined by (n+1) control points is given by the
following equation as the open curve.
• The mod function enables the periodic (cyclic) translation [mod(n+1)] of the canonical basis function
N0,k . N0,k is the same as for open curves and can be calculated using the equations
• Like open curves, closed B-spline curves enjoy the properties of partition of unity, positivity, local
support and continuity.
• They also share the same characteristics of the open curves except that they do not pass through the
first and last control points and are not tangent to the first and last segments of the control polygon.
• In representing closed curves, closed polygons are used where the first and last control points are
connected by a polygon segment.
Parametric representation of Synthetic Curves (continued)
B-spline curves (continued)
• It should be noticed that a closed B-spline curve cannot be generated by simply using an open curve
with the first and last control points being the same (coincident). The resulting curve is only C0
continuous as shown in Fig.
• Only if the first and last segments of the polygon are collinear does a C1 continuous curve result as in a
Bezier curve.
• So the database of a B-spline curve includes the type of curve (open or closed), its order k or degree
(k-1) and the coordinates of the control points defining its polygon stored in the same order as input by
the user. Other information such as layer, colour, name, font and line width of the curve may be stored.
Mathematical representation of surfaces
• Shape design and representation of complex objects such as car body, ship hull or airplane bodies as
castings cannot be achieved utilizing wireframe modeling.
• In such cases, surface modeling must be utilized to describe objects precisely and accurately.
• Due to richness of information of surface models, they are used in various applications such as
calculating mass properties, checking for interference between mating parts, generating cross
sectioned views, generating finite element meshes and generating NC tool paths for continuous path
machining.
• Creating surfaces in general has some quantitative data such as a set of points and tangents and some
qualitative data such as intuition of the desired shape and smoothness.
• Surface formulation must provide the designer with the flexibility to use both types of data in a simple
form that is suitable for interactive use.
• Available surface techniques can interpolate or approximate the given hard data.
• Bezier surface is a form of approximation and the B-spline surface is a form of interpolation.
Mathematical representation of surfaces (continued)
• The choice of the surface form depends upon the application and on the manufacturing methods
needed to produce the surface.
• For example, the surface form used to model a car body may not be adequate to model a airplane
body.
• It is usually preferred to choose a surface that can be produced using three axis machining instead of
five axis machining to reduce the manufacturing cost.
• However, all surface forms must be easy to differentiate to determine surface tangents, normals and
curvatures. Polynomial functions are an obvious choice.
• Polynomials of higher order are not appropriate froma surface design point of view due to their large
number of coefficients which may make it difficult to control the resulting surface. For most practical
applications, cubic polynomials are sufficient.
Mathematical representation of surfaces (continued)
• The most obvious and inefficient way to describe a surface is to list sufficient points on it.
• This approach is cumbersome and cannot be used to derive any surface properties.
• Instead it is common to employ some form of interpolation scheme and use fewer points.
• It is even more convenient if analytic forms of surfaces exist all the time.
• When analytic forms are not available, surfaces are defined in patches that are connected together
similarly to curves which can be defined in a piecewise manner.
• Surface creation on existing CAD/CAM systems usually requires wireframe entities as a start.
• A system might request two boundary entities (rails of the surface) to create ruled surface or might
require one entity (generator curve) to create a surface of revolution.
• All analytic and synthetic wireframe entities that we have discussed earlier can be used to generate
surfaces.
• In order to visualize surfaces on graphics display, a mesh m X n in size, is usually displayed. The mesh
size is controllable by the user.
Mathematical representation of surfaces (continued)
Surface model
• A surface model of an object is a more complete and less ambiguous representation than its wireframe
model and is also richer in its associated geometric contents, which makes it more suitable for design
and manufacturing engineering applications.
• A surface model can be used, for example, to drive the cutter of a machine tool while a wireframe
model cannot.
• Surface modeling takes the modeling of an object one step further than wireframe models by providing
information on the surfaces connecting the object edges.
• Typically a surface model consists of wireframe entities that form the basis to create surface entities.
• Despite their similar look, there is a fundamental difference between surface and solid models. Surface
models define only the geometry of their corresponding objects. They store no information regarding
the topology of these objects.
• For example, if there are two surface entities that share a wireframe entity (edge), niether the surfaces
nor the entity store such information.
Mathematical representation of surfaces (continued)
Surface model (continued)
• There is also a fundamental difference between creating surface and solid models.
• To create a surface model, the user begins by constructing wireframe entities and then connecting
them appropriately with the proper surface entities.
• For solids based on boundary representation, either faces, edges and vertices are created or solid
primitives are input which are converted internally by the software to faces, edges and vertices.
• They provide hidden line and surface algorithms to add realism to the displayed geometry.
• From an application point of view, surface models can be utilized in volume and mass property
calculations, finite element modeling, NC path generation, cross-sectioning, and interference
detections.
• Surface models have a few disadvantages. Surface models are generally more complex and thus
require more terminal time and CPU time and computer storage to create than wireframe models.
Mathematical representation of surfaces (continued)
Surface entities
• Similar to wireframe entities, CAD/CAM systems provide designers with both analytic and synthetic
surface entities.
• Analytic surface entities include plane surface, ruled surface, surface of revolution and tabulated
cylinder.
• Synthetic entities include the bicubic Hermite spline surface, B-spline surface, rectangular and
triangular Bezier patches, rectangular and triangular Coons patches and Gordon surface.
Plane surface
Surface of revolution
Bezier surface
•This is a surface that approximates given input data.
•Similarly to the Bezier curve, it does not pass through all given data
points.
•It is a general surface like the Bezier surface but with the
advantage of permitting local control of the surface.
Coons Patch
Fillet surface
•For example, to create a hollow cylinde, the outer or inner cylinder can be created using a cylinder command and
the ther one can be created by an offset command.
•Offset surface command becomes very efficient to use if the original surface is a composite one.
• The surface description must successfully drive a tool to generate its path.
• There are several methods to fit nonparametric surfaces to a given set of data points. They fall into 2
categories.
• The nonparametric surface representation suffers from all the disadvantages, when compared with parametric
surface representation, that nonparametric curves suffer from when compared with parametric curves.
• However, nonparametric curves do have some advantages when it comes to solving surface intersection
problems.
• The parametric representation of a surface means a continuous, vector valued function P(u,v) of two variables
or parameters, u and v, where the variables are allowed to range over some connected region of the uv plane
and, as they do so, P(u,v) assumes every position on the surface.
Mathematical representation of surfaces (continued)
Surface representation (continued)
• The function P(u,v) at certain u and v values is the
point on the surface at these values. The most
general way to describe the parametric equation
of a 3 dimensional curved surface in space is
• Fig. shows a 2 patch surface where the u and v values are [0,1].
Plane surface
• The equation assumes a plane of dimensions Lu and Lv that may be set to unity.
Mathematical representation of surfaces (continued)
Surface representation (continued)
Parametric representation of analytic surfaces
• The last case to be considered is for a plane that passes through a point P0 and is perpendicular to a given
direction .
• Fig. shows this case. The vector is normal to any vector in the plane.
Thus,
• For example, if a plane passes through the points P0 (0,0,0) and P1(2,0,0) and P2(0,0,2) as shown in Fig.,
the verification of the plane surface entities shows the entity is a plane passing through P0 (0,0,0) and has
a unit normal of (0,-1,0).
• In addition, the u and v axes are defined by the coordinates (1,0,0) and (0,0,1) respectively.
Mathematical representation of surfaces (continued)
Surface representation (continued)
Parametric representation of analytic surfaces
Ruled surface
• A ruled surface is generated by joining corresponding points on two space curves (rails) G(u) and Q(u) by
straight lines (also called rulings or generators), as shown in Fig.
• Generalizing for any ruling, the parametric equation of a ruled surface defined by two rails is
• Holding the u value constant in the above equation produces the rulings given by the last but one equation in
the v direction of the surface, while holding the v value constant yields curves in the u direction which are a
linear blend of the rails.
Mathematical representation of surfaces (continued)
Surface representation (continued)
Parametric representation of analytic surfaces
• Therefore, the closer the value of v to zero, the greater the influence of G(u) and less the influence of Q(u)
on the v=constant curve.
• Similarly, the influence of Q(u) on the ruled surface geometry increases when the v value approaches
unity.
• The ruled surface can allow curvature only in the u direction of the surface provided that the rails have
curvatures.
• The surface curvature in the v direction (along the rulings) is zero and thus a ruled surface cannot be used
to model surface patches that have curvatures in two directions.
Mathematical representation of surfaces (continued)
Surface representation (continued)
Parametric representation of analytic surfaces
Surface of revolution
• The rotation of a planar curve an angle ν about an axis of
rotation creates a circle (if ν = 360) for each point on the
curve whose center lies on the axis of rotation and whose
radius rz(u) is variable, as shown in Fig.
• The planar curve and the circles are called the profile
and the parallels respectively while the various
positions of the profile around the axis are called
meridians.
• The planar curve and the axis of rotation form the plane
of zero angle i.e. ν = 0.
Mathematical representation of surfaces (continued)
Surface representation (continued)
Parametric representation of analytic surfaces
• If we choose zL(u) = u for each point on the profile, the above equation gives the local coodinates (xL, yL, zL) of
a point P(u,v) as [rZ(u) cos ν, rZ(u) sin ν , u].
Mathematical representation of surfaces (continued)
Surface representation (continued)
Parametric representation of analytic surfaces
• The database of a surface of revolution must include its profile, axis of rotation and the angle of rotation as
starting and ending angles.
• Whenever the user requests the display of the surface with a mesh size of m X n, the u range is divided
equally into (m-1) divisions and m values of u are obtained.
• Similarly, the ν range is divided equally into n values and the above equation is used to generate points on
the surface.
Mathematical representation of surfaces (continued)
Surface representation (continued)
Parametric representation of analytic surfaces
Tabulated cylinder
• A tabulated cylinder has been defined as a surface that
results from translating a space planar curve along a given
direction.
• From a user point of view, G(u) is the desired curve the user
digitizes to form t he cylinder, v is the cylinder length and
is the cylinder axis. The representation of G(u) is already
available in the database at the time of creating it.
• The user inputs the cylinder axis as two points that are used
to determine , which is the unit vector along the axis.
• Synthetic surfaces provide the designers with better surface design tools than analytic surfaces.
• The design of these surfaces is usually based on aerodynamic and fluid flow simulations, often incorporating
thermal and mechanical stress deformation.
• These simulations yield ordered sets of discrete streamline points which must be then connected accurately
by surfaces.
• Any small deviation in these aerodynamic surfaces can significantly degrade performance.
• Another example is creation of blending surfaces typically encountered in designing dies for injection
moulding of plastic products.
Mathematical representation of surfaces (continued)
Surface representation (continued)
Parametric representation of synthetic surfaces (continued)
Hermite Bicubic Surface
• The parametric bicubic surface patch connects four corner points and utilizes a bicubic equation.
• Therefore 16 vector conditions (or 48 scaler conditions) are required to find the coefficients of the equation.
• When these coefficients are the four corner data points, the eight tangent vectors at the corner points (two at
each point in the u and v directions) and the four twist vectors at the corner points, a Hermite bicubic surface
patch results.
• The matrix B is partitioned to indicate the grouping of the similar boundary conditions.
where [P], [Pu], [Pv] and [Puv] are the submatrices of the corner points, corner u-tangent vectors, corner v-
tangent vectors and the corner twist vectors respectively.
• The tangent and twist vectors at any point on the surface are given by
Mathematical representation of surfaces (continued)
Surface representation (continued)
Parametric representation of synthetic surfaces (continued)
Hermite Bicubic Surface (continued)
• Similar to the cubic spline, the bicubic form permits C1 continuity from one patch to the next.
• The necessary two conditions are to have the same curves (C0 continuity) and the same direction of the
tangent vectors (C1 continuity) across the common edge between the two patches.
• The magnitudes of the tangent vectors does not have to be the same.
Mathematical representation of surfaces (continued)
Surface representation (continued)
Parametric representation of synthetic surfaces (continued)
Hermite Bicubic Surface (continued)
• Before writing the continuity conditions in terms of the [B] matrix, let us expand the above equations to see
what influences the position and tangent vectors.
Mathematical representation of surfaces (continued)
Surface representation (continued)
Parametric representation of synthetic surfaces (continued)
Hermite Bicubic Surface (continued)
Mathematical representation of surfaces (continued)
Surface representation (continued)
Parametric representation of synthetic surfaces (continued)
Hermite Bicubic Surface (continued)
where K is a constant.
• The above equation can be interpreted as blending an infinite number of cubic spline segments on each patch
(each corresponding to a particular v value) with C1 continuity across the u edge.
Mathematical representation of surfaces (continued)
Surface representation (continued)
Parametric representation of synthetic surfaces (continued)
Hermite Bicubic Surface (continued)
• Using the equations
the equations
• The Fig. shows the constrained elements of each matrix only. Empty elements of each matrix are
unconstrained and can have arbitrary values.
• One can find similar matrices to join the two patches at the v=1 and v=0 edges.
Mathematical representation of surfaces (continued)
Surface representation (continued)
Parametric representation of synthetic surfaces (continued)
Hermite Bicubic Surface (continued)
• The Ferguson surface (also called the F-surface patch) is considered a bicubic surface patch with zero twist
vectors at the patch corners, as shown in this special surface is useful in design and machining applications.
• The patch can be used to fit a bicubic surface to an array of data points homomorphic to a m X n rectangular
grid.
• The control of the resulting surface is global and is not intuitively based on the input data.
• In addition, the requirement of tangent and twist vectors as input data does not fit very well the design
environment because the intuitive feeling for such data is usually not clear.
Mathematical representation of surfaces (continued)
Surface representation (continued)
Parametric representation of synthetic surfaces (continued)
Bezier surface
• The following equation can be written for any point on the Bezier surface patch.
• The surface interpolates the four corner control points if we substitute the (u,v) values of (0,0), (1,0), (0,1)
and (1,1) into the previous equation.
• The convex hull in this case is the polyhedron formed by connecting the furthest control points on the
control polyhedron.
• When expanding this equation, it should be noted that Pij X Pkl = 0 if i=k and j=1 and that Pij X Pkl = ― Pkl X Pij
• As with the Bezier curve, the degree of the Bezier surface is tied to the number of the control points.
• Surfaces requiring greater design flexibility need a larger control point array and would therefore have a high
polynomial degree.
• To achieve required design flexibility while keeping the surface degree manageable, large surfaces are
generally designed by piecing together small surface patches of lower degrees.
• This keeps the overall degree of the surface low but requires a special attention to ensure that appropriate
continuity is maintained across patch boundaries.
Mathematical representation of surfaces (continued)
Surface representation (continued)
Parametric representation of synthetic surfaces (continued)
Bezier surface (continued)
• A composite Bezier curve can have C0 (positional) and / or C1 (tangent) continuity.
• A positional continuity between, say, two patches requires that the common boundary curve between the two
patches must have a common boundary polygon between the two characteristic polyhedrons as shown in
Fig(a).
• For tangent continuity across the boundary, the segments attached to the common boundary polygon, of one
patch polyhedron must be collinear with the corresponding segments of the other patch polyhedron as shown
in Fig(b).
• This implies that the tangent planes of the patches at the common boundary curve are coincident.
Mathematical representation of surfaces (continued)
Surface representation (continued)
Parametric representation of synthetic surfaces (continued)
Bezier surface (continued)
• In design environment, the Bezier surface is superior to a bicubic surface in that it does not require tangent or
twist vectors to define the surface.
• Changing one or more control points affects the shape of the whole surface.
• Therefore, the user cannot selectively change the shape of the part of the surface.
Mathematical representation of surfaces (continued)
Surface representation (continued)
Parametric representation of synthetic surfaces (continued)
B-spline surface
• A B-spline surface patch defined by an (n+1) x (m+1) array of control points is given by extending the
following equation of B-spline curve in two dimensions to yield
• The knot vectors in both u and v directions are constant but not necessarily equal.
• B-spline surfaces have the same characteristic as B-spline curves. Their major advantage over Bezier curve
is the local control.
• Composite B-spline surfaces can be generated with C0 and C1 continuity in the same way as composite
Bezier surfaces.
Mathematical representation of surfaces (continued)
Surface representation (continued)
Parametric representation of synthetic surfaces (continued)
Blending surface
• The fillet surface shown in the Fig. is considered a special case of a blending
surface.
• Fig. shows a general blending surface. A bicubic surface can be
used to blend patch 1 and patch 2 with both C0 and C1 continuity.
• The corner points P1, P2, P3 and P4 of the blending surface and
their related tangent and twist vectors are readily available from
the two patches.Therefore, the [B] matrix of the blending surface
can be evaluated.
• A set of points and their related v-tangent vectors beginning with P1 and
ending with P2 can be generated along the v=1 edge of patch 1.
• Similarly a corresponding set can be generated along the v=0 edge of patch 2.
• Cubic spline curves can now be created between the two sets.
• Some CAD/CAM systems allow the users to connect a given set of curves with
a B-spline surface directly.
Mathematical representation of surfaces (continued)
Surface representation (continued)
Parametric representation of synthetic surfaces (continued)
Blending surface (continued)
• In the case of the fillet surface shown in Fig., a fillet radius is used to generate the surface.
• Hence the rectangular set of points to create the B-spline surface can be generated by creating fillets
between corresponding v=constant curves on both patches.
• Sculptured surfaces arise extensively in automotive die and mould making, aerospace, glass, cameras,
shoes and appliance and various other industries.
• A sculptured surface is defined as a collection or sum of interconnected and bounded parametric patches
together with blending and interpolation formulas.
• The analytic and synthetic patches described thus far can be used to create a sculptured surface.
• From a modeling viewpoint, a sculptured surface can be divided into the proper patches which can be
created to produce a C0 or C1 continuous surface.
• The two patch surfaces discussed throughout this discussion are considered sculptured surfaces.