Skip to content

Commit

Permalink
IO_OCC: fix weird "mirroring" after VRML loading
Browse files Browse the repository at this point in the history
  • Loading branch information
HuguesDelorme committed Apr 11, 2024
1 parent edd91b3 commit a539521
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/io_occ/io_occ_vrml_reader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,14 @@ namespace IO {
OccVrmlReader::OccVrmlReader()
: OccBaseMeshReader(m_reader)
{
// Fixes weird "mirroring" of the loaded model
m_reader.SetFileLengthUnit(1.);
#if 0
double scaleFactor = 1.;
if (!XCAFDoc_DocumentTool::GetLengthUnit(doc, scaleFactor))
scaleFactor = UnitsMethods::GetCasCadeLengthUnit();
m_reader.SetSystemLengthUnit(scaleFactor);
#endif
}

std::unique_ptr<PropertyGroup> OccVrmlReader::createProperties(PropertyGroup* parentGroup)
Expand Down

0 comments on commit a539521

Please sign in to comment.