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 6 of 6

Thread: Solid construction for CAM application

  1. #1
    Junior Member Newbie
    Join Date
    Sep 2010
    Posts
    6

    Solid construction for CAM application

    Hi, I'm quite new in OpenGl. I'm working to a Cad/Cam software and up to now I used opengl to draw tool movements with lines.
    Now I would draw a manufacturing preview. I don't know what would be the best approach, but in my mind it should be something like this: draw the material (like a parallelepiped) and for each tool position subtract from the material the tool space (usually a cylinder).
    My first approach has been to use OpenCSG but the huge amount of solid subtractions (1000-10000 positions circa) gave me a very slow render and some view problems (something like ghost shapes and holes that appear rotating the model).
    Do you have some ideas/suggestions for me? Is there any other OpenGL based library to perform Solid Construction? Thanks in advance!

  2. #2
    Super Moderator OpenGL Lord
    Join Date
    Dec 2003
    Location
    Grenoble - France
    Posts
    5,655

    Re: Solid construction for CAM application

    I would try to do that with an actual geometry-based CSG after each tool stroke, and doing only the current stroke with image-based CSG.

    OpenCSG suggests http://gts.sourceforge.net/

  3. #3
    Junior Member Newbie
    Join Date
    Sep 2010
    Posts
    6

    Re: Solid construction for CAM application

    Thank you! I will try!

  4. #4
    Junior Member Newbie
    Join Date
    Sep 2010
    Posts
    6

    Re: Solid construction for CAM application

    Ok, while I'm struggling to compile gts under windows (because I'm working with VS2008), could you explain me what do you mean or what's the difference between geometry-based CSG and image-based CSG?

  5. #5
    Junior Member Newbie
    Join Date
    Sep 2010
    Posts
    6

    Re: Solid construction for CAM application

    Have you ever heard about http://www.opencascade.org?

  6. #6
    Super Moderator OpenGL Lord
    Join Date
    Dec 2003
    Location
    Grenoble - France
    Posts
    5,655

    Re: Solid construction for CAM application

    Quote Originally Posted by nadro
    what's the difference between geometry-based CSG and image-based CSG?
    That is pretty much explained in the Introduction of the front page on OpenCSG ...

Posting Permissions

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