RE: accessing guide hairs control points in C++

To : XSI(at)Softimage.COM
From : owner-xsi(at)Softimage.COM [mailto:owner-xsi(at)Softimage.COM]On Behalf
From : owner-xsi(at)Softimage.COM [mailto:owner-xsi(at)Softimage.COM]On Behalf
Subject : RE: accessing guide hairs control points in C++
Subject : RE: accessing guide hairs control points in C++
From: owner-xsi(at)Softimage.COM [mailto:owner-xsi(at)Softimage.COM] On Behalf
Of Martin Barrette
Sent: 29-December-2005 20:58
To: XSI(at)Softimage.COM
Subject: RE: accessing guide hairs control points in C++
Primitive.Geometry.Points.PositionArray will return you only the points
position for the guide hairs.
=20
Cheers,
Martin
=20
________________________________

From: owner-xsi(at)Softimage.COM [mailto:owner-xsi(at)Softimage.COM] On Behalf
Of Mathieu Leclaire
Sent: Thursday, December 29, 2005 3:56 PM
To: XSI(at)Softimage.COM
Subject: accessing guide hairs control points in C++
Hi,
=20
I'm doing a custom operator and I need to access the guide hairs control
points positions. From what I can see from the C++ API, there's the
HairPrimitive from whom we can access the CRenderHairAccessor but that's
the information of all the rendered hairs. I have to loop through every
hair points to make proximity calculations. I just don't need to loop
through every hair, I just want to access the guide hairs to optimize
the process. But I can't find where to access only those. Can anyone
help me figure out how to access that information?
=20
Thanks
=20
Mathieu Leclaire
R&D Programmer
Hybride Technologies

------_=_NextPart_001_01C6161B.7FAAA646
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns=3D"http://www.w3.org/TR/REC-html40"; xmlns:v =3D=20
"urn:schemas-microsoft-com:vml" xmlns:o =3D=20
"urn:schemas-microsoft-com:office:office" xmlns:w =3D=20
"urn:schemas-microsoft-com:office:word"><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii">
<META content=3DWord.Document name=3DProgId>
<META content=3D"MSHTML 6.00.2900.2668" name=3DGENERATOR>
<META content=3D"Microsoft Word 9" name=3DOriginator><LINK=20
href=3D"cid:filelist.xml(at)01C615EF.B5C76AF0" rel=3DFile-List><LINK=20
href=3D"cid:editdata.mso(at)01C615EF.B5C76AF0" rel=3DEdit-Time-Data><!--[if =
!mso]>
<STYLE>v\:* {
	BEHAVIOR: url(#default#VML)
}
o\:* {
	BEHAVIOR: url(#default#VML)
}
w\:* {
	BEHAVIOR: url(#default#VML)
}
.shape {
	BEHAVIOR: url(#default#VML)
}
</STYLE>
<![endif]--><!--[if gte mso 9]><xml>
 <o:DocumentProperties>
  <o:Revision>1</o:Revision>
  <o:TotalTime>22</o:TotalTime>
  <o:Created>2005-12-29T20:32:00Z</o:Created>
  <o:Pages>2</o:Pages>
  <o:Words>372</o:Words>
  <o:Characters>2125</o:Characters>
  <o:Company>Hybride Technologies</o:Company>
  <o:Lines>17</o:Lines>
  <o:Paragraphs>4</o:Paragraphs>
  <o:CharactersWithSpaces>2609</o:CharactersWithSpaces>
  <o:Version>9.3821</o:Version>
 </o:DocumentProperties>
 <o:OfficeDocumentSettings>
  <o:DoNotRelyOnCSS/>
 </o:OfficeDocumentSettings>
</xml><![endif]--><!--[if gte mso 9]><xml>
 <w:WordDocument>
  <w:Zoom>0</w:Zoom>
  <w:DocumentKind>DocumentEmail</w:DocumentKind>
  <w:EnvelopeVis/>
 </w:WordDocument>
</xml><![endif]-->
<STYLE>(at)font-face {
	font-family: Tahoma;
}
(at)page Section1 {size: 8.5in 11.0in; margin: 1.0in 1.25in 1.0in 1.25in; =
mso-header-margin: .5in; mso-footer-margin: .5in; mso-paper-source: 0; }
P.MsoNormal {
	FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"; =
mso-style-parent: ""; mso-pagination: widow-orphan; =
mso-fareast-font-family: "Times New Roman"; mso-bidi-language: HE
}
LI.MsoNormal {
	FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"; =
mso-style-parent: ""; mso-pagination: widow-orphan; =
mso-fareast-font-family: "Times New Roman"; mso-bidi-language: HE
}
DIV.MsoNormal {
	FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"; =
mso-style-parent: ""; mso-pagination: widow-orphan; =
mso-fareast-font-family: "Times New Roman"; mso-bidi-language: HE
}
A:link {
	COLOR: blue; TEXT-DECORATION: underline; text-underline: single
}
SPAN.MsoHyperlink {
	COLOR: blue; TEXT-DECORATION: underline; text-underline: single
}
A:visited {
	COLOR: blue; TEXT-DECORATION: underline; text-underline: single
}
SPAN.MsoHyperlinkFollowed {
	COLOR: blue; TEXT-DECORATION: underline; text-underline: single
}
P.MsoAutoSig {
	FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"; =
mso-pagination: widow-orphan; mso-fareast-font-family: "Times New =
Roman"; mso-bidi-language: HE
}
LI.MsoAutoSig {
	FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"; =
mso-pagination: widow-orphan; mso-fareast-font-family: "Times New =
Roman"; mso-bidi-language: HE
}
DIV.MsoAutoSig {
	FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"; =
mso-pagination: widow-orphan; mso-fareast-font-family: "Times New =
Roman"; mso-bidi-language: HE
}
SPAN.EmailStyle18 {
	COLOR: navy; mso-style-type: personal; mso-ansi-font-size: 10.0pt; =
mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; =
mso-bidi-font-family: Arial
}
SPAN.EmailStyle19 {
	COLOR: #993366; mso-style-type: personal-reply; mso-ansi-font-size: =
10.0pt; mso-ascii-font-family: Arial; mso-hansi-font-family: Arial; =
mso-bidi-font-family: Arial
}
DIV.Section1 {
	page: Section1
}
</STYLE>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext=3D"edit" spidmax=3D"1027"/>
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext=3D"edit">
  <o:idmap v:ext=3D"edit" data=3D"1"/>
 </o:shapelayout></xml><![endif]--></HEAD>
<BODY lang=3DEN-US style=3D"tab-interval: .5in" vLink=3Dblue link=3Dblue =
bgColor=3Dwhite>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D498202219-10012006><FONT =
face=3DArial=20
color=3D#0000ff size=3D2>HairPrimitive derives from =
Primitive</FONT></SPAN></DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D498202219-10012006><FONT =
face=3DArial=20
color=3D#0000ff size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D498202219-10012006><FONT =
face=3DArial=20
color=3D#0000ff size=3D2>Therefore you have access to all methods from=20
Primitive.</FONT></SPAN></DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D498202219-10012006><FONT =
face=3DArial=20
color=3D#0000ff size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D498202219-10012006><FONT =
face=3DArial=20
color=3D#0000ff size=3D2>CVector3Array=20
myHairPrim.GetGeometry().GetPoints().GetPositionArray()</FONT></SPAN></DI=
V>
<DIV>&nbsp;</DIV>
<DIV><SPAN class=3D498202219-10012006></SPAN><FONT face=3DArial><FONT=20
color=3D#0000ff><FONT size=3D2>H<SPAN class=3D498202219-10012006>ope =
this=20
helps.</SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT><FONT color=3D#0000ff><FONT size=3D2><SPAN=20
class=3D498202219-10012006></SPAN></FONT></FONT></FONT><SPAN=20
class=3D498202219-10012006></SPAN><FONT face=3DArial><FONT =
color=3D#0000ff><FONT=20
size=3D2>M<SPAN=20
class=3D498202219-10012006>artin</SPAN></FONT></FONT></FONT><BR></DIV>
<DIV class=3DOutlookMessageHeader lang=3Den-us dir=3Dltr align=3Dleft>
<HR tabIndex=3D-1>
<FONT face=3DTahoma size=3D2><B>From:</B> owner-xsi(at)Softimage.COM=20
[mailto:owner-xsi(at)Softimage.COM] <B>On Behalf Of </B>Mathieu=20
Leclaire<BR><B>Sent:</B> Tuesday, January 10, 2006 2:11 PM<BR><B>To:</B> =

XSI(at)Softimage.COM<BR><B>Subject:</B> RE: accessing guide hairs control =
points in=20
C++<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV class=3DSection1>
<P class=3DMsoNormal><SPAN class=3DEmailStyle19><FONT face=3DArial =
color=3D#993366=20
size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-bidi-font-size: =
12.0pt">Yeah,=20
for scripting, that&#8217;s the way to go but I&#8217;m writing a C++ =
custom operator and I=20
need to access it in C++. Maybe I&#8217;m missing something but =
there&#8217;s no Geometry=20
property from a HairPrimitive in =
C++.<o:p></o:p></SPAN></FONT></SPAN></P>
<P class=3DMsoNormal><SPAN class=3DEmailStyle19><FONT face=3DArial =
color=3D#993366=20
size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-bidi-font-size: =
12.0pt"><![if =
!supportEmptyParas]><![endif]>&nbsp;<o:p></o:p></SPAN></FONT></SPAN></P>
<P class=3DMsoNormal style=3D"TEXT-INDENT: 0.5in"><SPAN =
class=3DEmailStyle19><FONT=20
face=3DArial color=3D#993366 size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-bidi-font-size: =
12.0pt">InputPort=20
inPort(op.GetPort(L"Inhair",L"Group_1",0));<o:p></o:p></SPAN></FONT></SPA=
N></P>
<P class=3DMsoNormal style=3D"TEXT-INDENT: 0.5in"><SPAN =
class=3DEmailStyle19><FONT=20
face=3DArial color=3D#993366 size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-bidi-font-size: =
12.0pt">HairPrimitive=20
myHairPrim( inPort.GetValue() );<o:p></o:p></SPAN></FONT></SPAN></P>
<P class=3DMsoNormal><SPAN class=3DEmailStyle19><FONT face=3DArial =
color=3D#993366=20
size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-bidi-font-size: =
12.0pt"><![if =
!supportEmptyParas]><![endif]>&nbsp;<o:p></o:p></SPAN></FONT></SPAN></P>
<P class=3DMsoNormal><SPAN class=3DEmailStyle19><FONT face=3DArial =
color=3D#993366=20
size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-bidi-font-size: =
12.0pt">From=20
there I can access all rendered hairs but not the guide=20
hairs:<o:p></o:p></SPAN></FONT></SPAN></P>
<P class=3DMsoNormal><SPAN class=3DEmailStyle19><FONT face=3DArial =
color=3D#993366=20
size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-bidi-font-size: =
12.0pt"><![if =
!supportEmptyParas]><![endif]>&nbsp;<o:p></o:p></SPAN></FONT></SPAN></P>
<P class=3DMsoNormal style=3D"TEXT-INDENT: 0.5in"><SPAN =
class=3DEmailStyle19><FONT=20
face=3DArial color=3D#993366 size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-bidi-font-size: =
12.0pt">CRenderHairAccessor=20
rha =3D myHairPrim.GetRenderHairAccessor( 10000, 1000=20
);<o:p></o:p></SPAN></FONT></SPAN></P>
<P class=3DMsoNormal style=3D"TEXT-INDENT: 0.5in"><SPAN =
class=3DEmailStyle19><FONT=20
face=3DArial color=3D#993366 size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-bidi-font-size: =
12.0pt">&#8230;<o:p></o:p></SPAN></FONT></SPAN></P>
<P class=3DMsoNormal><SPAN class=3DEmailStyle19><FONT face=3DArial =
color=3D#993366=20
size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-bidi-font-size: =
12.0pt"><![if =
!supportEmptyParas]><![endif]>&nbsp;<o:p></o:p></SPAN></FONT></SPAN></P>
<P class=3DMsoNormal><SPAN class=3DEmailStyle19><FONT face=3DArial =
color=3D#993366=20
size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-bidi-font-size: =
12.0pt">But I=20
can&#8217;t figure out how to get only the guide hairs&#8230;=20
<o:p></o:p></SPAN></FONT></SPAN></P>
<P class=3DMsoNormal><SPAN class=3DEmailStyle19><FONT face=3DArial =
color=3D#993366=20
size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-bidi-font-size: =
12.0pt">Can=20
anyone help clarify how I can access =
those?<o:p></o:p></SPAN></FONT></SPAN></P>
<P class=3DMsoNormal><SPAN class=3DEmailStyle19><FONT face=3DArial =
color=3D#993366=20
size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-bidi-font-size: =
12.0pt"><![if =
!supportEmptyParas]><![endif]>&nbsp;<o:p></o:p></SPAN></FONT></SPAN></P>
<P class=3DMsoNormal><SPAN class=3DEmailStyle19><FONT face=3DArial =
color=3D#993366=20
size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-bidi-font-size: =
12.0pt">Thanks!<o:p></o:p></SPAN></FONT></SPAN></P>
<P class=3DMsoNormal><SPAN class=3DEmailStyle19><FONT face=3DArial =
color=3D#993366=20
size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-bidi-font-size: =
12.0pt"><![if =
!supportEmptyParas]><![endif]>&nbsp;<o:p></o:p></SPAN></FONT></SPAN></P>
<P class=3DMsoNormal><SPAN class=3DEmailStyle19><FONT face=3DArial =
color=3D#993366=20
size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-bidi-font-size: =
12.0pt"><![if =
!supportEmptyParas]><![endif]>&nbsp;<o:p></o:p></SPAN></FONT></SPAN></P>
<P class=3DMsoNormal><SPAN class=3DEmailStyle19><FONT face=3DArial =
color=3D#993366=20
size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-bidi-font-size: =
12.0pt">Mathieu=20
Leclaire<o:p></o:p></SPAN></FONT></SPAN></P>
<P class=3DMsoNormal><SPAN class=3DEmailStyle19><FONT face=3DArial =
color=3D#993366=20
size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-bidi-font-size: =
12.0pt">R&amp;D=20
Programmer<o:p></o:p></SPAN></FONT></SPAN></P>
<P class=3DMsoNormal><SPAN class=3DEmailStyle19><FONT face=3DArial =
color=3D#993366=20
size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-bidi-font-size: =
12.0pt">Hybride=20
Technologies<o:p></o:p></SPAN></FONT></SPAN></P>
<P class=3DMsoNormal><SPAN class=3DEmailStyle19><FONT face=3DArial =
color=3D#993366=20
size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-bidi-font-size: =
12.0pt"><![if =
!supportEmptyParas]><![endif]>&nbsp;<o:p></o:p></SPAN></FONT></SPAN></P>
<P class=3DMsoNormal style=3D"MARGIN-LEFT: 0.5in"><FONT face=3DTahoma =
color=3Dblack=20
size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: =
Tahoma">-----Original=20
Message-----<BR><B><SPAN style=3D"FONT-WEIGHT: bold">From:</SPAN></B>=20
owner-xsi(at)Softimage.COM [mailto:owner-xsi(at)Softimage.COM]<B><SPAN=20
style=3D"FONT-WEIGHT: bold">On Behalf Of </SPAN></B>Andrew =
Skowronski<BR><B><SPAN=20
style=3D"FONT-WEIGHT: bold">Sent:</SPAN></B> Friday, December 30, 2005 =
11:08=20
AM<BR><B><SPAN style=3D"FONT-WEIGHT: bold">To:</SPAN></B>=20
XSI(at)Softimage.COM<BR><B><SPAN style=3D"FONT-WEIGHT: =
bold">Subject:</SPAN></B> RE:=20
accessing guide hairs control points in C++</SPAN></FONT></P>
<P class=3DMsoNormal style=3D"MARGIN-LEFT: 0.5in"><FONT face=3D"Times =
New Roman"=20
size=3D3><SPAN=20
style=3D"FONT-SIZE: 12pt"><![if =
!supportEmptyParas]><![endif]>&nbsp;<o:p></o:p></SPAN></FONT></P>
<P class=3DMsoNormal style=3D"MARGIN-LEFT: 0.5in"><FONT face=3DArial =
color=3Dblue=20
size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Arial; =
mso-bidi-language: AR-SA">There=20
are a few tips here and I just added a few examples that I had thought =
made it=20
into the reference but which I can't find there!</SPAN></FONT><FONT=20
color=3Dblack><SPAN=20
style=3D"COLOR: black; mso-bidi-language: AR-SA; mso-color-alt: =
windowtext"><o:p></o:p></SPAN></FONT></P>
<P class=3DMsoNormal style=3D"MARGIN-LEFT: 0.5in"><FONT face=3D"Times =
New Roman"=20
color=3Dblack size=3D3><SPAN=20
style=3D"FONT-SIZE: 12pt; COLOR: black; mso-bidi-language: =
AR-SA">&nbsp;</SPAN></FONT><FONT=20
color=3Dblack><SPAN=20
style=3D"COLOR: black; mso-bidi-language: AR-SA; mso-color-alt: =
windowtext"><o:p></o:p></SPAN></FONT></P>
<P class=3DMsoNormal style=3D"MARGIN-LEFT: 0.5in"><FONT face=3DArial =
color=3Dblue=20
size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Arial; =
mso-bidi-language: AR-SA"><A=20
href=3D"http://softimage.wiki.avid.com/index.php/Hair_%28XSISDK%29";>http:=
//softimage.wiki.avid.com/index.php/Hair_%28XSISDK%29</A></SPAN></FONT><F=
ONT=20
color=3Dblack><SPAN=20
style=3D"COLOR: black; mso-bidi-language: AR-SA; mso-color-alt: =
windowtext"><o:p></o:p></SPAN></FONT></P>
<P class=3DMsoNormal style=3D"MARGIN-LEFT: 0.5in"><FONT face=3D"Times =
New Roman"=20
color=3Dblack size=3D3><SPAN=20
style=3D"FONT-SIZE: 12pt; COLOR: black; mso-bidi-language: =
AR-SA">&nbsp;</SPAN></FONT><FONT=20
color=3Dblack><SPAN=20
style=3D"COLOR: black; mso-bidi-language: AR-SA; mso-color-alt: =
windowtext"><o:p></o:p></SPAN></FONT></P>
<P class=3DMsoNormal style=3D"MARGIN-LEFT: 0.5in"><FONT face=3DArial =
color=3Dblue=20
size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Arial; =
mso-bidi-language: AR-SA">However=20
it would be cool if someone could add some information about how to find =
the=20
base point for each guide hair, as mentioned by Kim =
below.</SPAN></FONT><FONT=20
color=3Dblack><SPAN=20
style=3D"COLOR: black; mso-bidi-language: AR-SA; mso-color-alt: =
windowtext"><o:p></o:p></SPAN></FONT></P>
<P class=3DMsoNormal style=3D"MARGIN-LEFT: 0.5in"><FONT face=3D"Times =
New Roman"=20
color=3Dblack size=3D3><SPAN=20
style=3D"FONT-SIZE: 12pt; COLOR: black; mso-bidi-language: =
AR-SA">&nbsp;</SPAN></FONT><FONT=20
color=3Dblack><SPAN=20
style=3D"COLOR: black; mso-bidi-language: AR-SA; mso-color-alt: =
windowtext"><o:p></o:p></SPAN></FONT></P>
<P class=3DMsoNormal style=3D"MARGIN-LEFT: 0.5in"><FONT face=3DArial =
color=3Dblue=20
size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Arial; =
mso-bidi-language: AR-SA">-Andrew</SPAN></FONT><FONT=20
color=3Dblack><SPAN=20
style=3D"COLOR: black; mso-bidi-language: AR-SA; mso-color-alt: =
windowtext"><o:p></o:p></SPAN></FONT></P>
<P class=3DMsoNormal=20
style=3D"MARGIN-BOTTOM: 12pt; MARGIN-LEFT: 1in; mso-margin-top-alt: =
auto"><FONT=20
face=3DTahoma color=3Dblack size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Tahoma; =
mso-bidi-language: AR-SA">-----Original=20
Message-----<BR><B><SPAN style=3D"FONT-WEIGHT: bold">From:</SPAN></B>=20
owner-xsi(at)Softimage.COM [mailto:owner-xsi(at)Softimage.COM]<B><SPAN=20
style=3D"FONT-WEIGHT: bold">On Behalf Of </SPAN></B>kim =
aldis<BR><B><SPAN=20
style=3D"FONT-WEIGHT: bold">Posted At:</SPAN></B> Thursday, December 29, =
2005 5:32=20
PM<BR><B><SPAN style=3D"FONT-WEIGHT: bold">Posted To:</SPAN></B> =
xsi<BR><B><SPAN=20
style=3D"FONT-WEIGHT: bold">Conversation:</SPAN></B> accessing guide =
hairs control=20
points in C++<BR><B><SPAN style=3D"FONT-WEIGHT: =
bold">Subject:</SPAN></B> RE:=20
accessing guide hairs control points in C++</SPAN></FONT><FONT =
color=3Dblack><SPAN=20
style=3D"COLOR: black; mso-bidi-language: AR-SA; mso-color-alt: =
windowtext"><o:p></o:p></SPAN></FONT></P>
<P class=3DMsoNormal=20
style=3D"MARGIN-LEFT: 1in; mso-margin-top-alt: auto; =
mso-margin-bottom-alt: auto"><FONT=20
face=3DArial color=3Dblue size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Arial; =
mso-bidi-language: AR-SA">and=20
there's always 13 points to each guide and you have to do some tricksy =
stuff to=20
get the base point of each guide&nbsp;from the emitter geometry because =
it's not=20
in the hair prim.</SPAN></FONT><FONT color=3Dblack><SPAN=20
style=3D"COLOR: black; mso-bidi-language: AR-SA; mso-color-alt: =
windowtext"><o:p></o:p></SPAN></FONT></P>
<P class=3DMsoNormal=20
style=3D"MARGIN-LEFT: 1in; mso-margin-top-alt: auto; =
mso-margin-bottom-alt: auto"><FONT=20
face=3D"Times New Roman" color=3Dblack size=3D3><SPAN=20
style=3D"FONT-SIZE: 12pt; COLOR: black; mso-bidi-language: AR-SA"><![if =
!supportEmptyParas]><![endif]>&nbsp;</SPAN></FONT><FONT=20
color=3Dblack><SPAN=20
style=3D"COLOR: black; mso-bidi-language: AR-SA; mso-color-alt: =
windowtext"><o:p></o:p></SPAN></FONT></P>
<DIV=20
style=3D"BORDER-RIGHT: medium none; PADDING-RIGHT: 0in; BORDER-TOP: =
medium none; PADDING-LEFT: 4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: blue =
1.5pt solid; PADDING-TOP: 0in; BORDER-BOTTOM: medium none">
<DIV class=3DMsoNormal=20
style=3D"BORDER-RIGHT: medium none; PADDING-RIGHT: 0in; BORDER-TOP: =
medium none; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; MARGIN-LEFT: =
75.75pt; BORDER-LEFT: medium none; PADDING-TOP: 0in; BORDER-BOTTOM: =
medium none; TEXT-ALIGN: center; mso-margin-top-alt: auto; =
mso-margin-bottom-alt: auto; mso-border-left-alt: solid blue 1.5pt; =
mso-padding-alt: 0in 0in 0in 4.0pt"=20
align=3Dcenter><FONT face=3D"Times New Roman" color=3Dblack =
size=3D3><SPAN=20
style=3D"FONT-SIZE: 12pt; COLOR: black; mso-bidi-language: AR-SA">
<HR align=3Dcenter width=3D"100%" SIZE=3D2>
</SPAN></FONT></DIV>
<P class=3DMsoNormal=20
style=3D"BORDER-RIGHT: medium none; PADDING-RIGHT: 0in; BORDER-TOP: =
medium none; PADDING-LEFT: 0in; MARGIN-BOTTOM: 12pt; PADDING-BOTTOM: =
0in; MARGIN-LEFT: 75.75pt; BORDER-LEFT: medium none; PADDING-TOP: 0in; =
BORDER-BOTTOM: medium none; mso-margin-top-alt: auto; =
mso-border-left-alt: solid blue 1.5pt; mso-padding-alt: 0in 0in 0in =
4.0pt"><B><FONT=20
face=3DTahoma color=3Dblack size=3D2><SPAN=20
style=3D"FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: =
Tahoma; mso-bidi-language: AR-SA">From:</SPAN></FONT></B><FONT=20
face=3DTahoma color=3Dblack size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Tahoma; =
mso-bidi-language: AR-SA">=20
owner-xsi(at)Softimage.COM [mailto:owner-xsi(at)Softimage.COM] <B><SPAN=20
style=3D"FONT-WEIGHT: bold">On Behalf Of </SPAN></B>Martin =
Barrette<BR><B><SPAN=20
style=3D"FONT-WEIGHT: bold">Sent:</SPAN></B> 29-December-2005 =
20:58<BR><B><SPAN=20
style=3D"FONT-WEIGHT: bold">To:</SPAN></B> XSI(at)Softimage.COM<BR><B><SPAN =

style=3D"FONT-WEIGHT: bold">Subject:</SPAN></B> RE: accessing guide =
hairs control=20
points in C++</SPAN></FONT><FONT color=3Dblack><SPAN=20
style=3D"COLOR: black; mso-bidi-language: AR-SA; mso-color-alt: =
windowtext"><o:p></o:p></SPAN></FONT></P>
<P class=3DMsoNormal=20
style=3D"BORDER-RIGHT: medium none; PADDING-RIGHT: 0in; BORDER-TOP: =
medium none; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; MARGIN-LEFT: =
75.75pt; BORDER-LEFT: medium none; PADDING-TOP: 0in; BORDER-BOTTOM: =
medium none; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; =
mso-border-left-alt: solid blue 1.5pt; mso-padding-alt: 0in 0in 0in =
4.0pt"><FONT=20
face=3D"Times New Roman" color=3Dblue size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; COLOR: blue; mso-bidi-language: =
AR-SA">Primitive.Geometry.Points.PositionArray=20
will return you only the points position for the guide =
hairs.</SPAN></FONT><FONT=20
color=3Dblack><SPAN=20
style=3D"COLOR: black; mso-bidi-language: AR-SA; mso-color-alt: =
windowtext"><o:p></o:p></SPAN></FONT></P>
<P class=3DMsoNormal=20
style=3D"BORDER-RIGHT: medium none; PADDING-RIGHT: 0in; BORDER-TOP: =
medium none; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; MARGIN-LEFT: =
75.75pt; BORDER-LEFT: medium none; PADDING-TOP: 0in; BORDER-BOTTOM: =
medium none; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; =
mso-border-left-alt: solid blue 1.5pt; mso-padding-alt: 0in 0in 0in =
4.0pt"><FONT=20
face=3D"Times New Roman" color=3Dblack size=3D3><SPAN=20
style=3D"FONT-SIZE: 12pt; COLOR: black; mso-bidi-language: =
AR-SA">&nbsp;</SPAN></FONT><FONT=20
color=3Dblack><SPAN=20
style=3D"COLOR: black; mso-bidi-language: AR-SA; mso-color-alt: =
windowtext"><o:p></o:p></SPAN></FONT></P>
<P class=3DMsoNormal=20
style=3D"BORDER-RIGHT: medium none; PADDING-RIGHT: 0in; BORDER-TOP: =
medium none; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; MARGIN-LEFT: =
75.75pt; BORDER-LEFT: medium none; PADDING-TOP: 0in; BORDER-BOTTOM: =
medium none; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; =
mso-border-left-alt: solid blue 1.5pt; mso-padding-alt: 0in 0in 0in =
4.0pt"><FONT=20
face=3D"Times New Roman" color=3Dblue size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; COLOR: blue; mso-bidi-language: =
AR-SA">Cheers,<BR>Martin</SPAN></FONT><FONT=20
color=3Dblack><SPAN=20
style=3D"COLOR: black; mso-bidi-language: AR-SA; mso-color-alt: =
windowtext"><o:p></o:p></SPAN></FONT></P>
<P class=3DMsoNormal=20
style=3D"BORDER-RIGHT: medium none; PADDING-RIGHT: 0in; BORDER-TOP: =
medium none; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; MARGIN-LEFT: =
75.75pt; BORDER-LEFT: medium none; PADDING-TOP: 0in; BORDER-BOTTOM: =
medium none; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto; =
mso-border-left-alt: solid blue 1.5pt; mso-padding-alt: 0in 0in 0in =
4.0pt"><FONT=20
face=3D"Times New Roman" color=3Dblack size=3D3><SPAN=20
style=3D"FONT-SIZE: 12pt; COLOR: black; mso-bidi-language: AR-SA"><![if =
!supportEmptyParas]><![endif]>&nbsp;</SPAN></FONT><FONT=20
color=3Dblack><SPAN=20
style=3D"COLOR: black; mso-bidi-language: AR-SA; mso-color-alt: =
windowtext"><o:p></o:p></SPAN></FONT></P>
<DIV class=3DMsoNormal=20
style=3D"BORDER-RIGHT: medium none; PADDING-RIGHT: 0in; BORDER-TOP: =
medium none; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; MARGIN-LEFT: =
75.75pt; BORDER-LEFT: medium none; PADDING-TOP: 0in; BORDER-BOTTOM: =
medium none; TEXT-ALIGN: center; mso-margin-top-alt: auto; =
mso-margin-bottom-alt: auto; mso-border-left-alt: solid blue 1.5pt; =
mso-padding-alt: 0in 0in 0in 4.0pt"=20
align=3Dcenter><FONT face=3D"Times New Roman" color=3Dblack =
size=3D3><SPAN=20
style=3D"FONT-SIZE: 12pt; COLOR: black; mso-bidi-language: AR-SA">
<HR align=3Dcenter width=3D"100%" SIZE=3D2>
</SPAN></FONT></DIV>
<P class=3DMsoNormal=20
style=3D"BORDER-RIGHT: medium none; PADDING-RIGHT: 0in; BORDER-TOP: =
medium none; PADDING-LEFT: 0in; MARGIN-BOTTOM: 12pt; PADDING-BOTTOM: =
0in; MARGIN-LEFT: 75.75pt; BORDER-LEFT: medium none; PADDING-TOP: 0in; =
BORDER-BOTTOM: medium none; mso-margin-top-alt: auto; =
mso-border-left-alt: solid blue 1.5pt; mso-padding-alt: 0in 0in 0in =
4.0pt"><B><FONT=20
face=3DTahoma color=3Dblack size=3D2><SPAN=20
style=3D"FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: =
Tahoma; mso-bidi-language: AR-SA">From:</SPAN></FONT></B><FONT=20
face=3DTahoma color=3Dblack size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Tahoma; =
mso-bidi-language: AR-SA">=20
owner-xsi(at)Softimage.COM [mailto:owner-xsi(at)Softimage.COM] <B><SPAN=20
style=3D"FONT-WEIGHT: bold">On Behalf Of </SPAN></B>Mathieu =
Leclaire<BR><B><SPAN=20
style=3D"FONT-WEIGHT: bold">Sent:</SPAN></B> Thursday, December 29, 2005 =
3:56=20
PM<BR><B><SPAN style=3D"FONT-WEIGHT: bold">To:</SPAN></B>=20
XSI(at)Softimage.COM<BR><B><SPAN style=3D"FONT-WEIGHT: =
bold">Subject:</SPAN></B>=20
accessing guide hairs control points in C++</SPAN></FONT><FONT =
color=3Dblack><SPAN=20
style=3D"COLOR: black; mso-bidi-language: AR-SA; mso-color-alt: =
windowtext"><o:p></o:p></SPAN></FONT></P>
<P class=3DMsoNormal=20
style=3D"BORDER-RIGHT: medium none; PADDING-RIGHT: 0in; BORDER-TOP: =
medium none; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; MARGIN-LEFT: =
75.75pt; BORDER-LEFT: medium none; PADDING-TOP: 0in; BORDER-BOTTOM: =
medium none; mso-border-left-alt: solid blue 1.5pt; mso-padding-alt: 0in =
0in 0in 4.0pt"><FONT=20
face=3DArial color=3Dnavy size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial; =
mso-bidi-language: AR-SA">Hi,</SPAN></FONT><FONT=20
face=3DArial color=3Dblack size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Arial; =
mso-bidi-language: AR-SA; mso-color-alt: =
windowtext"><o:p></o:p></SPAN></FONT></P>
<P class=3DMsoNormal=20
style=3D"BORDER-RIGHT: medium none; PADDING-RIGHT: 0in; BORDER-TOP: =
medium none; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; MARGIN-LEFT: =
75.75pt; BORDER-LEFT: medium none; PADDING-TOP: 0in; BORDER-BOTTOM: =
medium none; mso-border-left-alt: solid blue 1.5pt; mso-padding-alt: 0in =
0in 0in 4.0pt"><FONT=20
face=3DArial color=3Dnavy size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial; =
mso-bidi-language: AR-SA">&nbsp;</SPAN></FONT><FONT=20
face=3DArial color=3Dblack size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Arial; =
mso-bidi-language: AR-SA; mso-color-alt: =
windowtext"><o:p></o:p></SPAN></FONT></P>
<P class=3DMsoNormal=20
style=3D"BORDER-RIGHT: medium none; PADDING-RIGHT: 0in; BORDER-TOP: =
medium none; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; MARGIN-LEFT: =
75.75pt; BORDER-LEFT: medium none; PADDING-TOP: 0in; BORDER-BOTTOM: =
medium none; mso-border-left-alt: solid blue 1.5pt; mso-padding-alt: 0in =
0in 0in 4.0pt"><FONT=20
face=3DArial color=3Dnavy size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial; =
mso-bidi-font-size: 12.0pt; mso-bidi-language: AR-SA">I&#8217;m=20
doing a custom operator and I need to access the guide hairs control =
points=20
positions. From what I can see from the C++ </SPAN></FONT><FONT =
face=3DArial=20
color=3Dnavy size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial; =
mso-bidi-font-size: 12.0pt">API</SPAN></FONT><FONT=20
face=3DArial color=3Dnavy size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial; =
mso-bidi-font-size: 12.0pt; mso-bidi-language: AR-SA">,=20
there&#8217;s the </SPAN></FONT><FONT face=3DArial color=3Dnavy =
size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial; =
mso-bidi-font-size: 12.0pt"><A=20
href=3D"classXSI_1_1HairPrimitive.html#a0"><FONT color=3Dnavy><SPAN=20
style=3D"COLOR: navy">HairPrimitive</SPAN></FONT></A> from whom we can =
access the=20
<A href=3D"classXSI_1_1CRenderHairAccessor.html"><FONT =
color=3Dnavy><SPAN=20
style=3D"COLOR: navy">CRenderHairAccessor</SPAN></FONT></A> but =
that&#8217;s the=20
information of all the rendered hairs. I have to loop through every hair =
points=20
to make proximity calculations. I just don&#8217;t need to loop through =
every hair, I=20
just want to access the guide hairs to optimize the process. But I =
can&#8217;t find=20
where to access only those. Can anyone help me figure out how to access =
that=20
information?</SPAN></FONT><FONT face=3DArial color=3Dblack =
size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Arial; =
mso-bidi-font-size: 12.0pt; mso-color-alt: =
windowtext"><o:p></o:p></SPAN></FONT></P>
<P class=3DMsoNormal=20
style=3D"BORDER-RIGHT: medium none; PADDING-RIGHT: 0in; BORDER-TOP: =
medium none; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; MARGIN-LEFT: =
75.75pt; BORDER-LEFT: medium none; PADDING-TOP: 0in; BORDER-BOTTOM: =
medium none; mso-border-left-alt: solid blue 1.5pt; mso-padding-alt: 0in =
0in 0in 4.0pt"><SPAN=20
class=3DEmailStyle18><FONT face=3DArial color=3Dnavy size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-bidi-font-size: =
12.0pt">&nbsp;<o:p></o:p></SPAN></FONT></SPAN></P>
<P class=3DMsoNormal=20
style=3D"BORDER-RIGHT: medium none; PADDING-RIGHT: 0in; BORDER-TOP: =
medium none; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; MARGIN-LEFT: =
75.75pt; BORDER-LEFT: medium none; PADDING-TOP: 0in; BORDER-BOTTOM: =
medium none; mso-border-left-alt: solid blue 1.5pt; mso-padding-alt: 0in =
0in 0in 4.0pt"><SPAN=20
class=3DEmailStyle18><FONT face=3DArial color=3Dnavy size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-bidi-font-size: =
12.0pt">Thanks<o:p></o:p></SPAN></FONT></SPAN></P>
<P class=3DMsoNormal=20
style=3D"BORDER-RIGHT: medium none; PADDING-RIGHT: 0in; BORDER-TOP: =
medium none; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; MARGIN-LEFT: =
75.75pt; BORDER-LEFT: medium none; PADDING-TOP: 0in; BORDER-BOTTOM: =
medium none; mso-border-left-alt: solid blue 1.5pt; mso-padding-alt: 0in =
0in 0in 4.0pt"><SPAN=20
class=3DEmailStyle18><FONT face=3DArial color=3Dnavy size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-bidi-font-size: =
12.0pt">&nbsp;<o:p></o:p></SPAN></FONT></SPAN></P>
<P class=3DMsoNormal=20
style=3D"BORDER-RIGHT: medium none; PADDING-RIGHT: 0in; BORDER-TOP: =
medium none; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; MARGIN-LEFT: =
75.75pt; BORDER-LEFT: medium none; PADDING-TOP: 0in; BORDER-BOTTOM: =
medium none; mso-border-left-alt: solid blue 1.5pt; mso-padding-alt: 0in =
0in 0in 4.0pt"><SPAN=20
class=3DEmailStyle18><FONT face=3DArial color=3Dnavy size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-bidi-font-size: =
12.0pt">Mathieu=20
Leclaire<o:p></o:p></SPAN></FONT></SPAN></P>
<P class=3DMsoNormal=20
style=3D"BORDER-RIGHT: medium none; PADDING-RIGHT: 0in; BORDER-TOP: =
medium none; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; MARGIN-LEFT: =
75.75pt; BORDER-LEFT: medium none; PADDING-TOP: 0in; BORDER-BOTTOM: =
medium none; mso-border-left-alt: solid blue 1.5pt; mso-padding-alt: 0in =
0in 0in 4.0pt"><SPAN=20
class=3DEmailStyle18><FONT face=3DArial color=3Dnavy size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-bidi-font-size: =
12.0pt">R&amp;D=20
Programmer<o:p></o:p></SPAN></FONT></SPAN></P>
<P class=3DMsoNormal=20
style=3D"BORDER-RIGHT: medium none; PADDING-RIGHT: 0in; BORDER-TOP: =
medium none; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; MARGIN-LEFT: =
75.75pt; BORDER-LEFT: medium none; PADDING-TOP: 0in; BORDER-BOTTOM: =
medium none; mso-border-left-alt: solid blue 1.5pt; mso-padding-alt: 0in =
0in 0in 4.0pt"><SPAN=20
class=3DEmailStyle18><FONT face=3DArial color=3Dnavy size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-bidi-font-size: =
12.0pt">Hybride=20
Technologies<o:p></o:p></SPAN></FONT></SPAN></P></DIV></DIV></BODY></HTML=
>

------_=_NextPart_001_01C6161B.7FAAA646--
---
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.