Have you taken a look at barycentric coordinates yet ?  there are tons of
examples out there.

http://en.wikipedia.org/wiki/Barycentric_coordinates_(mathematics)


hth, -d

On Thu, Apr 2, 2009 at 10:31 AM, Thom Wickes <[email protected]> wrote:

>
> Ok, I need to find a way of distinguishing whether points sit inside
> or outside a mesh - I have an idea how to do it with convex meshes,
> but not with non-convex.
>
> so in this photo
>
> <img src ="http://farm4.static.flickr.com/
> 3278/3406312071_8ca8aa4df8_o.jpg<http://farm4.static.flickr.com/%0A3278/3406312071_8ca8aa4df8_o.jpg>
> ">
>
> I want to select the locators that don't penetrate the mesh surface,
> so all the ones outside and inside the cup, but not the ones under the
> surface.
>
> I have a feeling this involves some ray casting style stuff and I had
> a look at the MFnMesh class, but I don't really know any method of
> doing this, let alone how to implament it.
>
> Any help/suggestions would be greatly appreciated.
>
> Thanks
>
> >
>


-- 
When things get too complicated, it sometimes makes sense to stop and
wonder: Have I asked the right question?
-Enrico Bombieri

--~--~---------~--~----~------------~-------~--~----~
http://groups.google.com/group/python_inside_maya
-~----------~----~----~----~------~----~------~--~---

Reply via email to