Constructive Solid Geometry: by Divya Sharma Ankita Sharma
Constructive Solid Geometry: by Divya Sharma Ankita Sharma
Solid Geometry
By
Divya Sharma
Ankita Sharma
Constructive Solid Geometry (CSG) performs solid
modelling by generating a new object from two
three- dimensional objects using a set operation.
Valid set operations include
Union
Intersection
Difference
CSG usually starts with a small set of primitives
such as blocks, pyramids, spheres and cones.
Two objects are initially created and combined
using some set operation to create a new object.
This object can then be combined with another
primitive to make another new object.
This process continues until modelling complete.
CSG - Union
CSG - Intersection
CSG - Minus
CSG models are
usually represented
as CSG trees
CSG
Object
oper
1
obj
1
obj
2
oper
3
obj
4
oper
2
obj
2
obj
3
Ray-casting is typically used to implement CSG
operators when objects are described with
boundary representations
Ray casting is applied by determining the objects
that are intersected by a set of parallel lines
emanating from the xy plane along the z axis
The xy plane is referred to as the firing plane
I
m
a
g
e
s
t
a
k
e
n
f
r
o
m
H
e
a
r
n
&
B
a
k
e
r
,
C
o
m
p
u
t
e
r
G
r
a
p
h
i
c
s
w
i
t
h
O
p
e
n
G
L
(
2
0
0
4
)
Surface intersections along each ray are
calculated and these are sorted according to
distance from the firing plane
The surface limits for the composite object are
then determined by the specified set operation
I
m
a
g
e
s
t
a
k
e
n
f
r
o
m
H
e
a
r
n
&
B
a
k
e
r
,
C
o
m
p
u
t
e
r
G
r
a
p
h
i
c
s
w
i
t
h
O
p
e
n
G
L
(
2
0
0
4
)