mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0029978: Data Exchange, macOS - the result of reading some entity from STEP looks odd
Code is optimized manually to avoid bug of XCode 9.4 compiler optimizer
This commit is contained in:
@@ -157,11 +157,10 @@ void gp_Trsf::SetTransformation (const gp_Ax3& FromA1,
|
||||
shape = gp_CompoundTrsf;
|
||||
scale = 1.0;
|
||||
// matrix from XOY ToA2 :
|
||||
matrix.SetCol (1, ToA2.XDirection().XYZ());
|
||||
matrix.SetCol (2, ToA2.YDirection().XYZ());
|
||||
matrix.SetCol (3, ToA2.Direction().XYZ());
|
||||
matrix.SetRows (ToA2.XDirection().XYZ(),
|
||||
ToA2.YDirection().XYZ(),
|
||||
ToA2. Direction().XYZ());
|
||||
loc = ToA2.Location().XYZ();
|
||||
matrix.Transpose();
|
||||
loc.Multiply (matrix);
|
||||
loc.Reverse ();
|
||||
|
||||
@@ -183,11 +182,10 @@ void gp_Trsf::SetTransformation (const gp_Ax3& A3)
|
||||
{
|
||||
shape = gp_CompoundTrsf;
|
||||
scale = 1.0;
|
||||
loc = A3.Location().XYZ();
|
||||
matrix.SetCols (A3.XDirection().XYZ(),
|
||||
matrix.SetRows (A3.XDirection().XYZ(),
|
||||
A3.YDirection().XYZ(),
|
||||
A3. Direction().XYZ());
|
||||
matrix.Transpose();
|
||||
loc = A3.Location().XYZ();
|
||||
loc.Multiply (matrix);
|
||||
loc.Reverse ();
|
||||
}
|
||||
|
Reference in New Issue
Block a user