Question: What is the simplest way to get the angle between two curves Python
I'm looking for the simplest way to get the angle between two curves as well as two surfaces at a given point in Python, I was hoping Geometry.Tangents would be usefull but I require the tangent in vector and not pixel space to do the dot product? this is the code i have so far?
for point in gmsh.model.getEntities(dim=0):
curves, _ = gmsh.model.getAdjacencies(point[0], point[1])
for curve_a, curve_b in combinations(curves,2):
print(f"Point: {point}, curve_a: {curve_a}, curve_b: {curve_b}")
_, points_a = gmsh.model.getAdjacencies(1, curve_a)
_, points_b = gmsh.model.getAdjacencies(1, curve_b)
coords_a = [gmsh.model.getValue(dim=1, tag=p, parametricCoord=[]) for p in points_a]
coords_b = [gmsh.model.getValue(dim=1, tag=p, parametricCoord=[]) for p in points_b]