I need to draw a prism between 2 point. So I have defined a Region like this:
Region r1 = Region.CreateRectangle(Model.Width, Model.Height);
r1.Translate(point1);
Now I need to rotate r1 to face point2 and then do:
r1.ExtrudeAsMesh(distanceBetweenPoints, 0, Mesh.natureType.Plain);
But Eyeshot doesn't let me change the plane normal of r1 directly. Is there any way to achieve this (other than doing the math by hand)?
Hate to answer my own question, But I solved it like this: