true if the coordinates are validTriangle.getUv
bool getUv(graphene.point3_d.Point3D p, graphene.vec2.Vec2 uvA, graphene.vec2.Vec2 uvB, graphene.vec2.Vec2 uvC, out graphene.vec2.Vec2 res)Computes the UV coordinates of the given point p.
The point p must lie on the same plane as the triangle t; if the point is not coplanar, the result of this function is undefined. If p is null, the point will be set in (0, 0, 0).
The UV coordinates will be placed in the res vector:
res.x = ures.y = v
See also: [graphene.triangle.Triangle.getBarycoords]
Parameters
p | a #graphene_point3d_t |
uvA | the UV coordinates of the first point |
uvB | the UV coordinates of the second point |
uvC | the UV coordinates of the third point |
res | a vector containing the UV coordinates of the given point p |