nilsoncardososa Posted February 26, 2019 Share Posted February 26, 2019 (edited) Hello, I need to create a point in the center of the primitive, this I was able to do. But now I need this point to have the same normal as the primitive, how can I transfer this information to the point. Attached the hip file center.hiplc Edited February 26, 2019 by nilsoncardososa Quote Link to comment Share on other sites More sharing options...
Sepu Posted February 26, 2019 Share Posted February 26, 2019 There is a better way, I'm sure of it but this works. center_fix.hiplc Quote Link to comment Share on other sites More sharing options...
anim Posted February 26, 2019 Share Posted February 26, 2019 int pt = addpoint(0,@P); setpointattrib(0, "N", pt, v@N); removeprim(0,@primnum,1); or if you want interpolated N instead of geometric N int pt = addpoint(0,@P); vector N = primuv(0, "N", @primnum, {.5, .5, 0}); setpointattrib(0, "N", pt, N); removeprim(0,@primnum,1); Quote Link to comment Share on other sites More sharing options...
nilsoncardososa Posted February 27, 2019 Author Share Posted February 27, 2019 Excellent, thank you very much 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.