From kpovmodeler-devel Tue Nov 02 17:35:18 2004 From: Andreas Zehender Date: Tue, 02 Nov 2004 17:35:18 +0000 To: kpovmodeler-devel Subject: Re: CSG & Detail Message-Id: <200411021835.18691.zehender () kde ! org> X-MARC-Message: https://marc.info/?l=kpovmodeler-devel&m=109941660921367 Hi! The reason view structure uses QMemArray is, that the render manager can use these arrays as vertex arrays for opengl rendering. If you don't need faces array for fast rendering, use a QValueVector if you need to. On Monday, 01. November 2004 20:53, Leon Pennington wrote: > On Friday 29 October 2004 06:43, Andreas Zehender wrote: > > Sounds good and makes sense. > > Looking forward to see csg evaluated objects in kpovmodeler :) > > Still working on it, currently hit a problem. > > I can't use QMemArray for faces, as it doesn't use the constructors, which > disallows me using variable numbers of points for faces. I could simply use > triangles, but this causes problems of its own. It increases the number of > polys to deal with for CSG ( slowing it down ), and increases the storage > requirements. > > So I'm changing to QValueVector, for the faces, it makes dealing with the > Faces slightly diffrent from the Points and Lines, which is not perfect, > but it does work. Unless someone has a better idea? -- -------------------------------------------------- Andreas Zehender Master of Computer Science, Dipl. Ing. (BA) http://www.azweb.de az@azweb.de | zehender@kde.org -------------------------------------------------- List archive and information: https://mail.kde.org/mailman/listinfo/kpovmodeler-devel