<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns="http://www.w3.org/TR/REC-html40" xmlns:o =
"urn:schemas-microsoft-com:office:office" xmlns:w =
"urn:schemas-microsoft-com:office:word"><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META content=Word.Document name=ProgId>
<META content="MSHTML 5.00.2314.1000" name=GENERATOR>
<META content="Microsoft Word 9" name=Originator><LINK
href="cid:filelist.xml@01C08147.A26B0E40" rel=File-List><!--[if gte mso 9]><xml>
<o:OfficeDocumentSettings>
<o:DoNotRelyOnCSS/>
</o:OfficeDocumentSettings>
</xml><![endif]--><!--[if gte mso 9]><xml>
<w:WordDocument>
<w:View>Normal</w:View>
<w:Zoom>0</w:Zoom>
<w:DocumentKind>DocumentEmail</w:DocumentKind>
<w:EnvelopeVis/>
</w:WordDocument>
</xml><![endif]-->
<STYLE>P.MsoNormal {
        FONT-FAMILY: "Times New Roman"; FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; mso-fareast-font-family: "Times New Roman"; mso-style-parent: ""; mso-pagination: widow-orphan
}
LI.MsoNormal {
        FONT-FAMILY: "Times New Roman"; FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; mso-fareast-font-family: "Times New Roman"; mso-style-parent: ""; mso-pagination: widow-orphan
}
DIV.MsoNormal {
        FONT-FAMILY: "Times New Roman"; FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; mso-fareast-font-family: "Times New Roman"; mso-style-parent: ""; mso-pagination: widow-orphan
}
P.MsoAutoSig {
        FONT-FAMILY: "Times New Roman"; FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; mso-fareast-font-family: "Times New Roman"; mso-pagination: widow-orphan
}
LI.MsoAutoSig {
        FONT-FAMILY: "Times New Roman"; FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; mso-fareast-font-family: "Times New Roman"; mso-pagination: widow-orphan
}
DIV.MsoAutoSig {
        FONT-FAMILY: "Times New Roman"; FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; mso-fareast-font-family: "Times New Roman"; mso-pagination: widow-orphan
}
PRE {
        FONT-FAMILY: "Courier New"; FONT-SIZE: 10pt; MARGIN: 0cm 0cm 0pt; mso-fareast-font-family: "Courier New"; mso-pagination: widow-orphan
}
SPAN.EmailStyle15 {
        COLOR: black; mso-style-type: personal-compose; 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>
</HEAD>
<BODY lang=EN-AU style="tab-interval: 36.0pt">
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=542100212-18012001>I
extract edges of points cloud by using the vtkFeatureEdges.</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=542100212-18012001>Does
anybody know how I can retrieve the 3D information about these edges after using
the class. So I can work with these edges.</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=542100212-18012001>Thank
you.</SPAN></FONT></DIV>
<BLOCKQUOTE style="MARGIN-RIGHT: 0px">
<DIV align=left class=OutlookMessageHeader dir=ltr><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B> Andrew Maclean
[mailto:a.maclean@acfr.usyd.edu.au]<BR><B>Sent:</B> Thursday, January 18, 2001
2:10 AM<BR><B>To:</B> vtkusers@public.kitware.com<BR><B>Subject:</B>
[vtkusers] Getting text to follow the active camera.<BR><BR></DIV></FONT>
<DIV class=Section1>
<P class=MsoNormal><SPAN class=EmailStyle15><FONT color=black face=Arial
size=2><SPAN
style="FONT-FAMILY: Arial; FONT-SIZE: 10pt; mso-bidi-font-size: 12.0pt">How do
I get the text to follow the active camera? I am using the Doc/View paradigm
in the vtk/MFC example where you </SPAN></FONT></SPAN><FONT color=black><SPAN
style="COLOR: black">fill a vtkPropCollection with actors, then add them to
your "picture view" during OnUpdate(). </SPAN></FONT><FONT color=black><SPAN
style="COLOR: black; mso-color-alt: windowtext"><o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT color=black face="Times New Roman" size=3><SPAN
style="COLOR: black; FONT-SIZE: 12pt"><![if !supportEmptyParas]> <![endif]></SPAN></FONT><FONT
color=black><SPAN
style="COLOR: black; mso-color-alt: windowtext"><o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT color=black face="Times New Roman" size=3><SPAN
style="COLOR: black; FONT-SIZE: 12pt">In the document class I do
this:</SPAN></FONT><FONT color=black><SPAN
style="COLOR: black; mso-color-alt: windowtext"><o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT color=black face="Times New Roman" size=3><SPAN
style="COLOR: black; FONT-SIZE: 12pt"><SPAN
style="mso-tab-count: 1">
</SPAN>//-------- The pipeline for text</SPAN></FONT><FONT color=black><SPAN
style="COLOR: black; mso-color-alt: windowtext"><o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT color=black face="Times New Roman" size=3><SPAN
style="COLOR: black; FONT-SIZE: 12pt"><SPAN
style="mso-tab-count: 1">
</SPAN>// Source</SPAN></FONT><FONT color=black><SPAN
style="COLOR: black; mso-color-alt: windowtext"><o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT color=black face="Times New Roman" size=3><SPAN
style="COLOR: black; FONT-SIZE: 12pt"><SPAN
style="mso-tab-count: 1">
</SPAN>vText->SetText(txt);</SPAN></FONT><FONT color=black><SPAN
style="COLOR: black; mso-color-alt: windowtext"><o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT color=black face="Times New Roman" size=3><SPAN
style="COLOR: black; FONT-SIZE: 12pt"><SPAN
style="mso-tab-count: 1">
</SPAN>// Filters</SPAN></FONT><FONT color=black><SPAN
style="COLOR: black; mso-color-alt: windowtext"><o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT color=black face="Times New Roman" size=3><SPAN
style="COLOR: black; FONT-SIZE: 12pt"><SPAN
style="mso-tab-count: 1">
</SPAN></SPAN></FONT><FONT color=black><SPAN
style="COLOR: black; mso-color-alt: windowtext"><o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT color=black face="Times New Roman" size=3><SPAN
style="COLOR: black; FONT-SIZE: 12pt"><SPAN
style="mso-tab-count: 1">
</SPAN>// Mapper</SPAN></FONT><FONT color=black><SPAN
style="COLOR: black; mso-color-alt: windowtext"><o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT color=black face="Times New Roman" size=3><SPAN
style="COLOR: black; FONT-SIZE: 12pt"><SPAN
style="mso-tab-count: 1">
</SPAN>textMapper->SetInput(vText->GetOutput());</SPAN></FONT><FONT
color=black><SPAN
style="COLOR: black; mso-color-alt: windowtext"><o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT color=black face="Times New Roman" size=3><SPAN
style="COLOR: black; FONT-SIZE: 12pt"><![if !supportEmptyParas]> <![endif]></SPAN></FONT><FONT
color=black><SPAN
style="COLOR: black; mso-color-alt: windowtext"><o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT color=black face="Times New Roman" size=3><SPAN
style="COLOR: black; FONT-SIZE: 12pt"><SPAN
style="mso-tab-count: 1">
</SPAN>// Actor</SPAN></FONT><FONT color=black><SPAN
style="COLOR: black; mso-color-alt: windowtext"><o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT color=black face="Times New Roman" size=3><SPAN
style="COLOR: black; FONT-SIZE: 12pt"><SPAN
style="mso-tab-count: 1">
</SPAN>textActor->SetMapper(textMapper);</SPAN></FONT><FONT
color=black><SPAN
style="COLOR: black; mso-color-alt: windowtext"><o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT color=black face="Times New Roman" size=3><SPAN
style="COLOR: black; FONT-SIZE: 12pt"><SPAN
style="mso-tab-count: 1">
</SPAN>textActor->SetScale(1,1,1);</SPAN></FONT><FONT color=black><SPAN
style="COLOR: black; mso-color-alt: windowtext"><o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT color=black face="Times New Roman" size=3><SPAN
style="COLOR: black; FONT-SIZE: 12pt"><SPAN
style="mso-tab-count: 1">
</SPAN>textActor->AddPosition(0,-0.1,-0.1);</SPAN></FONT><FONT
color=black><SPAN
style="COLOR: black; mso-color-alt: windowtext"><o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT color=black face="Times New Roman" size=3><SPAN
style="COLOR: black; FONT-SIZE: 12pt"><SPAN
style="mso-tab-count: 1">
</SPAN>textActor->GetProperty()->SetDiffuseColor(0.2784, 1.0000,
0.3882);</SPAN></FONT><FONT color=black><SPAN
style="COLOR: black; mso-color-alt: windowtext"><o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT color=black face="Times New Roman" size=3><SPAN
style="COLOR: black; FONT-SIZE: 12pt"><SPAN
style="mso-tab-count: 1">
</SPAN>textActor->GetProperty()->SetSpecularColor(0.2784, 1.0000,
0.3882);</SPAN></FONT><FONT color=black><SPAN
style="COLOR: black; mso-color-alt: windowtext"><o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT color=black face="Times New Roman" size=3><SPAN
style="COLOR: black; FONT-SIZE: 12pt"><SPAN
style="mso-tab-count: 1">
</SPAN>textActor->GetProperty()->SetSpecular(0.4);</SPAN></FONT><FONT
color=black><SPAN
style="COLOR: black; mso-color-alt: windowtext"><o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT color=black face="Times New Roman" size=3><SPAN
style="COLOR: black; FONT-SIZE: 12pt"><SPAN
style="mso-tab-count: 1">
</SPAN>textActor->GetProperty()->SetSpecularPower(50);</SPAN></FONT><FONT
color=black><SPAN
style="COLOR: black; mso-color-alt: windowtext"><o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT color=black face="Times New Roman" size=3><SPAN
style="COLOR: black; FONT-SIZE: 12pt"><SPAN
style="mso-tab-count: 1">
</SPAN>textActor->GetProperty()->SetInterpolationToGouraud();</SPAN></FONT><FONT
color=black><SPAN
style="COLOR: black; mso-color-alt: windowtext"><o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT color=black face="Times New Roman" size=3><SPAN
style="COLOR: black; FONT-SIZE: 12pt"><SPAN
style="mso-tab-count: 1">
</SPAN>textActor->GetProperty()->SetOpacity(0.75);</SPAN></FONT><FONT
color=black><SPAN
style="COLOR: black; mso-color-alt: windowtext"><o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT color=black face="Times New Roman" size=3><SPAN
style="COLOR: black; FONT-SIZE: 12pt">//<SPAN
style="mso-tab-count: 1">
</SPAN>textActor->SetCamera(Renderer->GetActiveCamera());</SPAN></FONT><FONT
color=black><SPAN
style="COLOR: black; mso-color-alt: windowtext"><o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT color=black face="Times New Roman" size=3><SPAN
style="COLOR: black; FONT-SIZE: 12pt"><![if !supportEmptyParas]> <![endif]></SPAN></FONT><FONT
color=black><SPAN
style="COLOR: black; mso-color-alt: windowtext"><o:p></o:p></SPAN></FONT></P><PRE><SPAN class=EmailStyle15><FONT color=black face=Arial size=2><SPAN style="FONT-FAMILY: Arial; FONT-SIZE: 10pt; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: 'Times New Roman'">Clearly the last line will not work because the Renderer is in the view class. So how do I get the active camera for the text actor?<o:p></o:p></SPAN></FONT></SPAN></PRE><PRE><SPAN class=EmailStyle15><FONT color=black face=Arial size=2><SPAN style="FONT-FAMILY: Arial; FONT-SIZE: 10pt; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: 'Times New Roman'">Is there some way of doing this in the view class in particular OnUpdate(), where you are adding the actors to the renderer as done in the following code snippet.<o:p></o:p></SPAN></FONT></SPAN></PRE><PRE><SPAN class=EmailStyle15><FONT color=black face=Arial size=2><SPAN style="FONT-FAMILY: Arial; FONT-SIZE: 10pt; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: 'Times New Roman'"><SPAN style="mso-tab-count: 1"> </SPAN>while (prop = propc->GetNextProp()) <o:p></o:p></SPAN></FONT></SPAN></PRE><PRE><SPAN class=EmailStyle15><FONT color=black face=Arial size=2><SPAN style="FONT-FAMILY: Arial; FONT-SIZE: 10pt; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: 'Times New Roman'"><SPAN style="mso-tab-count: 1"> </SPAN>{<o:p></o:p></SPAN></FONT></SPAN></PRE><PRE><SPAN class=EmailStyle15><FONT color=black face=Arial size=2><SPAN style="FONT-FAMILY: Arial; FONT-SIZE: 10pt; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: 'Times New Roman'"><SPAN style="mso-tab-count: 2"> </SPAN>this->Renderer->AddProp(prop);<o:p></o:p></SPAN></FONT></SPAN></PRE><PRE><SPAN class=EmailStyle15><FONT color=black face=Arial size=2><SPAN style="FONT-FAMILY: Arial; FONT-SIZE: 10pt; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: 'Times New Roman'"><SPAN style="mso-tab-count: 1"> </SPAN>}<o:p></o:p></SPAN></FONT></SPAN></PRE><PRE><SPAN class=EmailStyle15><FONT color=black face=Arial size=2><SPAN style="FONT-FAMILY: Arial; FONT-SIZE: 10pt; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: 'Times New Roman'"><SPAN style="mso-tab-count: 1"> </SPAN>this->Renderer->ResetCamera();<o:p></o:p></SPAN></FONT></SPAN></PRE><PRE><SPAN class=EmailStyle15><FONT color=black face=Arial size=2><SPAN style="FONT-FAMILY: Arial; FONT-SIZE: 10pt; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: 'Times New Roman'"><![if !supportEmptyParas]> <![endif]><o:p></o:p></SPAN></FONT></SPAN></PRE><PRE><SPAN class=EmailStyle15><FONT color=black face=Arial size=2><SPAN style="FONT-FAMILY: Arial; FONT-SIZE: 10pt; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: 'Times New Roman'"><![if !supportEmptyParas]> <![endif]><o:p></o:p></SPAN></FONT></SPAN></PRE><PRE><SPAN class=EmailStyle15><FONT color=black face=Arial size=2><SPAN style="FONT-FAMILY: Arial; FONT-SIZE: 10pt; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: 'Times New Roman'">If you have an answer, many thanks in advance!!<o:p></o:p></SPAN></FONT></SPAN></PRE>
<P class=MsoNormal><SPAN class=EmailStyle15><FONT color=black face=Arial
size=2><SPAN
style="FONT-FAMILY: Arial; FONT-SIZE: 10pt; mso-bidi-font-size: 12.0pt"><![if !supportEmptyParas]> <![endif]><o:p></o:p></SPAN></FONT></SPAN></P>
<P class=MsoNormal><SPAN class=EmailStyle15><FONT color=black face=Arial
size=2><SPAN
style="FONT-FAMILY: Arial; FONT-SIZE: 10pt; mso-bidi-font-size: 12.0pt"><![if !supportEmptyParas]> <![endif]><o:p></o:p></SPAN></FONT></SPAN></P>
<P class=MsoNormal><SPAN class=EmailStyle15><FONT color=black face=Arial
size=2><SPAN
style="FONT-FAMILY: Arial; FONT-SIZE: 10pt; mso-bidi-font-size: 12.0pt">Andrew<o:p></o:p></SPAN></FONT></SPAN></P>
<P class=MsoNormal><SPAN class=EmailStyle15><FONT color=black face=Arial
size=2><SPAN
style="FONT-FAMILY: Arial; FONT-SIZE: 10pt; mso-bidi-font-size: 12.0pt"><![if !supportEmptyParas]> <![endif]><o:p></o:p></SPAN></FONT></SPAN></P></DIV></BLOCKQUOTE></BODY></HTML>