It's an ordering thing with polygon nodes, Greg:-
For each face
For each node in face
If ( vertex pointed to by node hasn't been visited )
Strand index ++
If that makes sense.
I'm at the airport right now (groan) but I've some code that I can dig out
when I'm back in the UK. Sometime over the weekend.
> -----Original Message-----
> From: owner-xsi(at)Softimage.COM [mailto:owner-xsi(at)Softimage.COM] On
> Behalf Of Greg Smith
> Sent: 04 August 2006 22:05
> To: XSI_MailingList
> Subject: [scripting] finding source vertex of a hair strand
>
> I'm running into a little bit of a problem with hair. I've been trying
> to figure out what is the best way to find what vertex a hair strand is
> emitted from, since there doesn't seem to be a straight forward
> approach in the first place. What has worked for me up to this point is
> using the GetClosestLocations method from the hair emitter object,
> using the position data from the first point on each strand of hair.
> this work if your hair is projecting out perfectly perpendicular.
> However, in cases where the hair is styled and the first point of the
> hair strand resides closer to a neighboring vertex on the emission
> object, the method does not return the desired positional data.
> So I am curious is there indeed a way to fetch which vertex a hair
> strand is emitted from regardless of how that hair has been styled.
>
> Thanks,
>
> Greg
>
> ---
> Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in
> body:
> unsubscribe xsi
>
---
Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body:
unsubscribe xsi