mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-01-31 00:30:33 +05:00
0020324: EDF 717 GEOM : Import IGES File
Force SALOME to work in "M" (meters) units
This commit is contained in:
parent
6e82e72333
commit
b35469265e
@ -78,6 +78,7 @@ IGESEXPORT_EXPORT
|
|||||||
//IGESControl_Writer ICW (Interface_Static::CVal("write.iges.unit"),
|
//IGESControl_Writer ICW (Interface_Static::CVal("write.iges.unit"),
|
||||||
// Interface_Static::IVal("write.iges.brep.mode"));
|
// Interface_Static::IVal("write.iges.brep.mode"));
|
||||||
IGESControl_Writer ICW ("M", aBrepMode); // "write.iges.unit" ->> VSR 15.09.09: export explicitly in meters
|
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
|
// perform shape writing
|
||||||
ICW.AddShape( theShape );
|
ICW.AddShape( theShape );
|
||||||
|
@ -37,6 +37,7 @@
|
|||||||
#include <TopoDS_Vertex.hxx>
|
#include <TopoDS_Vertex.hxx>
|
||||||
#include <BRep_Builder.hxx>
|
#include <BRep_Builder.hxx>
|
||||||
#include <gp_Pnt.hxx>
|
#include <gp_Pnt.hxx>
|
||||||
|
#include <Interface_Static.hxx>
|
||||||
|
|
||||||
#ifdef WNT
|
#ifdef WNT
|
||||||
#if defined IGESIMPORT_EXPORTS || defined IGESImport_EXPORTS
|
#if defined IGESIMPORT_EXPORTS || defined IGESImport_EXPORTS
|
||||||
@ -72,6 +73,7 @@ IGESIMPORT_EXPORT
|
|||||||
{
|
{
|
||||||
IGESControl_Reader aReader;
|
IGESControl_Reader aReader;
|
||||||
TopoDS_Shape aResShape;
|
TopoDS_Shape aResShape;
|
||||||
|
Interface_Static::SetCVal("xstep.cascade.unit","M");
|
||||||
try {
|
try {
|
||||||
IFSelect_ReturnStatus status = aReader.ReadFile(theFileName.ToCString());
|
IFSelect_ReturnStatus status = aReader.ReadFile(theFileName.ToCString());
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user