[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kpovmodeler-devel
Subject:    Re: CSG & Detail
From:       Andreas Zehender <zehender () kde ! org>
Date:       2004-11-02 17:35:18
Message-ID: 200411021835.18691.zehender () kde ! org
[Download RAW message or body]

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
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic