Dear OpenSG users,

was just curious about the coordinate mapping of the MFPositions of
the PolygonForeground (same in the PolygonBackgrond)
When giving a negative value to a position it gets corrected this way:
val = max + val; where max is the viewport pixelWidth or Height...
Does this make sense? Shouldn't the map coordinate function simply
look like this:

Real32 PolygonForeground::mapCoordinate(Real32 val, Real32 max, bool norm)
{
    if (norm)
        val *= max;

    return val;
}

Is there a special reason for having it this way? I'm sure I'm missing
something...

Thank you,

Josef

------------------------------------------------------------------------------
Index, Search & Analyze Logs and other IT data in Real-Time with Splunk 
Collect, index and harness all the fast moving IT data generated by your 
applications, servers and devices whether physical, virtual or in the cloud.
Deliver compliance at lower cost and gain new business insights. 
Free Software Download: http://p.sf.net/sfu/splunk-dev2dev
_______________________________________________
Opensg-users mailing list
Opensg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to