From e8cdb9e6167e4d96c6d75daba427851a7e4fe138 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Mon, 19 Aug 2019 13:56:33 +0200 Subject: [PATCH] product:: fixed straightDownSeek --- hypgraph.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/hypgraph.cpp b/hypgraph.cpp index 396f208e..1ec8c5ba 100644 --- a/hypgraph.cpp +++ b/hypgraph.cpp @@ -1261,8 +1261,10 @@ EX void spinEdge(ld aspd) { else if((WDIM == 2 || prod) && GDIM == 3 && vid.fixed_yz && !CAP_ORIENTATION) { aspd = 999999; if(straightDownSeek) { - if(straightDownPoint[0]) - downspin = models::rotation * degree - atan2(straightDownPoint[0], straightDownPoint[1]); + auto sdp = straightDownPoint; + if(prod) sdp = LPV * product::inverse_exp(sdp); + if(sdp[0]) + downspin = models::rotation * degree - atan2(sdp[0], sdp[1]); } else { if(LPV[0][2])