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);
Surface Length to Domain parameter
1888 0 1- Mike Vasiljevs
- Member
- 9 posts
- Joined: Dec. 2013
- Offline
-
- Quick Links