Apologies, it's been a while - I want to drive point color (using a point SOP) using the curvature point attribute generated by the measure SOP, but I can't remember how to move the data over to the point SOP in a useable fashion. I think that it's a nomenclature issue that I'm struggling with.
Edit:
Nevermind, solved:
point(“../measure”, $PT, “curvature”, 0)
Like I said, it's been awhile.
Use curvature to drive point color?
7392 7 1- stu
- Member
- 246 posts
- Joined: July 2005
- Offline
- old_school
- Staff
- 2540 posts
- Joined: July 2005
- Offline
- stu
- Member
- 246 posts
- Joined: July 2005
- Offline
Good tip, thanks Jeff! I briefly looked at the newer Attribute Wrangle SOP before I chickened out and went with old faithful.
jeff
Wrangle it!
All the kids these days are using Attribute Wrangle SOP to mangle attributes about:
@Cd = @curvature;
or
@Cd = fit(@curvature, 0, 50, 0, 1);
as curvature values can get quite large.
- stu
- Member
- 246 posts
- Joined: July 2005
- Offline
- stu
- Member
- 246 posts
- Joined: July 2005
- Offline
- jbudsberg
- Member
- 92 posts
- Joined: Aug. 2010
- Offline
is your geometry closed? if so, you build a level set, compute curvature via vdb analysis (which yields positive/negative values per convex/concave), then transfer the data back to your geo.
if your geometry is not closed, you have the problem of the same feature being concave on one side, yet convex on the other. however, if you have coherent normals, you can work something up in a vop that inspects your normal and your neighbors to get the sign of the curvature. with that, in conjunction with the measure sop, you should be good to go.
if your geometry is not closed, you have the problem of the same feature being concave on one side, yet convex on the other. however, if you have coherent normals, you can work something up in a vop that inspects your normal and your neighbors to get the sign of the curvature. with that, in conjunction with the measure sop, you should be good to go.
- stu
- Member
- 246 posts
- Joined: July 2005
- Offline
- raparicio0
- Member
- 10 posts
- Joined: June 2018
- Offline
-
- Quick Links