On 6/23/06, Leandro Motta Barros <[EMAIL PROTECTED]> wrote:
It's me again...

I've examined the implementation a little more, and got two new
questions/comments.

1) Is it really possible to change the geometry from a
TriangleFunctor? I haven't examined the implementation carefully, but,
uh, things look "too const to be mutable". (Feel free to ignore
questions with such silly argumentes ;-))

Nothing too const with a cast :-)

It all depends on the context.  In general you should use
AttributeFunctors if you want to modify vertex attribute data.

> 2) Aren't the implementation of the methods 'begin()', 'end()', and
'vertex()' found in 'TriangleFunctor' generic enough to be transfered
to 'PrimitiveFunctor'? There is even a note in a comment in
'TriangleFunctor::begin()' that seems to suggest this.

They are override the ones from PrimitiveFunctor, so I'm a bit
confused, perhaps you hadn't spotted this.

Robert.
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to