nextstep Site Admin
Joined: 06 Jan 2007 Posts: 539
|
Posted: Mon Oct 20, 2014 2:27 am Post subject: Constructive solid geometry (CSG) |
|
|
Hi all,
Constructive solid geometry (CSG) is a technique used in solid modeling. Constructive solid geometry allows a modeler to create a complex surface or object by using Boolean operators to combine objects. Often CSG presents a model or surface that appears visually complex, but is actually little more than cleverly combined or decombined objects.
Typically, the used Boolean operations on sets are: union, intersection and difference.
In 3D computer graphics and CAD CSG is often used in procedural modeling. CSG can also be performed on polygonal meshes, and may or may not be procedural and/or parametric.
The attached example shows the result of applying the Boolean operations on spheres: union (green), intersection(red) and difference (yellow).
Code: | {
"Iso3D": {
"Name": [
"CSGSpheres"
],
"Component": [
"DifferenceSpheres",
"UnionSpheres",
"IntersectSpheres"
],
"Description": [
"CSG example"
],
"Fxyz": [
"((x-0.7)*(x-0.7)+y*y+z*z-1)*min((x-0.7)*(x-0.7)+y*y+z*z-1,(x+0.3)*(x+0.3)+y*y+z*z-1)+0.02",
"min((x-4.7)*(x-4.7)+y*y+z*z-1,(x-3.5)*(x-3.5)+y*y+z*z-1)",
"max((x-0.7)*(x-0.7)+y*y+z*z-1,(x-2.)*(x-2.)+y*y+z*z-1)"
],
"Xmax": [
"0.5",
"6",
"2"
],
"Xmin": [
"-2",
"2",
"0"
],
"Ymax": [
"2",
"2",
"2"
],
"Ymin": [
"-2",
"-2",
"-2"
],
"Zmax": [
"2",
"2",
"2"
],
"Zmin": [
"-2",
"-2",
"-2"
]
}
} |
CSGSpheres by taha_ab, on Flickr _________________ Cheers,
Abderrahman |
|