You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Say I have SurfacePointp1 and p2 defined in two edges of the same triangular face. How can I compute a SurfacePointp that lies in the face and it is half-way between p1 and p2?
I can use SurfacePoint::interpolate(geometry.vertexPositions) to compute the 3D coordinate vector, but how can I translate the mid point back to the face's barycentric coordinates so that I can initialize SurfacePoint p(faceId, faceCoords);?
The text was updated successfully, but these errors were encountered:
Say I have
SurfacePoint
p1 and p2 defined in two edges of the same triangular face. How can I compute aSurfacePoint
p that lies in the face and it is half-way between p1 and p2?I can use
SurfacePoint::interpolate(geometry.vertexPositions)
to compute the 3D coordinate vector, but how can I translate the mid point back to the face's barycentric coordinates so that I can initializeSurfacePoint p(faceId, faceCoords);
?The text was updated successfully, but these errors were encountered: