# PN triangle, barycentric lookup

This topic is 540 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

Anybody know where I can find an implementation of PN Triangle code that can look up a point on a PN Triangle using barycentric coords without actually doing any tessellation?

ie - something that turns a PN triangle into a patch, and then some sort of translation from bary to patch coords?

##### Share on other sites

This paper here: https://pdfs.semanticscholar.org/a9a7/f783efa57d2486612d51e6d78c4a267559eb.pdf details a few useful ideas like how:

1. Given the 3 points and 3 normals of a PN Triangle, to generate the 7 Bezier control points.

2. Using those points we can create a function b(u,v,w) of the curve given where for u,v,w their sum is < 1 and they are all greater than 0.

I'm not positive that this u,v,w translates directly into barycentric coordinates, but this paper should hopefully give you some useful info.

1. 1
2. 2
3. 3
Rutin
15
4. 4
5. 5

• 9
• 10
• 9
• 9
• 11
• ### Forum Statistics

• Total Topics
633691
• Total Posts
3013349
×