Winding
The winding
number is intimately connected to the sideof
function, which is used more often in applications.
Meshes.winding
— Functionwinding(points, object)
Generalized winding number of points
with respect to the geometric object
.
References
- Barill et al. 2018. Fast winding numbers for soups and clouds
- Jacobson et al. 2013. Robust inside-outside segmentation using generalized winding numbers
- Oosterom, A. & Strackee, J. 1983. The Solid Angle of a Plane Triangle
points = [Point(0, 0), Point(0.2, 0.2), Point(2, 1)]
polygon = Triangle((0, 0), (1, 0), (0, 1))
winding(points, boundary(polygon))
3-element Vector{Float64}:
0.25
1.0
0.0