- DXF: convert AutoCAD's coordinate system conventions to Assimp's.
git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@910 67173fc5-114c-0410-ac8e-9d2fd5bffc1fpull/1/head
parent
6587130e9c
commit
990f5bd77e
|
@ -186,12 +186,13 @@ void DXFImporter::InternReadFile( const std::string& pFile,
|
||||||
}
|
}
|
||||||
|
|
||||||
ConvertMeshes(pScene,output);
|
ConvertMeshes(pScene,output);
|
||||||
|
|
||||||
// flip winding order to be ccw
|
|
||||||
//FlipWindingOrderProcess flipper;
|
|
||||||
//flipper.Execute(pScene);
|
|
||||||
|
|
||||||
// --- everything destructs automatically ---
|
// Now rotate the whole scene by 90 degrees around the x axis to convert from AutoCAD's to Assimp's coordinate system
|
||||||
|
pScene->mRootNode->mTransformation = aiMatrix4x4(
|
||||||
|
1.f,0.f,0.f,0.f,
|
||||||
|
0.f,0.f,1.f,0.f,
|
||||||
|
0.f,-1.f,0.f,0.f,
|
||||||
|
0.f,0.f,0.f,1.f) * pScene->mRootNode->mTransformation;
|
||||||
}
|
}
|
||||||
|
|
||||||
// ------------------------------------------------------------------------------------------------
|
// ------------------------------------------------------------------------------------------------
|
||||||
|
|
Loading…
Reference in New Issue