Indeed, it is surely a bug. Try changing dxfDataType::typeForCode() so that it returns an INT for code 62. It won't harm, 'cause there are boundary checks on this value later in the code. Send the fixed file to osg-submission if that solves the problem.
Regards,
Paul
Paul de Repentigny
Graph Synergie Inc.
tel: (418) 659-5611 #103
derep a.t. graphsynergie.com
On 13-Jun-06, at 11:31 AM, Siemoleit, Philipp, wrote:
Hi,
I downloaded OSG, compiled and installed it. I successfully loaded some
DXF files with the osgsimple viewer. But some of my DXF files are not
readble. The viewer aborts with:
****
Error converting line 316 to type unsigned short
****
Line 316 of my DXF file contains a value "-1". It's a negative value and
seems to clear the meaning of the error message above. I was looking at
the structure of the DXF file - the line above (line 315) contains the
value "62". I'm not involved to the format of DXF file, but my internet
recherche says: "62" specifies the type of the following value as a "16
bit integer" value. The value "-1" is a 16 bit integer value but the OSG
DXF plugin expects an UNSIGNED short value.
I'm not able to figure out the tool which was used to create the DXF
file but I'm shure the file is correct. Many other viewers are able to
read the file and display the 3d model.
Is it a bug on the DXF plugin?
Sadly I'm not allowed to attach the DXF file because it's owned an
protected by the company. If you need an expample all the same, let me
know it and I will try to build an example file.
Used Open Scene Graph Version: 1.0.0 / 25-May-2006 / 23:00
Thanks
Philipp
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/
_______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
