PDA

View Full Version : boolean operation, quads and circle



magnuse
07-29-2004, 10:50 PM
hi, I need some help with this kind of boolean problem. I have a square (GL_QUADS) built up with four vertices and want to make a hole in the middle of this one.
My idea is to make a circle and then take boolean between the square and the circle, to get a hole where I put the circle.
But I don't know how to do this. If someone can help me I will be very thankful...
I'm a beginner and using Microsoft Visual c++.

07-30-2004, 08:35 AM
this (cross-posted) topic has been resolved in the advanced forum.

Yoy
08-03-2004, 12:48 PM
The library GLU can do it.This library includes a tesselator which is a set of functions to do exactly what you want : a non-convex polygon.It can manage any polygon:crossed, with a hole, etc..
This library is always whith opengl, it's surely already installed on your system.So just type: #include <GL/glu.h>
to include it.If you're using glut, you don't need to do anything.
I strongly recommand you to get the "glu spec" (or something like that) in the following address:
http://www.opengl.org/resources/libraries/glx.html
A full chapter is devoted to it.