diff options
Diffstat (limited to 'Build/source/utils/asymptote/prc/writePRC.cc')
-rw-r--r-- | Build/source/utils/asymptote/prc/writePRC.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Build/source/utils/asymptote/prc/writePRC.cc b/Build/source/utils/asymptote/prc/writePRC.cc index 5f62ea6731e..5c5b6875b3d 100644 --- a/Build/source/utils/asymptote/prc/writePRC.cc +++ b/Build/source/utils/asymptote/prc/writePRC.cc @@ -764,8 +764,10 @@ void PRCPolyWire::serializePolyWire(PRCbitStream &pbs) void PRCGeneralTransformation3d::serializeGeneralTransformation3d(PRCbitStream &pbs) const { WriteUnsignedInteger (PRC_TYPE_MISC_GeneralTransformation) - for (uint32_t i=0; i<16; i++) - WriteDouble(m_coef[i]); + // Like Fortran, PRC uses transposed (column-major) format! + for (int j=0;j<4;j++) + for (int i=0;i<4;i++) + WriteDouble(mat[i][j]); } void PRCCartesianTransformation3d::serializeCartesianTransformation3d(PRCbitStream &pbs) const |