Salome HOME
0021915: [CEA 685] Remove Ascii from the STL file selection filter in the import...
authorvsr <vsr@opencascade.com>
Tue, 16 Oct 2012 15:49:48 +0000 (15:49 +0000)
committervsr <vsr@opencascade.com>
Tue, 16 Oct 2012 15:49:48 +0000 (15:49 +0000)
src/DriverSTL/DriverSTL_R_SMDS_Mesh.cxx
src/DriverSTL/DriverSTL_W_SMDS_Mesh.cxx
src/DriverSTL/Makefile.am

index 2687363db2af85b6a697870f5dbec728d56e99d0..e5d260feb6c97bed9ab2f2afa64c5b841a713fdd 100644 (file)
@@ -22,6 +22,8 @@
 
 #include <stdio.h>
 #include <gp_Pnt.hxx>
+#include <Basics_Utils.hxx>
+
 //=======================================================================
 //function : HashCode
 //purpose  : 
@@ -104,6 +106,8 @@ void DriverSTL_R_SMDS_Mesh::SetIsCreateFaces( const bool theIsCreate )
 
 Driver_Mesh::Status DriverSTL_R_SMDS_Mesh::Perform()
 {
+  Kernel_Utils::Localizer loc;
+
   Status aResult = DRS_OK;
 
   TCollection_AsciiString aFileName( (char *)myFile.c_str() );
index e4e27004259164bd0051490ab9138ac52c490eed..cf893a3271c69c732263714392fb3380d383d9cc 100644 (file)
 #include "SMESH_TypeDefs.hxx"
 
 #include <OSD_File.hxx>
-//#include <OSD_FromWhere.hxx>
 #include <OSD_Path.hxx>
 #include <OSD_Protection.hxx>
-//#include <OSD_SingleProtection.hxx>
 #include <TCollection_AsciiString.hxx>
 #include <gp_XYZ.hxx>
+#include <Basics_Utils.hxx>
 
 #include "utilities.h"
 
@@ -59,6 +58,8 @@ void DriverSTL_W_SMDS_Mesh::SetIsAscii( const bool theIsAscii )
 
 Driver_Mesh::Status DriverSTL_W_SMDS_Mesh::Perform()
 {
+  Kernel_Utils::Localizer loc;
+
   Status aResult = DRS_OK;
 
   if ( !myMesh ) {
index 426538639b1ec091582033a0c2c2d3cb72b6b937..709da5f90554452562d7add2ecd1306b1790b422 100644 (file)
@@ -60,6 +60,7 @@ libMeshDriverSTL_la_CPPFLAGS = \
 libMeshDriverSTL_la_LDFLAGS  = \
        ../Driver/libMeshDriver.la \
        ../SMDS/libSMDS.la \
+       $(KERNEL_LDFLAGS) -lSALOMEBasics \
        $(CAS_LDPATH) -lTKernel -lTKSTL -lTKTopAlgo -lTKMesh
 
 STL_Test_CPPFLAGS = \