Integrating with existing code from Robust Inside-Outside Segmentation using Generalized Winding Numbers.
Project URL: libigl
The original formula:
The original source code:
The modified source code:
I❤️LA source code:
from trigonometry: atan2
𝐚 = `vᵢ` - p
𝐛 = `vⱼ` - p
𝐜 = `vₖ` - p
a = ‖𝐚‖
b = ‖𝐛‖
c = ‖𝐜‖
atan2(|[𝐚 𝐛 𝐜]|, (abc+(𝐚⋅𝐛)c+(𝐛⋅𝐜)a+(𝐜⋅𝐚)b))/(2π)
where
`vᵢ` ∈ ℝ^3
`vⱼ` ∈ ℝ^3
`vₖ` ∈ ℝ^3
p ∈ ℝ^3
I❤️LA LaTeX output: