The curvature attribute of the measure sop, doesn't it calculate the curvature of the entire surface; and if so, how do I control the curvature of the surface on an particular axis ?
This is my dirty code, although it's not giving me float values then applying that to the Cd attribute it is behaving like a boolean.
Created a tool a little while back that calculates normalized curvature of a mesh, concave, convex or both.
You can use the tool or the measure sop and then multiply it by the absolute dot product of the point normal and the world axis. It would go as follows:
float curvature = calculate this either with measure or with my tool; float curvatureXaxis = abs(dot(@N,{1,0,0})) * curvature;
@Cd = curvatureXaxis; // for a quick visualization
You can remap the dot product for further control of the mask.
ch() normally takes one argument, the name of the channel. The second argument in the two argument signature control the time of the evaluation. Are you trying to access different points in time of an animation channel?
@trzanko - I got it working; thanks to your code. Sorry there was brain fart the other day; I thought I'd update you and let you know thanks for the help.
Christopher_R @trzanko - I got it working; thanks to your code. Sorry there was brain fart the other day; I thought I'd update you and let you know thanks for the help.