This repository has been archived on 2023-10-09. You can view files and clone it, but cannot push or open issues or pull requests.
Files
blender-archive/source/blender/python/generic
Campbell Barton fde4686d77 barycentric transform utility geometry function.
From 2 triangles and 1 point, the relative position between the point and the first triangle is applied to the second triangle to find the target point.
the barycentric weights are calculated in 2D space with a signed area so values outside the triangle bounds are supported.

wrapped by python:
 pt_to = Geometry.BarycentricTransform(pt_from, t1a, t1b, t1c, t2a, t1b, t1c)

NOTE: 
- moved some barycentric weight functions out of projection painting into the math lib.
- ended up making some of the math functions use const args.
TODO:
- support exceptional cases. zero area tries and similar.
2009-12-27 01:32:58 +00:00
..
2009-08-15 16:36:25 +00:00
2009-08-14 17:16:16 +00:00
2009-11-10 20:43:45 +00:00
2009-08-10 00:07:34 +00:00
2009-08-10 00:07:34 +00:00
2009-11-19 17:04:28 +00:00
2009-11-16 22:21:39 +00:00
2009-08-10 15:39:11 +00:00
2009-11-10 20:43:45 +00:00
2009-08-10 00:07:34 +00:00
2009-06-30 00:42:17 +00:00
2009-11-10 20:43:45 +00:00
2009-08-10 00:07:34 +00:00
2009-11-30 22:32:04 +00:00
2009-08-10 00:07:34 +00:00