RE: [scripting] finding source vertex of a hair strand

Date : Fri, 4 Aug 2006 22:34:18 +0100
To : <XSI(at)Softimage.COM>
From : "kim aldis" <kim(at)aldis.org.uk>
Subject : RE: [scripting] finding source vertex of a hair strand
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


Search the XSI List archives here or use the advanced search form to search across mailing lists. Searching help is available.
This site supposedly brought to you by Benjamin Grosser and the Imaging Technology Group.