Results 1 to 3 of 3

Thread: algorithms for CSG

  1. #1
    Senior Member Regular Contributor
    Join Date
    Mar 2001

    algorithms for CSG


    has anyone some ideas how to do CSG. I would like to do following

    class object;

    object sphere, cube;
    // adding faces (triangles)to cube and sphere so they describe themselves

    object intersect,combined;
    intersect = intersection(cube,shpere);
    combined = merge(cube,shere);

    //or using overloaded operators

    object op= (box&shpere) | (cylinder & ! pyramid);

    it would be helpful for me to get some ideas, perhaps some links or code ??

    Bye ScottManDeath

  2. #2
    Senior Member Regular Contributor
    Join Date
    Nov 2000

    Re: algorithms for CSG

    i really dont know what you mean by this combined logic expression, but for a csg algo that support intersect, union and all those things, i would use the bsp tree method. i want to know more let me know.

  3. #3
    Senior Member Regular Contributor
    Join Date
    Mar 2001

    Re: algorithms for CSG


    yes I think that intersections and unions describe that what i want to do
    i would like to use operator & to get the object beeing the intersection between 2 others.
    the operator | would be the union object from 2 others

    Ive read something about BSP, but I think for a basic understandung of CSG it would be overkill?.

    Bye the way, the csg isn't menat to be done in realtime every frame, just once at startup

    What do you think about ?


Similar Threads

  1. Help with triangulation algorithms
    By imported_Budric in forum OpenGL: General
    Replies: 6
    Last Post: 11-26-2007, 09:55 AM
  2. Tiles better algorithms
    By juglarx in forum OpenGL: General
    Replies: 2
    Last Post: 07-16-2007, 12:53 AM
  3. buffer algorithms
    By kristien in forum OpenGL: General
    Replies: 0
    Last Post: 11-21-2005, 04:20 AM
  4. rendering algorithms
    By deepha in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 10-28-2005, 07:30 AM
  5. GL_TRIANGLE_STRIP Algorithms anyone??
    By cutting_crew in forum OpenGL: General
    Replies: 1
    Last Post: 03-06-2004, 01:17 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Proudly hosted by Digital Ocean