Hey I'm pretty new to houdini and am trying to figure out what I think is probably a pretty basic setup.
If I have pointA and pointB and I calculate the normal from pointA to pointB as
vector posA = point(0, “P”, pointA);
vector posB = point(0, “P”, pointB);
vector dir = normalize(posA - posB);
this gives me the normal. how could I then snap that normal to the nearest 45 degree angle in x,y,z?
I hope what I'm asking makes sense. thanks