Surface Length to Domain parameter

   1910   0   1
User Avatar
Member
9 posts
Joined: 12月 2013
Offline
Is there a quick way to do an arc length evaluation of a position on the surface - similar to uniform texture coordinate construction (uniformTexture()?)?

At the moment I have to do a workaround by constructing a curve and then using unitLengthToUnitDomain(); for example getting a position using curve u(s) parameter:

float unit_u = curve->unitLengthToUnitDomain(unit_s);
surface->evaluate(unit_u * num_segments, v, pos);
  • Quick Links