I’m trying to determine if an edge of an occ shape is on a given axis (occ.Vec and occ.Pnt) by iterating over the vertices and checking if each point is on the axis, but I can’t find how to do a normalize and cross product using occ.Vec
using the built-in functions. Are they not available in ngsolve?
__rmul__
with scalar is implemented, so
vec = 1/Norm(vec) * vec
should work.
cross product you need to implement manually, using vec.x, vec.y, vec.z