|
Objo,
1. First off thank you for all of your hardwork, helixtoolkit is truly amazing.
2. I believe I have found a bug in the FindAnyPerpendicular function of the Vector3DExtensions class. When called by AddTube the function can sometimes bombs out due to the Vector3D n being comprised of very small numbers and so the CrossProduct returns
nan. I was able to resolve this issue by adding the line
n.Normalize();
as the first line of the FindAnyPerpendicular function. This does leave n normalized, so it might be better to create a copy of n first and normalize the copy and use that for calculating the crossproduct.
3. I was also wondering if there is a way to force the a helixviewport to repaint or refresh. I have found that when I make changes and the mouse isn't over the toolkit the changes in my models are not shown until I mouse over the helixviewport.
Thanks,
Jordan
|