mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-01-18 17:20:37 +05:00
0020324: EDF 717 GEOM : Import IGES File
Force SALOME to work in "M" (meters) units : same for STEP files
This commit is contained in:
parent
b35469265e
commit
656071da94
@ -29,6 +29,7 @@
|
||||
#include <IFSelect_ReturnStatus.hxx>
|
||||
|
||||
#include <STEPControl_Writer.hxx>
|
||||
#include <Interface_Static.hxx>
|
||||
|
||||
#include <TCollection_AsciiString.hxx>
|
||||
#include <TopoDS_Shape.hxx>
|
||||
@ -69,6 +70,8 @@ STEPEXPORT_EXPORT
|
||||
IFSelect_ReturnStatus status ;
|
||||
//VRV: OCC 4.0 migration
|
||||
STEPControl_Writer aWriter;
|
||||
//VSR: 16/09/09: Convert to METERS
|
||||
Interface_Static::SetCVal("xstep.cascade.unit","M");
|
||||
//JFA: PAL6162 status = aWriter.Transfer( theShape, STEPControl_ManifoldSolidBrep );
|
||||
status = aWriter.Transfer( theShape, STEPControl_AsIs );
|
||||
//VRV: OCC 4.0 migration
|
||||
|
@ -36,6 +36,7 @@
|
||||
#include <TopoDS_Compound.hxx>
|
||||
#include <TopoDS_Shape.hxx>
|
||||
#include <TDF_Label.hxx>
|
||||
#include <Interface_Static.hxx>
|
||||
|
||||
#include <Standard_Failure.hxx>
|
||||
#include <Standard_ErrorHandler.hxx> // CAREFUL ! position of this file is critic : see Lucien PIGNOLONI / OCC
|
||||
@ -76,6 +77,8 @@ STEPIMPORT_EXPORT
|
||||
TopoDS_Shape aResShape;
|
||||
//VRV: OCC 4.0 migration
|
||||
STEPControl_Reader aReader;
|
||||
//VSR: 16/09/09: Convert to METERS
|
||||
Interface_Static::SetCVal("xstep.cascade.unit","M");
|
||||
//VRV: OCC 4.0 migration
|
||||
TopoDS_Compound compound;
|
||||
BRep_Builder B;
|
||||
|
Loading…
Reference in New Issue
Block a user