<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif;" dir="ltr">
<p>Hi,<br>
<br>
I am creating a 3D text like this:<br>
<br>
</p>
<div>// create text<br>
vtkSmartPointer<vtkVectorText> textSource =<br>
vtkSmartPointer<vtkVectorText>::New();<br>
textSource->SetText("TEST");<br>
textSource->Update();</div>
<div>// create a mapper for the text<br>
vtkSmartPointer<vtkPolyDataMapper> txtmapper =<br>
vtkSmartPointer<vtkPolyDataMapper>::New();<br>
txtmapper->SetInputConnection(transformFilter->GetOutputPort());<br>
// create a subclass of vtkActor: a vtkFollower that remains facing the camera<br>
vtkSmartPointer<vtkFollower> follower =<br>
vtkSmartPointer<vtkFollower>::New();<br>
follower->SetMapper(txtmapper);<br>
follower->SetCamera(renderer->GetActiveCamera());<br>
follower->SetPosition(10.0,20.0,30.0);<br>
<br>
Now the passed follower position is approximately the bottom left corner of my text.<br>
<br>
How can I achieve a text which is centered about my desired position?<br>
For example the text "101" should result in a 3D text with the center being located in the middle of the "0"<br>
<br>
Thank you very much!<br>
<br>
</div>
<br>
<p></p>
</div>
</body>
</html>