geometry-central icon indicating copy to clipboard operation
geometry-central copied to clipboard

Bug..fix?

Open lakshmipathyarjun6 opened this issue 4 years ago • 4 comments

It seems like the log map computation did not actually take the orientation of a tangent vector into account. Tried this out with the vector heat demo and this appears to adjust with the correct tangent vector propagation...but not entirely sure why the sign inversion was necessary / why the sweep started from the other side if the real axis (presumably) is oriented in the tv direction.

Adding defaulting to not make other stuff blow up :)

Feel free to reject if unwarranted!

lakshmipathyarjun6 avatar Apr 26 '21 20:04 lakshmipathyarjun6

Thanks for submitting! This seems like a reasonable extension to me.

I think the sign inversion should not actually be needed. You might be getting tricked by the Polyscope visualization in the vector heat demo. There, the "branch cut" discontinuity in the angular color ends up at the -x axis, since it's computed via atan.

nmwsharp avatar May 07 '21 15:05 nmwsharp

eh...why it not like 1i? and ah makes sense - will remove the inversion and resubmit

lakshmipathyarjun6 avatar May 07 '21 16:05 lakshmipathyarjun6

I think i is not defined as a constant on all platforms... std::complex<double>{real_part, imag_part} always works

nmwsharp avatar May 07 '21 16:05 nmwsharp

ah. got it

lakshmipathyarjun6 avatar May 07 '21 18:05 lakshmipathyarjun6