Hi Dirk,
I must be stupid, but I didn't find the way to use a TransformChunk in
order to do the same thing like ComponentMatrix->setMatrix. I didn't
find any example my documentation is too old for that. Moreover I'm not
working with OSG since March, that's probably why I'm lost now...
Could you help me ?
Thanks a lot.
Vincent
Dirk Reiners a écrit :
Hi Marc,
On Sat, 2005-06-04 at 19:31 +0200, marc wrote:
Hi Dirk,
can you please tell me why you push the "setMatrix" in
ComponentTransform to private. Yes I see you don't want to use that but
why?
mainly for consistency reasons. If you change the matrix, the other
parameters are not updated, because there are matrices that cannot be
represented using trans/scale/rotate. And if you change one of the other
parameters the matrix will be silently regenerated, and the originally
set one is just gone. it seemed to be safer to just disallow setting the
matrix directly and let people who want a matrix use a simple
TransformChunk instead. If you need to generate a matrix from
trans/scale/rotate you can use Matrix::setTransform() and give the
result to a TransformChunk.
Hope it helps
Dirk
-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users
--
Vincent Honnet
Fotografie und Software Service
Mariahilfstr. 15
52062 Aachen
E-Mail: [EMAIL PROTECTED]
Tel.: +49 (0)241 400 8882
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September
19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users