mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-14 13:30:48 +03:00
0030402: Data Exchange - exported VRML file has broken location information
This commit is contained in:
@@ -53,6 +53,7 @@
|
||||
#include <TColStd_MapIteratorOfPackedMapOfInteger.hxx>
|
||||
#include <TopoDS_Face.hxx>
|
||||
#include <TopoDS_Shape.hxx>
|
||||
#include <UnitsMethods.hxx>
|
||||
#include <V3d_View.hxx>
|
||||
#include <ViewerTest.hxx>
|
||||
#include <VrmlAPI.hxx>
|
||||
@@ -239,6 +240,8 @@ static Standard_Integer loadvrml
|
||||
}
|
||||
|
||||
VrmlData_Scene aScene;
|
||||
Standard_Real anOCCUnit = UnitsMethods::GetCasCadeLengthUnit();
|
||||
aScene.SetLinearScale(1000. / anOCCUnit);
|
||||
|
||||
aScene.SetVrmlDir (aVrmlDir);
|
||||
aScene << aStream;
|
||||
|
Reference in New Issue
Block a user