<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 12 (filtered medium)"><!--[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]--><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Texto de globo Car";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.EstiloCorreo17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.TextodegloboCar
        {mso-style-name:"Texto de globo Car";
        mso-style-priority:99;
        mso-style-link:"Texto de globo";
        font-family:"Tahoma","sans-serif";}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 3.0cm 70.85pt 3.0cm;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="2050" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=ES link=blue vlink=purple><div class=WordSection1><p class=MsoNormal>Hi,<o:p></o:p></p><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal><span lang=EN-US>We have added a vtkCaptionActor2D to our scene, but the text appears chopped, and we don&#8217;t know why&#8230;<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>A simple and compilable example that shows the output text chopped is sent attached. &nbsp;Also, an screenshot at the bottom.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Could anyone try to reproduce the error?<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-US>Thanks in advance.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>My best,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Robert.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-family:Consolas;color:blue'>#include</span><span lang=EN-US style='font-family:Consolas'> <span style='color:#A31515'>&lt;vtkPolyDataMapper.h&gt;</span><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-family:Consolas;color:blue'>#include</span><span lang=EN-US style='font-family:Consolas'> <span style='color:#A31515'>&lt;vtkActor.h&gt;</span><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-family:Consolas;color:blue'>#include</span><span lang=EN-US style='font-family:Consolas'> <span style='color:#A31515'>&lt;vtkRenderWindow.h&gt;</span><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-family:Consolas;color:blue'>#include</span><span lang=EN-US style='font-family:Consolas'> <span style='color:#A31515'>&lt;vtkRenderer.h&gt;</span><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-family:Consolas;color:blue'>#include</span><span lang=EN-US style='font-family:Consolas'> <span style='color:#A31515'>&lt;vtkRenderWindowInteractor.h&gt;</span><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-family:Consolas;color:blue'>#include</span><span lang=EN-US style='font-family:Consolas'> <span style='color:#A31515'>&lt;vtkPolyData.h&gt;</span><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-family:Consolas;color:blue'>#include</span><span lang=EN-US style='font-family:Consolas'> <span style='color:#A31515'>&lt;vtkSmartPointer.h&gt;</span><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-family:Consolas;color:blue'>#include</span><span lang=EN-US style='font-family:Consolas'> <span style='color:#A31515'>&lt;vtkSphereSource.h&gt;</span><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-family:Consolas;color:blue'>#include</span><span lang=EN-US style='font-family:Consolas'> <span style='color:#A31515'>&lt;vtkCaptionWidget.h&gt;</span><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-family:Consolas;color:blue'>#include</span><span lang=EN-US style='font-family:Consolas'> <span style='color:#A31515'>&lt;vtkCaptionRepresentation.h&gt;</span><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-family:Consolas;color:blue'>#include</span><span style='font-family:Consolas'> <span style='color:#A31515'>&lt;vtkCaptionActor2D.h&gt;</span><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-family:Consolas;color:blue'>#include</span><span lang=EN-US style='font-family:Consolas'> <span style='color:#A31515'>&lt;vtkTextActor.h&gt;</span><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-family:Consolas;color:blue'>#include</span><span lang=EN-US style='font-family:Consolas'> <span style='color:#A31515'>&lt;vtkTextProperty.h&gt;</span><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-family:Consolas'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-family:Consolas;color:blue'>#include</span><span lang=EN-US style='font-family:Consolas'> <span style='color:#A31515'>&lt;sstream&gt;</span><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-family:Consolas'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-family:Consolas;color:blue'>int</span><span lang=EN-US style='font-family:Consolas'> main(<span style='color:blue'>int</span>, <span style='color:blue'>char</span> *[])<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-family:Consolas'>{<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-family:Consolas'> <o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-family:Consolas'>&nbsp;&nbsp;<span style='color:green'>// A renderer and render window</span><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-family:Consolas'>&nbsp; vtkSmartPointer&lt;vtkRenderer&gt; renderer = <o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-family:Consolas'>&nbsp;&nbsp;&nbsp;&nbsp;vtkSmartPointer&lt;vtkRenderer&gt;::New();<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-family:Consolas'>&nbsp; vtkSmartPointer&lt;vtkRenderWindow&gt; renderWindow = <o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-family:Consolas'>&nbsp;&nbsp;&nbsp;&nbsp;vtkSmartPointer&lt;vtkRenderWindow&gt;::New();<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-family:Consolas'>&nbsp; renderWindow-&gt;AddRenderer(renderer);<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-family:Consolas'> <o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-family:Consolas'>&nbsp;&nbsp;<span style='color:green'>// An interactor</span><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-family:Consolas'>&nbsp; vtkSmartPointer&lt;vtkRenderWindowInteractor&gt; renderWindowInteractor = <o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-family:Consolas'>&nbsp;&nbsp;&nbsp;&nbsp;vtkSmartPointer&lt;vtkRenderWindowInteractor&gt;::New();<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-family:Consolas'>&nbsp; renderWindowInteractor-&gt;SetRenderWindow(renderWindow);<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-family:Consolas'> <o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-family:Consolas'>&nbsp;&nbsp;<span style='color:green'>// Draw text with diameter measure</span><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-family:Consolas'>&nbsp; std::stringstream stream;<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-family:Consolas'>&nbsp; <span style='color:blue'>int</span> id = 2;<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-family:Consolas'>&nbsp; stream &lt;&lt; <span style='color:#A31515'>&quot;(&quot;</span> &lt;&lt; id &lt;&lt; <span style='color:#A31515'>&quot;) &quot;</span>&nbsp; &lt;&lt; std::fixed &lt;&lt; std::setprecision(2) &lt;&lt; 2.2666;<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-family:Consolas'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-family:Consolas'>&nbsp; vtkSmartPointer&lt;vtkCaptionActor2D&gt; sectionTextActor = vtkCaptionActor2D::New();<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-family:Consolas'>&nbsp; sectionTextActor-&gt;SetAttachmentPoint( 0, 0, 0 );<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-family:Consolas'>&nbsp; sectionTextActor-&gt;SetCaption( stream.str().c_str() );<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-family:Consolas'>&nbsp; sectionTextActor-&gt;BorderOff();<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-family:Consolas'>&nbsp; sectionTextActor-&gt;LeaderOff();<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-family:Consolas'> &nbsp;sectionTextActor-&gt;SetPadding(0);<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-family:Consolas'>&nbsp; sectionTextActor-&gt;GetCaptionTextProperty()-&gt;SetJustificationToLeft();<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-family:Consolas'>&nbsp; sectionTextActor-&gt;GetCaptionTextProperty()-&gt;ShadowOff();<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-family:Consolas'>&nbsp; sectionTextActor-&gt;GetCaptionTextProperty()-&gt;ItalicOff();&nbsp; <o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-family:Consolas'>&nbsp;&nbsp;sectionTextActor-&gt;GetCaptionTextProperty()-&gt;SetFontFamilyToCourier();<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-family:Consolas'>&nbsp; sectionTextActor-&gt;GetCaptionTextProperty()-&gt;SetFontSize( 24 );<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-family:Consolas'>&nbsp; sectionTextActor-&gt;GetTextActor()-&gt;SetTextScaleModeToNone();<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-family:Consolas'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-family:Consolas'>&nbsp; renderer-&gt;AddActor2D( sectionTextActor );<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-family:Consolas'>&nbsp; renderer-&gt;SetBackground(1,0,0);<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-family:Consolas'> <o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-family:Consolas'>&nbsp;&nbsp;renderWindow-&gt;Render();<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-family:Consolas'> <o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-family:Consolas'>&nbsp;&nbsp;<span style='color:green'>// Begin mouse interaction</span><o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-family:Consolas'>&nbsp; renderWindowInteractor-&gt;Start();<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-family:Consolas'> <o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-family:Consolas'>&nbsp;&nbsp;</span><span style='font-family:Consolas;color:blue'>return</span><span style='font-family:Consolas'> EXIT_SUCCESS;<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-family:Consolas'>}<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><img width=308 height=334 id="Imagen_x0020_1" src="cid:image001.png@01CE0549.1B186C60"><span lang=EN-US><o:p></o:p></span></p></div></body></html>