open-discussion > RE: Problem with SPHARM-PDM on new dataset!
Nov 4, 2016  03:11 PM | Martin Styner
RE: Problem with SPHARM-PDM on new dataset!
magNormDir computes the dot product between the provided vector field and the local normal vectors, i.e:
MeshMath a.meta -magNormDir difference.txt
=>
1. proj_i = dot(difference_i, norm(a_i)) 
2. output_i = abs(proj_i) * sign(proj_i)  
at the i-th vertex (the normal is of unit length)

The code for this is here:
https://github.com/NIRALUser/SPHARM-PDM/...
look at lines 3668-3683 (warning, this is not nicely designed code, but rather quiet ugly, historically accumulated code)


Martin

Originally posted by Nazanin M:
Dear Martin,

Thanks for your response. That's a great news! Hope it gets released soon.

I just have one quick question regarding -magNormDir function in MeshMath. From what I understood, it calculates the signed magnitude of projection of difference vector to another vector. So for example if we have:

MeshMath a.meta -magNormDir difference.txt

then the mathematics behind it would be :

dot_product(difference, a)/norm(a)

Is this correct? I have compared the results of MeshMath, and my own calculations using the above formula but they are not the same.. Would you please let me know where I'm making a mistake?

I really appreciate it.

Thanks,

Threaded View

TitleAuthorDate
Nazanin M Sep 27, 2016
Nazanin M Nov 4, 2016
Martin Styner Nov 10, 2016
Nazanin M Dec 26, 2016
Martin Styner Jan 2, 2017
Nazanin M Jan 2, 2017
Martin Styner Jan 5, 2017
Nazanin M Jan 11, 2017
Martin Styner Jan 17, 2017
Nazanin M Jan 17, 2017
Nazanin M Jan 17, 2017
Nazanin M Nov 2, 2016
RE: Problem with SPHARM-PDM on new dataset!
Martin Styner Nov 4, 2016
Antoine Bouyeure Oct 30, 2016
Martin Styner Oct 31, 2016
D J Nov 1, 2016
Antoine Bouyeure Nov 1, 2016
Martin Styner Nov 1, 2016
Antoine Bouyeure Oct 29, 2016
Nazanin M Oct 30, 2016
Martin Styner Oct 31, 2016