ghang Posted November 16, 2009 Share Posted November 16, 2009 Hi, I would like to know how to make a point's normals pointing to another point as follow image, i would like to let the point number 0 's normals pointing to point number 1. ps: this 2 point are create by different ADD SOP. i use POINT SOP and select add normals with expression as bellow (-point("../point1",0,"P",0))+point("../point2",0,"P",0) && (-point("../point1",0,"P",1))+point("../point2",0,"P",1) && (-point("../point1",0,"P",2))+point("../point2",0,"P",2) but the angel of pointing was not exactly correct. ========================================== question 2: sorry for 1 more question, i would like to know how to mesure the 2 point distance, i would like to use it as my object scale value. i search in the help context with "point distance, point to point distance" but i only get point to primitive distance solution. Thanks Very very very much Quote Link to comment Share on other sites More sharing options...
Peter Quint Posted November 16, 2009 Share Posted November 16, 2009 An easier way to do this is using the second input of the point sop. Connect the point you want normals to point towards to the second input, and then select add normal and set its parameters to $TX2 - $TX, $TY2 - $TY, $TZ2 - $TZ. The $TX etc variables are the position of your current point, $TX2 etc the position of whats connected to the second input. Quote Link to comment Share on other sites More sharing options...
wigal123 Posted November 16, 2009 Share Posted November 16, 2009 To get the distance between the 2 points you can add an attribute after the step Peter suggested. Create a float point attribute and put: length($NX,$NY,$NZ) into the first value. this will return the distance based on the normal you created in the previous step. Hope that helps. Quote Link to comment Share on other sites More sharing options...
Stalkerx777 Posted November 17, 2009 Share Posted November 17, 2009 Well the easiest way is to add PolyFrame SOP, set style to "First Edge", entity "points", and Tangent Name set to N.Thats for the curve. For distance use wigal123 method , or in VOPS there is a Distance vop...... Quote Link to comment Share on other sites More sharing options...
ghang Posted November 18, 2009 Author Share Posted November 18, 2009 thanks very much , is really helpful !!!! 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.