SlideShare a Scribd company logo
1 of 24
Download to read offline
CSG and B-Rep
Prof. R.B.Chadge
Constructive solid geometry (CSG)
• Primitive based: It is based on the notion that a
physical object can be divided into a set of primitives
– basic elements or shapes that can be combined in a
certain order following a set of rules (Boolean
operations) to create the object.
• Primitives themselves are considered valid CSG
models. Each primitives is bounded by closed and
orientable surfaces.
Constructive solid geometry (CSG)
• CSG model is fundamentally and topologically
different from a B-rep model in that it does not store
faces, edges and vertices explicitly. Instead it
evaluates them whenever needed by algorithms.
• CSG representation is of considerable importance for
manufacturing
Constructive solid geometry (CSG)
Boolean operation
• Each primitive solid is assumed to be a set of points,
a boolean operation is performed on point sets and
the result is a solid model.
• Boolean operation  union, intersection and
difference
• The relative location and orientation of the two
primitives have to be defined before the boolean
operation can be performed.
• Boolean operation can be applied to two solids other
than the primitives.
Constructive solid geometry (CSG) -
Boolean Operation
Constructive solid geometry (CSG)-
Boolean Operation
Constructive solid geometry (CSG)-
Boolean Operation
• Boolean operation
– Are intuitive to user
– Are easy to use and understand
– Provide for the rapid manipulation of large
amounts of data.
• Because of this, many non-CSG systems also use
Boolean operations
Constructive solid geometry (CSG)-
Boolean Operation
Data Structure of CSG
• Like in B-rep, the database stores topology and
geometry.
• The validity checking in CSG scheme occurs
indirectly. The each primitive that is combined using
a Boolean operations (r-sets) to build the CSG model
is checked for its validity.
• The common data structures used for CSG are graphs
and trees
CSG Data Structure
• Graph: A graph is defined as a set of nodes
connected by a set of branches or lines.
• Path: Each node in a tree belongs to a path E.g. A to
G
• Cycle: If starting and ending nodes are the same the
path is called a cycle.
CSG Data Structure
• Cyclic Graph: If a graph contains a cycle it is called
cyclic otherwise it is acyclic.
• Path: Each node in a tree belongs to a path E.g. A to
G.
• Cycle: If starting and ending nodes are the same the
path is called a cycle
Tree and Binary Tree
• Tree: A tree is an acyclic digraph in which a single
node called root node has a zero in degree and every
other nodes has an in degree of one.
• Binary Tree: In a tree if the descendent of each node
are in order (from left to right) and each node except
the leaf node has two decedents (left and right), then
the tree is called a binary tree.
Inverted Binary Tree for CSG Model
• Inverted Binary Tree: If the direction of each
connector (arrow) are reversed then we get an
inverted binary tree wherein each node has one
outdegree except the root node.
• Root node: A node with outdegree = 0. Any node
that does not have descendent.
• Leaf node: Any node that does not have a
predecessor or indegree = 0.
Inverted Binary Tree for CSG Model
• Interior node: Any node with outdegree > 0
is an interior node.
Inverted Binary Tree as CSG Tree
• CSG Tree: The inverted binary tree is very
convenient to represent the CSG operations.
• Here each of the leaf nodes is a valid solid primitive.
The intermediate nodes are the transition states of the
solid modeling (r-set) operations.
• The root node is the resulting solid from the set
operations.
• Here n primitives require (n-1) Boolean operations to
complete the construction of the object.
Inverted Binary Tree as CSG Tree
Inverted Binary Tree as CSG Tree
Tree Traversal
Tree Traversal
Tree Traversal
Tree Traversal
Tree Traversal
Tree Traversal
Tree Traversal

More Related Content

Similar to Constructive Solide Geometry and Binary representation

Solid modeling
Solid modelingSolid modeling
Solid modeling
KRvEsL
 

Similar to Constructive Solide Geometry and Binary representation (20)

187186134 5-geometric-modeling
187186134 5-geometric-modeling187186134 5-geometric-modeling
187186134 5-geometric-modeling
 
187186134 5-geometric-modeling
187186134 5-geometric-modeling187186134 5-geometric-modeling
187186134 5-geometric-modeling
 
5 geometric modeling
5 geometric modeling5 geometric modeling
5 geometric modeling
 
5 geometric-modeling-ppt-university-of-victoria
5 geometric-modeling-ppt-university-of-victoria5 geometric-modeling-ppt-university-of-victoria
5 geometric-modeling-ppt-university-of-victoria
 
Cad ala brep, csg and sweep representation gtu
Cad   ala  brep, csg and sweep representation gtuCad   ala  brep, csg and sweep representation gtu
Cad ala brep, csg and sweep representation gtu
 
5_Geometric_Modeling.pdf
5_Geometric_Modeling.pdf5_Geometric_Modeling.pdf
5_Geometric_Modeling.pdf
 
Aligning seqeunces with W-curve and SQL.
Aligning seqeunces with W-curve and SQL.Aligning seqeunces with W-curve and SQL.
Aligning seqeunces with W-curve and SQL.
 
Solid Modelling in computer aided Design
Solid Modelling in computer aided DesignSolid Modelling in computer aided Design
Solid Modelling in computer aided Design
 
CSG
CSGCSG
CSG
 
AgensGraph Presentation at PGConf.us 2017
AgensGraph Presentation at PGConf.us 2017AgensGraph Presentation at PGConf.us 2017
AgensGraph Presentation at PGConf.us 2017
 
ppt of solid modeling for cad
ppt of solid modeling for cadppt of solid modeling for cad
ppt of solid modeling for cad
 
Solid modeling
Solid modelingSolid modeling
Solid modeling
 
8895974
88959748895974
8895974
 
Solids[1]
Solids[1]Solids[1]
Solids[1]
 
Hierarchical Modeling
Hierarchical ModelingHierarchical Modeling
Hierarchical Modeling
 
AgensGraph: a Multi-model Graph Database based on PostgreSql
AgensGraph: a Multi-model Graph Database based on PostgreSqlAgensGraph: a Multi-model Graph Database based on PostgreSql
AgensGraph: a Multi-model Graph Database based on PostgreSql
 
Floor planning ppt
Floor planning pptFloor planning ppt
Floor planning ppt
 
Parallelizing Pruning-based Graph Structural Clustering
Parallelizing Pruning-based Graph Structural ClusteringParallelizing Pruning-based Graph Structural Clustering
Parallelizing Pruning-based Graph Structural Clustering
 
Relational algebra
Relational algebraRelational algebra
Relational algebra
 
Optimizing Geospatial Operations with Server-side Programming in HBase and Ac...
Optimizing Geospatial Operations with Server-side Programming in HBase and Ac...Optimizing Geospatial Operations with Server-side Programming in HBase and Ac...
Optimizing Geospatial Operations with Server-side Programming in HBase and Ac...
 

More from rahulkatre9 (6)

Unit 3 Manufacturing Systems in automation
Unit 3 Manufacturing Systems in automationUnit 3 Manufacturing Systems in automation
Unit 3 Manufacturing Systems in automation
 
CAD Data Exchange format used in industry
CAD Data Exchange format used in industryCAD Data Exchange format used in industry
CAD Data Exchange format used in industry
 
controllers ITS TYPES AND CLASSIFICATION BASED ON APPLICATION
controllers ITS TYPES AND CLASSIFICATION BASED ON APPLICATIONcontrollers ITS TYPES AND CLASSIFICATION BASED ON APPLICATION
controllers ITS TYPES AND CLASSIFICATION BASED ON APPLICATION
 
CAD CAM SYSTEM Evaluation Criteria to select the Software
CAD CAM SYSTEM Evaluation Criteria to select the SoftwareCAD CAM SYSTEM Evaluation Criteria to select the Software
CAD CAM SYSTEM Evaluation Criteria to select the Software
 
Bresenhems line Genration derivation for Mtech
Bresenhems line Genration derivation for MtechBresenhems line Genration derivation for Mtech
Bresenhems line Genration derivation for Mtech
 
Sensor & it types in industry with application
Sensor & it types in industry with applicationSensor & it types in industry with application
Sensor & it types in industry with application
 

Recently uploaded

Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSSpellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
AnaAcapella
 
MuleSoft Integration with AWS Textract | Calling AWS Textract API |AWS - Clou...
MuleSoft Integration with AWS Textract | Calling AWS Textract API |AWS - Clou...MuleSoft Integration with AWS Textract | Calling AWS Textract API |AWS - Clou...
MuleSoft Integration with AWS Textract | Calling AWS Textract API |AWS - Clou...
MysoreMuleSoftMeetup
 
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
EADTU
 
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
中 央社
 
Contoh Aksi Nyata Refleksi Diri ( NUR ).pdf
Contoh Aksi Nyata Refleksi Diri ( NUR ).pdfContoh Aksi Nyata Refleksi Diri ( NUR ).pdf
Contoh Aksi Nyata Refleksi Diri ( NUR ).pdf
cupulin
 

Recently uploaded (20)

Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSSpellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
 
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdfFICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
 
Including Mental Health Support in Project Delivery, 14 May.pdf
Including Mental Health Support in Project Delivery, 14 May.pdfIncluding Mental Health Support in Project Delivery, 14 May.pdf
Including Mental Health Support in Project Delivery, 14 May.pdf
 
MuleSoft Integration with AWS Textract | Calling AWS Textract API |AWS - Clou...
MuleSoft Integration with AWS Textract | Calling AWS Textract API |AWS - Clou...MuleSoft Integration with AWS Textract | Calling AWS Textract API |AWS - Clou...
MuleSoft Integration with AWS Textract | Calling AWS Textract API |AWS - Clou...
 
The Liver & Gallbladder (Anatomy & Physiology).pptx
The Liver &  Gallbladder (Anatomy & Physiology).pptxThe Liver &  Gallbladder (Anatomy & Physiology).pptx
The Liver & Gallbladder (Anatomy & Physiology).pptx
 
male presentation...pdf.................
male presentation...pdf.................male presentation...pdf.................
male presentation...pdf.................
 
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
 
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
 
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
 
Major project report on Tata Motors and its marketing strategies
Major project report on Tata Motors and its marketing strategiesMajor project report on Tata Motors and its marketing strategies
Major project report on Tata Motors and its marketing strategies
 
How to Send Pro Forma Invoice to Your Customers in Odoo 17
How to Send Pro Forma Invoice to Your Customers in Odoo 17How to Send Pro Forma Invoice to Your Customers in Odoo 17
How to Send Pro Forma Invoice to Your Customers in Odoo 17
 
AIM of Education-Teachers Training-2024.ppt
AIM of Education-Teachers Training-2024.pptAIM of Education-Teachers Training-2024.ppt
AIM of Education-Teachers Training-2024.ppt
 
Contoh Aksi Nyata Refleksi Diri ( NUR ).pdf
Contoh Aksi Nyata Refleksi Diri ( NUR ).pdfContoh Aksi Nyata Refleksi Diri ( NUR ).pdf
Contoh Aksi Nyata Refleksi Diri ( NUR ).pdf
 
Mattingly "AI & Prompt Design: Named Entity Recognition"
Mattingly "AI & Prompt Design: Named Entity Recognition"Mattingly "AI & Prompt Design: Named Entity Recognition"
Mattingly "AI & Prompt Design: Named Entity Recognition"
 
Mattingly "AI and Prompt Design: LLMs with NER"
Mattingly "AI and Prompt Design: LLMs with NER"Mattingly "AI and Prompt Design: LLMs with NER"
Mattingly "AI and Prompt Design: LLMs with NER"
 
The Story of Village Palampur Class 9 Free Study Material PDF
The Story of Village Palampur Class 9 Free Study Material PDFThe Story of Village Palampur Class 9 Free Study Material PDF
The Story of Village Palampur Class 9 Free Study Material PDF
 
Supporting Newcomer Multilingual Learners
Supporting Newcomer  Multilingual LearnersSupporting Newcomer  Multilingual Learners
Supporting Newcomer Multilingual Learners
 
OS-operating systems- ch05 (CPU Scheduling) ...
OS-operating systems- ch05 (CPU Scheduling) ...OS-operating systems- ch05 (CPU Scheduling) ...
OS-operating systems- ch05 (CPU Scheduling) ...
 
ESSENTIAL of (CS/IT/IS) class 07 (Networks)
ESSENTIAL of (CS/IT/IS) class 07 (Networks)ESSENTIAL of (CS/IT/IS) class 07 (Networks)
ESSENTIAL of (CS/IT/IS) class 07 (Networks)
 
Analyzing and resolving a communication crisis in Dhaka textiles LTD.pptx
Analyzing and resolving a communication crisis in Dhaka textiles LTD.pptxAnalyzing and resolving a communication crisis in Dhaka textiles LTD.pptx
Analyzing and resolving a communication crisis in Dhaka textiles LTD.pptx
 

Constructive Solide Geometry and Binary representation

  • 1. CSG and B-Rep Prof. R.B.Chadge
  • 2. Constructive solid geometry (CSG) • Primitive based: It is based on the notion that a physical object can be divided into a set of primitives – basic elements or shapes that can be combined in a certain order following a set of rules (Boolean operations) to create the object. • Primitives themselves are considered valid CSG models. Each primitives is bounded by closed and orientable surfaces.
  • 3. Constructive solid geometry (CSG) • CSG model is fundamentally and topologically different from a B-rep model in that it does not store faces, edges and vertices explicitly. Instead it evaluates them whenever needed by algorithms. • CSG representation is of considerable importance for manufacturing
  • 4. Constructive solid geometry (CSG) Boolean operation • Each primitive solid is assumed to be a set of points, a boolean operation is performed on point sets and the result is a solid model. • Boolean operation  union, intersection and difference • The relative location and orientation of the two primitives have to be defined before the boolean operation can be performed. • Boolean operation can be applied to two solids other than the primitives.
  • 5. Constructive solid geometry (CSG) - Boolean Operation
  • 6. Constructive solid geometry (CSG)- Boolean Operation
  • 7. Constructive solid geometry (CSG)- Boolean Operation
  • 8. • Boolean operation – Are intuitive to user – Are easy to use and understand – Provide for the rapid manipulation of large amounts of data. • Because of this, many non-CSG systems also use Boolean operations Constructive solid geometry (CSG)- Boolean Operation
  • 9. Data Structure of CSG • Like in B-rep, the database stores topology and geometry. • The validity checking in CSG scheme occurs indirectly. The each primitive that is combined using a Boolean operations (r-sets) to build the CSG model is checked for its validity. • The common data structures used for CSG are graphs and trees
  • 10. CSG Data Structure • Graph: A graph is defined as a set of nodes connected by a set of branches or lines. • Path: Each node in a tree belongs to a path E.g. A to G • Cycle: If starting and ending nodes are the same the path is called a cycle.
  • 11. CSG Data Structure • Cyclic Graph: If a graph contains a cycle it is called cyclic otherwise it is acyclic. • Path: Each node in a tree belongs to a path E.g. A to G. • Cycle: If starting and ending nodes are the same the path is called a cycle
  • 12. Tree and Binary Tree • Tree: A tree is an acyclic digraph in which a single node called root node has a zero in degree and every other nodes has an in degree of one. • Binary Tree: In a tree if the descendent of each node are in order (from left to right) and each node except the leaf node has two decedents (left and right), then the tree is called a binary tree.
  • 13. Inverted Binary Tree for CSG Model • Inverted Binary Tree: If the direction of each connector (arrow) are reversed then we get an inverted binary tree wherein each node has one outdegree except the root node. • Root node: A node with outdegree = 0. Any node that does not have descendent. • Leaf node: Any node that does not have a predecessor or indegree = 0.
  • 14. Inverted Binary Tree for CSG Model • Interior node: Any node with outdegree > 0 is an interior node.
  • 15. Inverted Binary Tree as CSG Tree • CSG Tree: The inverted binary tree is very convenient to represent the CSG operations. • Here each of the leaf nodes is a valid solid primitive. The intermediate nodes are the transition states of the solid modeling (r-set) operations. • The root node is the resulting solid from the set operations. • Here n primitives require (n-1) Boolean operations to complete the construction of the object.
  • 16. Inverted Binary Tree as CSG Tree
  • 17. Inverted Binary Tree as CSG Tree