mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-29 02:50:33 +05:00
Bug IPAL21435 - TC5.1.3: incorrect mapping of the object from imported UNV file in the 3D Viewer
This commit is contained in:
parent
bfe976c58e
commit
ad1014d43c
@ -49,6 +49,7 @@ DriverUNV_R_SMDS_Mesh::~DriverUNV_R_SMDS_Mesh()
|
|||||||
|
|
||||||
Driver_Mesh::Status DriverUNV_R_SMDS_Mesh::Perform()
|
Driver_Mesh::Status DriverUNV_R_SMDS_Mesh::Perform()
|
||||||
{
|
{
|
||||||
|
UNV::Localizer loc;
|
||||||
Status aResult = DRS_OK;
|
Status aResult = DRS_OK;
|
||||||
std::ifstream in_stream(myFile.c_str());
|
std::ifstream in_stream(myFile.c_str());
|
||||||
try{
|
try{
|
||||||
|
@ -57,6 +57,7 @@ namespace{
|
|||||||
|
|
||||||
Driver_Mesh::Status DriverUNV_W_SMDS_Mesh::Perform()
|
Driver_Mesh::Status DriverUNV_W_SMDS_Mesh::Perform()
|
||||||
{
|
{
|
||||||
|
UNV::Localizer loc;
|
||||||
Status aResult = DRS_OK;
|
Status aResult = DRS_OK;
|
||||||
std::ofstream out_stream(myFile.c_str());
|
std::ofstream out_stream(myFile.c_str());
|
||||||
try{
|
try{
|
||||||
|
@ -35,6 +35,22 @@
|
|||||||
namespace UNV{
|
namespace UNV{
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
|
class MESHDRIVERUNV_EXPORT Localizer
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
Localizer()
|
||||||
|
{
|
||||||
|
myCurLocale = setlocale(LC_NUMERIC, 0);
|
||||||
|
setlocale(LC_NUMERIC, "C");
|
||||||
|
}
|
||||||
|
~Localizer()
|
||||||
|
{
|
||||||
|
setlocale(LC_NUMERIC, myCurLocale.c_str());
|
||||||
|
}
|
||||||
|
private:
|
||||||
|
std::string myCurLocale;
|
||||||
|
};
|
||||||
|
|
||||||
class MESHDRIVERUNV_EXPORT PrefixPrinter{
|
class MESHDRIVERUNV_EXPORT PrefixPrinter{
|
||||||
static int myCounter;
|
static int myCounter;
|
||||||
public:
|
public:
|
||||||
|
Loading…
Reference in New Issue
Block a user