Constructive Solid Geometry CSG (Geometri Padat Konstruktif)

Slides:



Advertisements
Similar presentations
CSG and Raytracing CPSC 407.
Advertisements

Constructive Solid Geometry
Constructive Solid Geometry Mel Slater
COMP 175 | COMPUTER GRAPHICS Remco Chang1/6103b – Shapes Lecture 03b: Shapes COMP 175: Computer Graphics February 3, 2015.
Concept of Modeling Model -- The representation of an object or a system Modeling -- The creation and manipulation of an object or a system representation.
Three-Dimensional Geometry
COMPUTER GRAPHICS CS 482 – FALL 2014 OCTOBER 13, 2014 IMPLICIT REPRESENTATIONS IMPLICIT FUNCTIONS IMPLICIT SURFACES MARCHING CUBES.
1 of 25 Assignment Orthographic Wireframe Elevation Orthographic Wireframe Plan Orthographic Wireframe End-Elevation Perspective View.
CS447/ Realistic Rendering -- Solids Modeling -- Introduction to 2D and 3D Computer Graphics.
2003 by Jim X. Chen: Introduction to Modeling Jim X. Chen George Mason University.
Implicit Surfaces Tom Ouyang January 29, Outline Properties of Implicit Surfaces Polygonization Ways of generating implicit surfaces Applications.
12/06/00 Dinesh Manocha, COMP258 Solid Modeling CSG (Constructive Solid Geometry) Representations: A set theoretic Boolean expression of primitive solid.
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
Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall. Chapter 6 Geometry.
COMP 175: Computer Graphics March 24, 2015
Chapter 8 Geometry.
Technology and Historical Overview. Introduction to 3d Computer Graphics  3D computer graphics is the science, study, and method of projecting a mathematical.
Disediakan oleh Suriati bte Sadimon GMM, FSKSM, UTM, 2004 SOLID MODELLING.
COLLEGE OF ENGINEERING UNIVERSITY OF PORTO COMPUTER GRAPHICS AND INTERFACES / GRAPHICS SYSTEMS JGB / AAS Solid Modelling Graphics Systems / Computer.
Acute angle An angle with a measure less than 90 degrees.
7.1 Three- Dimensional Figures I can classify and draw three-dimensional figures.
3D Object Representations
Review on Graphics Basics. Outline Polygon rendering pipeline Affine transformations Projective transformations Lighting and shading From vertices to.
Chapter Area, Pythagorean Theorem, and Volume 14 Copyright © 2013, 2010, and 2007, Pearson Education, Inc.
Constructive Solid Geometry Ray Tracing CSG Models
Geometrically Bounded Wireframe AIC (Part 510) Grouping of curves relevant for 3-dimensional wireframe modeling without topological constructs Elementary.
In the name of God Computer Graphics. Introduction Modeling techniques modeling techniques managements Some renderings.
3D Object Representations 2011, Fall. Introduction What is CG?  Imaging : Representing 2D images  Modeling : Representing 3D objects  Rendering : Constructing.
Parallel Lines Properties of Angles Formed by Parallel Lines and a Transversal.
Classifying Solids What is this Solid? Rectangular Prism.
7.1 Three- Dimensional Figures I can classify and draw three-dimensional figures.
Acute angle: An angle with a measure less than 90º.
Solid Modeling Dr. Scott Schaefer.
3D Object Representations 2009, Fall. Introduction What is CG?  Imaging : Representing 2D images  Modeling : Representing 3D objects  Rendering : Constructing.
Digital Media Dr. Jim Rowan ITEC 2110 Vector Graphics II.
Lesson Plan: Drafting and Design J6-2. What is 3D solid modeling? How do 3D solid modeling programs work?
1 Solids Three-Dimensional Geometry. 2 Prisms A prism is a three-dimensional solid with two congruent and parallel polygons called the bases. The lateral.

Computer graphics 3D solid modeling.
Lecture 5 Basic geometric objects
Transformations By: Christina Chaidez Math 1351.
Unit 11: 3-Dimensional Geometry
POLYGON MESH Advance Computer Graphics
3D Modeling Basics Three basic types of 3D CAD models:
SOLID MODELLING.
3D Graphics Rendering PPT By Ricardo Veguilla.
Basic Vocabulary Student Friendly: I will be able to define an angle, circle, perpendicular lines, parallel lines, and line segments using the definition.
3D Object Representations
Models and Architectures
Mrs. Daniel’s Geometry Vocab List
DIMENSION PLACEMENT By: Muhammad Zahid.
Introduction to Implicit Modelling
3D Rendering Pipeline Hidden Surface Removal 3D Primitives
Unit 11: 3-Dimensional Geometry
Computer Aided Engineering Design
Lecture 27: Solid Modeling
Lesson 2.6 Subsets of Space pp
Geometric Solids All bounded three-dimensional geometric figures. Examples: Sphere, Cylinders, Cubes, Cones, Pyramids, and Prisms.
Models and Architectures
Three-Dimensional Geometry
Geometric Solids All bounded three-dimensional geometric figures. Examples: Sphere, Cylinders, Cubes, Cones, Pyramids, and Prisms.
Hierarchical Modeling & Constructive Solid Geometry
Dr. Jim Rowan ITEC 2110 Vector Graphics II
Quantum Foundations Lecture 3
14 Chapter Area, Pythagorean Theorem, and Volume
15.7 Triple Integrals.
Dr. Jim Rowan ITEC 2110 Vector Graphics II
Presentation transcript:

Constructive Solid Geometry CSG (Geometri Padat Konstruktif)

Constructive Solid Geometry-CSG Outline Pengertian Constructive Solid Geometry-CSG (Geometri Padat Konstuktif) Bentuk standar CSG Operasi Boolean untuk CSG Ekpresi/pernyataan untuk CSG Transformasi skala, translasi dan rotasi untuk CSG Constructive Solid Geometry-CSG

Object Representation Real and virtual objects can be represented by : Solid models such as spheres, cylinders and cones Surface models such as triangels, quads and polygons Surface models can be rendered either by Object-order rendering Image-order rendering (i.e. ray tracing) Solid models can only be rendered by ray tracing Solid models are commonly used to describe man-made shapes Computer aided design Computer assisted manufacturing Constructive Solid Geometry-CSG

Constructive Solid Geometry (CSG) Constructive solid models can consists of primitive shapes such as Sphere Cylinder Cone Pyramid Cube Box Constructive solid models cannot consist of half spaces such as Points Lines Planes Constructive Solid Geometry-CSG

CSG - Boolean Operation CSG combines solid objects by using three (four) different boolean operations Intersection ( ∩ ) Union ( + ) Minus ( - ) (complement) In theory the minus operation can be replaced by a complement and intersection operation In practice the minus operation is often more intuitive as it corresponds to removing a solid volume Constructive Solid Geometry-CSG

Constructive Solid Geometry-CSG CSG Combine CSG - Union CSG - Intersection CSG - Minus Constructive Solid Geometry-CSG

Constructive Solid Geometry-CSG CSG - Tree Constructive Solid Geometry-CSG

Constructive Solid Geometry-CSG CSG - Tree Constructive Solid Geometry-CSG

Constructive Solid Geometry-CSG CSG - Tree Constructive Solid Geometry-CSG

Constructive Solid Geometry-CSG CSG - Operations CSG operations are not commutative CSG operations are not unique Constructive Solid Geometry-CSG

Constructive Solid Geometry-CSG CSG Tree Problems Constructive Solid Geometry-CSG

CSG – Interior, Exterior, Closure • a point p is an interior point of a solid s if there exists a radius r such that the open ball with center p and radius r is contained in the solid s. The set of all interior points of solid s is the interior of s, written as int(s). Based on this definition, the interior of an open ball is the open ball itself. a point q is an exterior point of a solid s if there exists a radius r such that the open ball with center q and radius r is not contained in s. The set of all exterior points of solid s is the exterior of solid s, written as ext(s). all points that are not in the interior nor in the exterior of a solid s are the boundary of solid s. The boundary of s is written as b(s). Therefore, the union of interior, exterior and boundary of a solid is the whole space. the closure of a solid s is defined to be the union of s's interior and boundary, written as closure(s). Or, equivalently, the closure of solid s is all points that are not in the exterior of s. Constructive Solid Geometry-CSG

CSG – Interior, Exterior, Closure Definition of an open ball Constructive Solid Geometry-CSG

CSG – Interior, Exterior, Closure Consider a sphere: The interior of a sphere is The closure of a sphere is The exterior of a sphere is A solid is a three-dimensional object The interior of a solid is a three-dimensional object The boundary of a solid is a two-dimensional surface Constructive Solid Geometry-CSG

CSG – Interior, Exterior, Closure To eliminate these lower dimensional branches, the three set operations are regularized: Compute the result as usual and lower dimensional components may be generated. Compute the interior of the result. This step would remove all lower dimensional components. The result is a solid without its boundary. Compute the closure of the result obtained in the above step. This would add the boundary back. Constructive Solid Geometry-CSG

CSG – Interior, Exterior, Closure Let +, ∩ and – be the regularized set union, intersection and difference operators. Let A and B be two solids. Then, A + B, A ∩ B and A – B can bedefined mathematically based on the abovedescription: A + B = closure(int(the set union of A and B) A ∩ B = closure(int(the set intersection of A and B) A – B = closure(int(the set difference of A and B) Constructive Solid Geometry-CSG

Constructive Solid Geometry-CSG Ray Tracing CSG Trees CSG trees must be rendered by ray tracing CSG trees must be traversed in a depth first manner traversal starts at the leaf nodes traversal of each node yields a list of line segments of the ray that pass through the solid object list of lines segments is passed to parent node and processed accordingly Each list of line segments (or spans) may be characterized by the alpha values representing the intersection points of the corresponding ray equation: Each list of line segments will either contain an odd number of intersection points (the viewpoint is inside the solid object) an even number of intersection points (the viewpoint is outside the solid object) an empty list of intersection points Constructive Solid Geometry-CSG

Constructive Solid Geometry-CSG Ray Tracing CSG Trees Constructive Solid Geometry-CSG

Constructive Solid Geometry-CSG Ray Tracing CSG Trees Ray Tracing CSG Tree : Union Ray Tracing CSG Tree : Intersection Ray Tracing CSG Tree : Minus Constructive Solid Geometry-CSG

Constructive Solid Geometry-CSG Ray Tracing CSG Trees CSG trees can be pruned during ray tracing: if the left or right subtree of an intersection operation returns an empty list, then the other subtreed need not be processed. if the left subtree of a minus operation returns an empty list, then the right subtree need not be processed. CSG trees can use bounding boxes/spheres to speed up rendering: each primitive that does not belong the currently processed bounding volume may be represented by an empty intersection list Constructive Solid Geometry-CSG

Constructive Solid Geometry-CSG Extending CSG Tree Adding transformations as primitive operations: scaling rotation translation Constructive Solid Geometry-CSG

Calculating properties of CSG Trees Ray tracing can be used to approximate the physical properties of objects including volume mass by firing a set of parallel rays from a firing plane Constructive Solid Geometry-CSG

Calculating properties of CSG Trees Volume: where Aij is the area in the firing plane is the distance between two intersection points along the firing ray Mass: Constructive Solid Geometry-CSG

Constructive Solid Geometry-CSG Referensi F.S.Hill, Jr., COMPUTER GRAPHICS – Using Open GL, Second Edition, Prentice Hall, 2001 _____________, Interactive Computer Graphic, Slide-Presentation, (folder : Lect_IC_AC_UK) http://www.cl.cam.ac.uk/Teaching/1998/AGraphics/l3a.html Constructive Solid Geometry-CSG