CSG - // top sur f } intersection { sphere { <0,...

Info iconThis preview shows pages 1–10. Sign up to view the full content.

View Full Document Right Arrow Icon
Constructive Solid Geometry David Gu 1 1 Department of Computer Science Stony Brook University CSE325 Spring 2011 David Gu Conformal Geometry
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Constructive Solid Geometry David Gu Conformal Geometry
Background image of page 2
CSG CSG is short for Constructive Solid Geometry and denotes an approach to model complex 3D-shapes using simpler ones. I.e., two shapes can be combined by taking the union of them, by intersecting them, or by subtracting one shape of the other. The most basic shapes, which are not result of such a CSG operation, are called primitives. Primitives must be solid, i.e., they must have a clearly defined interior and exterior. By construction, a CSG shape is also solid then. David Gu Conformal Geometry
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Constructive Solid Geometry David Gu Conformal Geometry
Background image of page 4
Constructive Solid Geometry David Gu Conformal Geometry
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Constructive Solid Geometry intersection { sphere { <0, 0, 0>, 1 } // outer w a sphere { <0, 0, 0>, 0.85 inverse } // inner w a plane { <0, 1, 0>, 0.25 }
Background image of page 6
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 8
Background image of page 9

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 10
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: // top sur f } intersection { sphere { &lt;0, 0, 0&gt;, 1 } // outer wa l plane { &lt;0, 1, 0&gt;, 0.25 } // top surf a } David Gu Conformal Geometry Constructive Solid Geometry David Gu Conformal Geometry Constructive Solid Geometry union { sphere {&lt;0, 0, 0&gt;, 1.75} difference { object {UnitBox scale 1.5} // Clip some sqr holes in the box to make a 3D object {UnitBox scale &lt;1.51, 1.25, 1.25&gt; } / / object {UnitBox scale &lt;1.25, 1.51, 1.25&gt; } / / object {UnitBox scale &lt;1.25, 1.25, 1.51&gt; } / / } texture { Pink_Gran_Texture scale 0.25 } rotate y * 45 } David Gu Conformal Geometry Constructive Solid Geometry David Gu Conformal Geometry Constructive Solid Geometry intersection { object { Cylinder_X } object { Cylinder_Y } object { Cylinder_X inverse scale &lt;1, 0.5, 0.5&gt; } object { Cylinder_Y inverse scale &lt;0.5, 1, 0.5&gt; } } David Gu Conformal Geometry...
View Full Document

Page1 / 10

CSG - // top sur f } intersection { sphere { &amp;amp;lt;0,...

This preview shows document pages 1 - 10. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online