0020324: EDF 717 GEOM : Import IGES File

Force SALOME to work in "M" (meters) units
This commit is contained in:
vsr 2009-09-16 08:45:00 +00:00
parent 6e82e72333
commit b35469265e
2 changed files with 3 additions and 0 deletions

View File

@ -78,6 +78,7 @@ IGESEXPORT_EXPORT
//IGESControl_Writer ICW (Interface_Static::CVal("write.iges.unit"),
// Interface_Static::IVal("write.iges.brep.mode"));
IGESControl_Writer ICW ("M", aBrepMode); // "write.iges.unit" ->> VSR 15.09.09: export explicitly in meters
Interface_Static::SetCVal("xstep.cascade.unit","M");
// perform shape writing
ICW.AddShape( theShape );

View File

@ -37,6 +37,7 @@
#include <TopoDS_Vertex.hxx>
#include <BRep_Builder.hxx>
#include <gp_Pnt.hxx>
#include <Interface_Static.hxx>
#ifdef WNT
#if defined IGESIMPORT_EXPORTS || defined IGESImport_EXPORTS
@ -72,6 +73,7 @@ IGESIMPORT_EXPORT
{
IGESControl_Reader aReader;
TopoDS_Shape aResShape;
Interface_Static::SetCVal("xstep.cascade.unit","M");
try {
IFSelect_ReturnStatus status = aReader.ReadFile(theFileName.ToCString());