Hi Moritz,

On Wed, 2006-02-15 at 17:18 +0100, [EMAIL PROTECTED] wrote:
> Hello,
> 
> I can't compile the following code using a more or less recent CVS version of 
> OpenSG (last checkout end of 2005).
> 
> 
> OSG::GeoTexCoords1fPtr foobar = OSG::GeoTexCoords1f::create();
> beginEditCP(foobar);
> {
>       foobar->addValue(1.0f);
> }
> endEditCP(foobar);

that's a common misconception about GeoProperties. The addValue call
expects the generic type of the Property, not the native type. The
generic type for tex coords is Vec2f, which is why your code fails.

Please use foobar->getFieldPtr()->addValue(1.0f); to access the native
type for that property.

ObComment: that problem is gone in 2. ;)

Hope it helps

        Dirk




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to