Lectures Computer Aided Design

Slides:



Advertisements
Similar presentations
BREPS solids construction by surfaces of extrusion & revolution
Advertisements

Three-Dimensional Modeling (A Brief Introduction)
Lecture Notes #11 Curves and Surfaces II
Lecture 10 Curves and Surfaces I
© University of Wisconsin, CS559 Spring 2004
Jehee Lee Seoul National University
1 Curves and Surfaces. 2 Representation of Curves & Surfaces Polygon Meshes Parametric Cubic Curves Parametric Bi-Cubic Surfaces Quadric Surfaces Specialized.
MIT EECS 6.837, Durand and Cutler Curves & Surfaces.
MIT EECS 6.837, Durand and Cutler Curves & Surfaces.
1 Computer Graphics Chapter 7 3D Object Modeling.
CS447/ Realistic Rendering -- Solids Modeling -- Introduction to 2D and 3D Computer Graphics.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 9 3D Modeling.
Operators in CAD Systems
Surfaces Chiew-Lan Tai. Surfaces 2 Reading Required Hills Section Hearn & Baker, sections 8.11, 8.13 Recommended Sections 2.1.4, , 3D Computer.
Disediakan oleh Suriati bte Sadimon GMM, FSKSM, UTM 2004 SURFACE.
Modelling. Outline  Modelling methods  Editing models – adding detail  Polygonal models  Representing curves  Patched surfaces.
2003 by Jim X. Chen: Introduction to Modeling Jim X. Chen George Mason University.
1 Lecture 13 Modeling Curved Lines and Surfaces. 2 Types of Surfaces Ruled Surfaces B-Splines and Bezier Curves Surfaces of Revolution.
1. 2 The use of curved surfaces allows for a higher level of modeling, especially for the construction of highly realistic models. There are several approaches.
Geometric Modeling Surfaces Mortenson Chapter 6 and Angel Chapter 9.
Cubic Bezier and B-Spline Curves
IE433 CAD/CAM Computer Aided Design and Computer Aided Manufacturing Part-4 Computer Graphics- CAD Software Dr. Abdulrahman M. Al-Ahmari Industrial Engineering.
Bezier and Spline Curves and Surfaces Ed Angel Professor of Computer Science, Electrical and Computer Engineering, and Media Arts University of New Mexico.
ENDS 375 Foundations of Visualization Geometric Representation 10/5/04.
IE433 CAD/CAM Computer Aided Design and Computer Aided Manufacturing Part-4 Computer Graphics- CAD Software Industrial Engineering Program King Saud University.
Complex Model Construction Mortenson Chapter 11 Geometric Modeling
Bezier and Spline Curves and Surfaces CS4395: Computer Graphics 1 Mohan Sridharan Based on slides created by Edward Angel.
1 Representing Curves and Surfaces. 2 Introduction We need smooth curves and surfaces in many applications: –model real world objects –computer-aided.
09/16/02 Dinesh Manocha, COMP258 Surfaces Locally a 2D manifold: i.e. approximating a plane in the ngbd. of each point. A 2-parameter family of points.
Parts of Mortenson Chapter 6-9,
Curve Surfaces June 4, Examples of Curve Surfaces Spheres The body of a car Almost everything in nature.
3-D Modeling Concepts V part 2.
Modeling and representation 1 – comparative review and polygon mesh models 2.1 Introduction 2.2 Polygonal representation of three-dimensional objects 2.3.
Curve Modeling Bézier Curves
Computer Integrated Manufacturing CIM
Bresenham’s Algorithm. Line Drawing Reference: Edward Angel’s book: –6 th Ed. Sections 6.8 and 6.9 Assuming: –Clipped (to fall within the window) –2D.
11/19/02 (c) 2002, University of Wisconsin, CS 559 Last Time Many, many modeling techniques –Polygon meshes –Parametric instancing –Hierarchical modeling.
A D V A N C E D C O M P U T E R G R A P H I C S CMSC 635 January 15, 2013 Spline curves 1/23 Curves and Surfaces.
Graphics Graphics Korea University cgvr.korea.ac.kr Creating Virtual World I 김 창 헌 Department of Computer Science Korea University
V. Space Curves Types of curves Explicit Implicit Parametric.
Disediakan oleh Suriati bte Sadimon GMM, FSKSM, UTM, 2004 SOLID MODELLING.
PREPARED BY: SAMERA BINTI SAMSUDDIN SAH SEM /2012 (NOV 2011)
University of Texas at Austin CS384G - Computer Graphics Fall 2008 Don Fussell Parametric surfaces.
Curves and Surfaces Chapter 10. CS 480/680 2Chapter 9 -- Hierarchical Models Introduction: Introduction: Until now we have worked with flat entities such.
Visual Computing Geometric Modelling 1 INFO410 & INFO350 S2 2015
3D Object Representations
GPH 338 Computer Animation Survey
Geometric Modelling 2 INFO410 & INFO350 S Jack Pinches
CS 376 Introduction to Computer Graphics 04 / 25 / 2007 Instructor: Michael Eckmann.
Representation of Curves & Surfaces Prof. Lizhuang Ma Shanghai Jiao Tong University.
Curves: ch 4 of McConnell General problem with constructing curves: how to create curves that are “smooth” CAD problem Curves could be composed of segments.
Computing & Information Sciences Kansas State University Lecture 31 of 42CIS 636/736: (Introduction to) Computer Graphics Lecture 32 of 42 Wednesday, 11.
Geometrically Bounded Wireframe AIC (Part 510) Grouping of curves relevant for 3-dimensional wireframe modeling without topological constructs Elementary.
11/26/02(C) University of Wisconsin Last Time BSplines.
3D Object Representations 2011, Fall. Introduction What is CG?  Imaging : Representing 2D images  Modeling : Representing 3D objects  Rendering : Constructing.
Chapter 8 Engineering Geometry
Splines Sang Il Park Sejong University. Particle Motion A curve in 3-dimensional space World coordinates.
CS 318 Intro to Computer Graphics John C. Hart
Computing & Information Sciences Kansas State University Lecture 30 of 42CIS 636/736: (Introduction to) Computer Graphics Lecture 30 of 42 Wednesday, 09.
1 대상물체의 형상화를 위해 사용되는 기술  인공물체 : 기하학적 Primitive ( 선, 면, 구, 육면체 ) 등을 이 용하여 형상화. 입력물 : 형상화 물체의 3 차원 좌표값 출력물 : 선구조형상 (Wire framed objects) Technique:Geometric.
Curves University of British Columbia CPSC 314 Computer Graphics Jan-Apr 2013 Tamara Munzner.
Solid Modeling Dr. Scott Schaefer.
Object Modeling: Curves and Surfaces CEng 477 Introduction to Computer Graphics.
3D Object Representations 2009, Fall. Introduction What is CG?  Imaging : Representing 2D images  Modeling : Representing 3D objects  Rendering : Constructing.
8. Surfaces and Surface Modeling Assoc.Prof.Dr. Ahmet Zafer Şenalp Mechanical Engineering Department.
© University of Wisconsin, CS559 Spring 2004
3D Object Representations
Computer Aided Engineering Design
3-D Modeling Concepts V part B.
6. Surfaces and Surface Modeling
Presentation transcript:

Lectures 1234567 Computer Aided Design Hikmet Kocabaş, Prof., PhD. Istanbul Technical University

Computer Aided Design Prof. Dr. Hikmet Kocabas I.T.U. Faculty of Mechanical Engineering office no: 428 office phone: 0212-2931300 / 2468 e-mail: kocabash@itu.edu.tr web site: www.akademi.itu.edu.tr/kocabash Interests: Mechanical Design Finite Element Analysis Mechanism Simulation CAD – CAE – CAM

Intro. to Computer Graphic Systems Textbooks: Computer Aided Engineering Design, Anupam Saxena, Birendra Sahay, Springer, 2005 Engineering Design A Systematic Approach, G. Pahl, W. Beitz, Springer-Verlag, 2007

Lectures 1234567 Lecture 1 Intro. to Computer Graphic Systems Lecture 2 Geometry Lecture 3 Vector Algebra Lecture 4 Transformations Lecture 5 Curves Lecture 6 Surface Modeling Lecture 7 Solid Modeling

Computer Aided Design

Geometry solids A typical solid model is defined by solids, surfaces, curves, and points. Solids are bounded by surfaces. They represent solid objects. Surfaces are bounded by lines. They represent surfaces of solid objects, or planar or shell objects. Curves are bounded by points. They represent edges of objects. Points are locations in 3-D space. They represent vertices of objects. lines, curves, points surfaces

geometric elements

Geometry There is a built-in hierarchy among solid model entities. Points are the foundation entities. Curves are built from the points, Surfaces from curves, and Solids from surfaces. Points Curves Surfaces Solids Points Curves Surfaces Solids I’ll just change this line Curves Points Surfaces Solids OOPs!

Line (Combinations of Points) Let P1 and P2 be points in space. if 0 ≤ t ≤ 1 then P is somewhere on the line segment joining P1 and P2 . We may utilize the following notation P = P(t) = (1 - t) P1+ t P2 α2= t α1= 1- t 1 P1 P2 Linear interpolation P1 P2 P1+ t (P2 - P1) t (P2 - P1) P

Line (Combinations of Points) We can then define a combination of two points P1 and P2 to be P = α1 P1+ α2 P2 where α1 + α2 = 1 derive the transformation by setting α2 = t α2= t α1= 1- t 1 P1 P2 Linear interpolation P1 P2 P1+ t (P2 - P1) t (P2 - P1) P

Linear Surface We can generalize the line to define a combination of an arbitrary number of points. P = α1 P1+ α2 P2 + α3 P3 where α1 + α2 + α3 = 1 0 ≤ α1 , α2 , α3 ≤ 1 Illustration shows the point P generated when α1 = α2 = 1/4 α3 = 1/2 P2 P1 α3 (P3 - P1) P3 P α2 (P2 - P1)

Lecture 5 Curves Both Bézier curves and B-splines are polynomial parametric curves. Polynomial parametric forms can not represent some simple curves such as circles. Continuity

Curves Bézier curves and B-splines are generalized to rational Bézier curves and Non-Uniform Rational B-splines, or NURBS for short. Rational Bézier curves are more powerful than Bézier curves since the former now can represent circles and ellipses. Similarly, NURBS are more powerful than B-splines. The relationship among these NURBS B-spline Bezier Rational Bezier

de Casteljau’s Algorithm Curve Subdivision

Tangent, Normal, Curvature of a Curve

Degree Elevation of a Curve

Rational Bezier curve Effect of the weights of the control points of a Rational Bezier curve

Bezier curves n=3 C(n,i) = n! / ( i! (n-i)!) B(i,n,u) = C(n,i) ui (1-u)n-i P(u) = ∑ B(i,n,u) Pi i=0 n

Bezier curves The order of the degree of curve is variable and related to the number of points defining it. n+1 points define an n'th degree curve which permit higher-order continuity. Control points form the vertices of what is called characteristic polygon. Curve lies entirely within the convex hull defined by the polygon vertices. Only the first and the last control points or vertices of the polygon actually lie on the curve. The other vertices define the order, derivatives, and the shape of the curve. The curve is also always tangent to the first and last polygon segments. In addition, the curve shape tends to follow the polygon shape.

B-spline curves Piecewise Polynomials Approximating Splines Spline eq. P(u) = ∑ N(i,k,u) Pi i=0 n

B−spline Curves a B−spline curve is the union of a number of Bezier curves joining together with C − continuity.

B-Spline Surfaces

B-spline curves Since a NURBS curve is rational, circles, ellipses and N0,0 N1,0 N2,0 N3,0 N4,0 N5,0 N6,0 N7,0 N0,1 N1,1 N2,1 N3,1 N4,1 N5,1 N6,1 N0,2 N1,2 N2,2 N3,2 N4,2 N5,2 N0,3 N1,3 N2,3 N3,3 N4,3 N0,4 N1,4 N2,4 N3,4 B-spline curves Since a NURBS curve is rational, circles, ellipses and hyperbolas can be represented NURBS

De Boor’s Algorithm De Boor’s algorithm is implemented by repeated knot insertion.

Shape Editing The local modification property guarantees that only part of the curve will be affected when a control point changes its position. In fact, position change is parallel to the Movement of the control point.

Weight Change Increasing weight pulls the curve toward the selected control point. Decreasing weight pushes the curve away from the

Surface Modeling Control points Bezier, B−spline and NURBS surface is a tensor product surface and is the product of two curves. Surfaces are defined by a grid and have two sets of parameters, two sets of knots and so on.

Surface Modeling Surface by Recursive Subdivision Algorithm

Surface Modeling Surface subdivision

Surface Modeling Surface Reconstruction by Recursive Subdivision Curve-based design and Surface deformation

Surface Modeling Finite Element Simulation

Interpolation and Approximation

Surface Modeling Extension of curve modeling Parametric representation: p = p(u,v) which is equivalent to x = x(u,v) y = y(u,v) z = z(u,v)

Surface Modeling Defining a surface with hole

Surface Patch Isoparametric curves can be used for tool path generation.

Linearly Blended Coons Patch Surface is defined by linearly interpolating between the boundary curves Simple, but doesn’t allow adjacent patches to be joined smoothly P1 T(v) R(v) Q(u) S(u)

Linearly Blended Coons Patch T(v) R(v) Q(u) S(u) Linearly Blended Coons Patch P1(u,v) P2(u,v) P3(u,v) P(u,v) = + -

Bicubic Patch Extension of cubic curve 16 unknown coefficients – 16 boundary conditions Tangents and “twists” at corners of patch can be used Like Lagrange and Hermite curves, difficult to work with

Bezier Surfaces Bezier curves can be extended to surfaces Same problems as for Bezier curves: no local modification possible smooth transition between adjacent patches difficult to achieve Isoparametric curves used for tool path generation.

B-Spline Surfaces As with curves, B-spline surfaces are a generalization of Bezier surfaces The surface approximates a control polygon Open and closed surfaces can be represented

B-Spline Surfaces

Surfaces from Curves Tabulated cylinder (extrusion) Ruled surface (lofting or spined) Surface of revolution Swept surface Sculptured surface

Tabulated Cylinder Project curve along a vector In SolidWorks, created by extrusion Generating curve C P(u,v) = C(u)+ V(v) v u V(v) C(u) Vector V

Ruled Surface Linear interpolation between two edge curves Created by lofting through cross sections u v C1(u) C2(u) P(u,v) = (1-v) C1(u)+ v (C2(u) Edge curve 2 Edge curve 1 Linear interpolation

Surface of Revolution Revolve curve about an axis Axis C2(u) C1(u) v P(u,v) = C1(u)+ v (C2(u) – C1(u)) C2(u)

Swept Surface Defining curve swept along an arbitrary spine curve C2(v) P(u,v) = C1(u)+ C2(v) Spine

Lofted Surface Defining curve swept along Surface Pipe an arbitrary spine curve Defining curves Spine

Spined Surface

Sculptured Surface General surface Composed of connected surface patches

Fillets and Blends Often necessary to create a blend between intersecting surfaces Most common application is a fillet Fillet required here

Face Blend Fillet

Fillet between two selected surfaces Spined fillet with drive curve

Surface functions Curve in surface intersection Offset Surface Planar development of surfaces

Fillet between three surfaces Corner fillet

Fillet between three curves Triangular Surface by Coon patch

Sheet metal bending Unfolding

Sheet metal bending

Offset curves on Surface

Molding and silhouettes

Lecture 7 Solid Modeling Data storage structures Vertex# Location Edge# Vertices Polygon# Edges V1 0,5,0 E1 V1,V2 P1 E1,E3,E2 V2 4,15,0 E2 V1,V4 P2 E3,E4,E5 V3 4,10,0 E3 V2,V4 V4 8,0,0 E4 V2,V3 E5 V3,V4 E1 E3 E2 E4 E5 V3 V1 V4 V2 P1 P2 V3 V1 V4 V2 P1 P2 Vertex# Location Polygon# Vertices V1 0,5,0 P1 V1,V2,V4 V2 4,15,0 P2 V2,V3,V4 V3 4,10,0 V4 8,0,0

Lecture 5 Solid Modeling Data storage structure tree ???? Feature Material = 1040 Volume BOX Boundary grind face1 face2 face6 Element line1 line2 line4 ??? Length tol. = 0.002

Solid modeling approaches Boundary Representation (B-rep) Constructive Solid Geometry (CSG) Sweep

Solid modeling approaches Hybrid (Feature based modellers) Analitical Solid Modeling (ASM)

Solid Modeling B-rep modeling data structure Octree solid representation

Manifold and non-manifold modeling

Constructive Solid Geometry (CSG) Based on simple geometric primitives cube, parallelepiped, prism, pyramid, cone, sphere, torus, cylinder, solid by points etc. Primitives are positioned and combined using boolean operations union (addition) difference (subtraction) Intersection Represented as a boolean tree

CSG Primitives

Half Spaces used in CSG modeling Surface descriptions

CSG modeling by Half Spaces

CSG boolean tree Examples A-B (A-B) È C union (addition) difference (subtraction) A B

Boundary Representation (B-Rep) Solids represented by faces, edges and vertices Topological rules must be satisfied to ensure valid objects faces bounded by loop of edges each edge shared by exactly two faces each edge has a vertex at each end at least 3 edges meet at each vertex

Boundary Representation (B-Rep) Euler’s rule applies: V – E + F = 2 where V = number of vertices, E = number of edges, F = number of faces. Euler-Poincare topological equation for solid with hole: V - E + F - (L - F) -2 (S - G) = 0 where L = number of edge loops, S = number of shells, G = genus of solid (holes). Surface must be closed

Boundary Representation (B-Rep) Euler’s rule V-E+F=2 Euler-Poincare rule V-E+F-(L-F)-2(S-G)=0

Solid B-Rep Example Vertices Edges Faces

Solid B-Rep Example Topology Same Geometry, Different Topology Different Geometry, Same Topology L2 L1 L3 C1 P1 R

Winged Edge Data Structure Topology and geometry F1 F2 E predecessor 2 successor 2 successor 1 predecessor 1 V2 V1 Vertex Topology Object Genus Face Loop Edge Geometry Underlying Surface equation Curve equation Point coordinates Body

CSG vs. B-Rep CSG Simple representation Limited to simple objects Stored as binary tree Difficult to calculate Rarely used anymore B-Rep Flexible and powerful representation Stored explicitly Can be generated from CSG representation Used in current CAD systems

B-Rep of cylinder and circle Boundary Model of Cylinder and Sphere Limb E1 F1 V1 (silhouette edge) E3 F3 F2 V2 E2 V F Limb

References Curves and Surfaces for Computer Aided Geometric Design: A Practical Guide, Fourth Edition, Gerald Farin, September 1996 Geometric Modeling, Second Edition, Michael E. Mortenson, John Wiley & Sons, January 1997 The NURBS Book, Second Edition, Les A. Piegl and W. Tiller, Springer Verlay, January 1997 CAD/CAM Theory and Practice , Ibrahim Zeid,, McGraw Hill , 1991 Solid Modelling with DESIGNBASE, Hiroaki Chiyokura, Addison-Wesley Publishing Company, 1988. Mathematical Elements for Computer Graphics, Rogers, D.F., Adams, J.A., McGraw Hill, 1990.