Commit 35244f8f authored by pshriwise's avatar pshriwise Committed by vijaysm
Browse files

Updates to the Matrix3 CartVect constructor to maintain expected behavior for...

Updates to the Matrix3 CartVect constructor to maintain expected behavior for outside code. Internal calls to this constructor have been adjusted accordingly.
parent 5e75651c
......@@ -127,7 +127,7 @@ OrientedBox::OrientedBox( const CartVect axes_in[3], const CartVect& mid )
: center(mid)
{
axes = Matrix3( axes_in[0], axes_in[1], axes_in[2] );
axes = Matrix3( axes_in[0], axes_in[1], axes_in[2], false );
order_axes_by_length( axes_in[0].length(),axes_in[1].length(),axes_in[2].length() );
......
......@@ -333,7 +333,7 @@ public:
inline Matrix3( const Vector & row0,
const Vector & row1,
const Vector & row2,
const bool isRow=false) {
const bool isRow=true) {
if (isRow) {
_mat << row0[0], row0[1], row0[2],
row1[0], row1[1], row1[2],
......
......@@ -67,7 +67,7 @@ const CartVect rotax2 = unit( CartVect( 1.0, 1.0, 0.0 ) * CartVect( 1.0,-1.0, 1.
const CartVect rotax[3] = {rotax0, rotax1, rotax2};
const OrientedBox rotbox_cv( rotax, origin );
const Matrix3 rotaxes(rotax0, rotax1, rotax2, true);
const Matrix3 rotaxes(rotax0, rotax1, rotax2);
const OrientedBox rotbox( rotaxes, origin );
......@@ -1274,7 +1274,7 @@ void test_build_from_tri()
// compute range along each box axis for input vertices
const Matrix3 axis ( box.scaled_axis(0),
box.scaled_axis(1),
box.scaled_axis(2) );
box.scaled_axis(2), false );
double min[3], max[3];
CartVect v = CartVect(coords) - box.center;
min[0] = max[0] = box.scaled_axis(0) % v;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment