PDA

View Full Version : Solid construction for CAM application



nadro
09-29-2010, 09:49 AM
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!

ZbuffeR
09-29-2010, 01:23 PM
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/

nadro
09-30-2010, 12:26 AM
Thank you! I will try!

nadro
09-30-2010, 02:31 AM
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?

nadro
09-30-2010, 04:09 AM
Have you ever heard about http://www.opencascade.org? (http://www.opencascade.org)

ZbuffeR
09-30-2010, 12:07 PM
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 ...