From Sylvan Marie, "I attached my revised dxfEntity.cpp file from the DXF plugin with the 2 following improvements:
From Sylvan Marie, "I attached my revised dxfEntity.cpp file from the DXF plugin with the 2
following improvements:

- When all unsupported entities (SOLIDS, TEXT, ...) have been filtered out
from a block, dxfInsert::drawScene() was crashing because it assumed that
the block was not empty. It now returns silently so the other blocks can
still be imported.

- The DXF reader assumed all vertices were read first, then the face
indices. But, from the DXF "documentation" (www.autodesk.com/dxf) :
"Polyface meshes created with the PFACE command are always generated with
all the vertex coordinate entities first, followed by the face definition
entities. The code within AutoCAD that processes polyface meshes requires
this ordering. Programs that generate polyface meshes in DXF should generate
all the vertices then all the faces. However, programs that read polyface
meshes from DXF should be tolerant of odd vertex and face ordering."
So now the importer ignores the posted number of vertices and face indices,
and uses the size of the lists instead."


marchelbling/osg,jtorresfabra/osg,tomasthoresen/osg,jtorresfabra/osg,tomasthoresen/osg,openscenegraph/osg,marchelbling/osg,marchelbling/osg,jtorresfabra/osg,artoolkit/osg,jtorresfabra/osg,tomasthoresen/osg,scrawl/osg,openscenegraph/osg,scrawl/osg,tomasthoresen/osg,artoolkit/osg,scrawl/osg,marchelbling/osg,openscenegraph/osg,artoolkit/osg,openscenegraph/osg,scrawl/osg,artoolkit/osg