noc2 Posted December 31, 2018 Share Posted December 31, 2018 (edited) Hi; I've run into a strange problem. I'm trying to get the dot-product of vectors between a geo's points and it's neighboring points 0 and 1. In the screen-shot you can see my vex code. I checked and double-checked and the code seems quite ok to me, yet the dot-product I'm getting is completely off although the edge directions are all straight. The direction vectors between the points and their neighbors look way off. I really don't know why this is happening, any help would be greatly appreciated. Cheers; AJ CORNERS_DOTP.hip Edited December 31, 2018 by noc2 Quote Link to comment Share on other sites More sharing options...
MENOZ Posted December 31, 2018 Share Posted December 31, 2018 you have normalize(@ptnum - p0) @ptnum is the integer id of the point, not its position. Quote Link to comment Share on other sites More sharing options...
noc2 Posted December 31, 2018 Author Share Posted December 31, 2018 1 hour ago, MENOZ said: you have normalize(@ptnum - p0) @ptnum is the integer id of the point, not its position. I can't believe that escaped me and most importantly, what was I thinking by God Thanx so much Menoz. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.