Constructive solid geometry (CSG)

 
Post new topic   Reply to topic    K3DSurf forum Forum Index -> Mathematical Models Collection
View previous topic :: View next topic  
Author Message
nextstep
Site Admin


Joined: 06 Jan 2007
Posts: 538

PostPosted: Mon Oct 20, 2014 2:27 am    Post subject: Constructive solid geometry (CSG) Reply with quote

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
Back to top View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    K3DSurf forum Forum Index -> Mathematical Models Collection All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


2005 Powered by phpBB © 2001, 2005 phpBB Group


Start Your Own Video Sharing Site

Free Web Hosting | Free Forum Hosting | FlashWebHost.com | Image Hosting | Photo Gallery | FreeMarriage.com

Powered by PhpBBweb.com, setup your forum now!
For Support, visit Forums.BizHat.com