Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 7 of 7

Thread: resource for cut extrusion code??

  1. #1
    Junior Member Newbie
    Join Date
    Dec 2005
    Location
    Denver, Colorado
    Posts
    5

    resource for cut extrusion code??

    Hello all,

    I have been Google'n how to code a simple cut extrusion and have not found anything good or remotely what I am looking for. Perhaps "cut" is the wrong word?

    Anyway, I have created a modeler to draw extruded walls both angular and curved. Now I would like to be able to "cut" a hole in these walls for door ways and windows and the like. I have some colision detection code already but I am really at a loss to know where to begin coding a negative or "cut" extrusion.

    Does anyone have any links or resources??

    Much appriciated...
    to live is Christ... to code is cool!

  2. #2
    Junior Member Regular Contributor
    Join Date
    Sep 2003
    Location
    Ireland
    Posts
    136

    Re: resource for cut extrusion code??

    Try Computed Solid Geometry, or perhaps Polygon Intersection...

  3. #3
    Junior Member Regular Contributor
    Join Date
    Sep 2003
    Location
    Ireland
    Posts
    136

    Re: resource for cut extrusion code??

    (In google, that is).

    Sorry I don't have any references, I don't keep such things, but I remember google having loads.

    Try Planar Intersecion, too, Polygon Intersection's might mix 2D and 3D results.

  4. #4
    Senior Member OpenGL Pro
    Join Date
    May 2000
    Location
    Naarn, Austria
    Posts
    1,142

    Re: resource for cut extrusion code??

    It's Constructive Solid Geometry, short CSG

  5. #5
    Junior Member Newbie
    Join Date
    Dec 2005
    Location
    Denver, Colorado
    Posts
    5

    Re: resource for cut extrusion code??

    Thanks Guys!

    Is there any FAQ for CSG?
    Also I am using C# to program my application not C++ - will that be a problem?

    Since I am rather new to 3D programing I'm hoping to find something rather explanitory maybe a tutorial?

    I'll see what www.opencsg.org links can tell me.

    Thanks again
    to live is Christ... to code is cool!

  6. #6
    Junior Member Newbie
    Join Date
    Dec 2005
    Location
    Denver, Colorado
    Posts
    5

    Re: resource for cut extrusion code??

    Quick Question:

    Will CSG -being solid modeling - allow for parameteric modifications?

    Example: if I create a solid wall and a boolean object for the window hole, will I be able to move that window by its points @ run time?
    to live is Christ... to code is cool!

  7. #7
    Senior Member OpenGL Pro
    Join Date
    May 2000
    Location
    Naarn, Austria
    Posts
    1,142

    Re: resource for cut extrusion code??

    That depends on the CSG method. The method OpenCSG uses does all calculation at runtime, so this should be no problem.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •