Wiki Menu


Home
Syllabus
Schedule
Screen Copy
Grader
Pre-Test
Billiards
Induction
Deduction
3 Ladies
3 Prisoners
Arithmetic
Pyramid
Geometric
Keyboard
Binary
8-Bit Adder
Squares
Cubes
Ring Game
Fibonacci
Phyllotaxis
Nim
Staircase
Counting
Flowers
Permutations
Duplications
Coin Flip
Combinations
Pascal's Tree
Texas Poker
Dice Rolls
Candychines
Lottery
Binomial ESP
More Dice
Monty Hall
Birthdays
BlackJack
Slot Machines
Ciphers
Today's Quote
Bell Curve
M&M Sampling
Worm Holes
Doodles
World Tour
CSG
Polys
Fractals
Chaos Game
Eggbrot

CSG

Show Menu

Constructive Solid Geometry

CONSTRUCTIVE SOLID GEOMETRY



toystory bug theincredibles stuart toystorycowgirl toystorybopeep toystorymartian toystoryslinky toystoryhamm toystorypotato toystoryrex donkeyshrek findingnemo monstergroup


WHAT IS A SET?


A SET is an unordered collection of unduplicated things. These things may be letters, numbers, or anything else we care to collect. The Pixar characters above are a set of characters each created on a computer. But each character is also a set constructed from geometric solids. These solids have names such as cone, cylinder, sphere, pyramid, prism, box, egg, and donut. Computer programs stretch and shrink them like rubber, glue them together, and even use them like a sculptor uses a chisel.

woodsolids


SET OPERATIONS
+ – &


Each character is modeled using 3 operations:

+ adds two or more solids together
subtracts the shape of one solid from another solid
& overlaps sections of two or more solids

If you have ever played with a Mr. Potato Head, you know how these operations work.
Behold! Hasbro's Darth Tater with parts!

Darth Tater Darth Parts

Perhaps you would like to make your own Mr. Potato Head Þ toystorypotato

However, you will earn no points for him...



DIRECTIONS — 3D DOODLE

In this assignment, you will draw, save, and post 3-dimensional doodles that you make in a CSG applet written by Indira Malik at Cornell University. Indira's CSG Applet is similar to software the Pixar folks use when they design their characters, but much simpler. (Some of you may have heard of other CSG software—such as AutoCad, Maya, and LightWave.) Still, it takes a while to become familiar with the CSG tools. To keep this assignment fun, all you need do is combine a set of objects using each of the 3 operations at least once. You have a set of 4 objects to begin with: a sphere, a cube, a cylinder, a cone, but you do not need to use all of them. Double click to place each one on the black canvas. If nothing happens, hit the Clear All button. The next trick is to move them close enough to each other so you can apply the 3 operations. Use the Translate buttons for this. Since you are viewing in 3D, you cannot be sure if the objects are close until you rotate the view using the XYZ axes tool in the lower right of the canvas. When you have 2 or more objects overlapping like you want them, it is time to Enter an Operation String. Try either a Union, a Difference, or an Intersection operation. This applet uses U for addition, M for minus, and I for intersection.

CSG CSG

In the example above, I used this Operation String

((L1 I N1) M S1) U C1

This told the applet to Intersect (overlap) Cylinder1 with Cone1, Minus (subtract) Sphere1 from the intersection, and then add Cube1. If my string had been L1 I ((N1 M S1) U C1), the results would have been very different. After entering my Operation String, I hit the enter key to create a new object — Object O1. I copied the Operation String, and converted it into our notation like this:

((CYLINDER1 & CONE1) — SPHERE1) + CUBE1

I then enlarged my doodle (scaled it up), and rotated it to a view I liked. I copied and saved my doodle. Next, I went back to the applet, rotated my doodle to another viewpoint by dragging it around in the canvas, and repeated the copy and save process once more.

You receive 2 points for using each of the 3 operations + – &, plus 4 points for the correct operation string. If you find it easier to make 2 or 3 doodles that together include all 3 operations, then do so, but you must label each one with its operation string. Also, you do not need to post more than one view of your doodle(s).

This is only an introduction to what can be done with sets and set operators. In today's world, there are zillions of applications of set operations. 3-Dimensional characters are only one example.

Click here to open a new browser window with CSG Instructions.
Click here to open a new browser window with Indira's CSG Applet.




HOW TO SAVE YOUR DOODLE

  1. Draw your 3D doodle in the Java applet
  2. Rotate your doodle till you like it
  3. Hit [Prt Scr] button on your keyboard
  4. Open Paint program under Accessories
  5. Select Paste from Edit menu [Ctrl+V]
  6. Click on Rectangle tool
  7. Draw a rectangle to select your doodle
  8. Edit/Copy [Ctrl+C]
  9. Click on Rectangle tool again
  10. Image/Stretch [Ctrl+W] 1% by 1% to shrink image
  11. Select Paste from Edit menu [Ctrl+V]
  12. Invert Colors under Image menu [Ctrl+I]
  13. File/Save As... a Monochrome Bitmap
  14. File/Save As... a GIF image
  15. Repeat steps 2 thru 14 for a different view
  16. Read the Comment at the bottom of this page...
  17. And attach your GIF images to a Comment.


OTHER SET NOTATIONS

We use + – & as notation for set operations, because we can type them easily on the keyboard; but they do not necessarily mean what they mean in arithmetic; nor are + – & the only notations for set operators. Here are some other standard popular notations you may see elsewhere:

UNION           +   v   |   U

INTERSECTION    ·   ^   &   ∩

NEGATION        —   ~   !   ¬

Learn more about sets and set operations → woodsolids

Comments:

From wHolt - 11/21/08 5:54 PM

 wHolt-minus.gifwHolt-intersection.gifwHolt-union.gif

— negation                     & intersection                     + union

sphere – cone                sphere & cone                   sphere + cone 

files/Pix/wHolt-minus.gif  files/Pix/wHolt-interection.gif  files/Pix/wHolt-union.gif 

From wHolt - 11/21/08 5:37 PM

PUT YOUR PIX IN A COMMENT



Attach your CSG files to this page.
Title your files with your Name first;
followed by the Title of your file: Name-Title.gif

  1. Click Attachments in the upper right.
  2. Browse for your files.
  3. Upload your files.
  4. Click Close Editor button in upper right.
  5. At the bottom of the page, click Comment on this Page.
  6. Click the little green Tree icon.
  7. In the Image List box, click the down triangle.
  8. Your image should appear in the drop down list.
  9. Click on its title.
  10. Your image should appear in the Preview window.
  11. When ready, click the Insert button.
  12. Label your drawing with your Operation String.
  13. Also enter your Name so we know who created it.


Comment on this Page
Last Modified 12/2/08 5:16 PM