<div dir="ltr"><div>Are you explicitly setting up a camera in your code?  The default camera will zoom so that all actors in the scene are visible.<br><br><br></div><div>Shawn<br></div></div><div class="gmail_extra"><br><br>
<div class="gmail_quote">On Wed, Jun 12, 2013 at 2:10 PM, Doug Hoppes <span dir="ltr">&lt;<a href="mailto:dhoppes@mbfbioscience.com" target="_blank">dhoppes@mbfbioscience.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">






<div link="blue" vlink="purple" lang="EN-US">
<div>
<p class="MsoNormal">Hi guys,<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<div style="border:none;border-bottom:solid windowtext 1.0pt;padding:0in 0in 1.0pt 0in">
<p class="MsoNormal" style="border:none;padding:0in">                Okay… not sure where to look about this.  So, I have a glyph3D that is using a vtkspheresource.  I have the following code:<u></u><u></u></p>
<p class="MsoNormal" style="border:none;padding:0in"><u></u> <u></u></p>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">     
<span style="color:green">// Create a sphere to represent the data<u></u><u></u></span></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">     
<span style="color:#010001">vtkSmartPointer</span>&lt;<span style="color:#010001">vtkSphereSource</span>&gt;
<span style="color:#010001">pSphereSource</span> = <span style="color:#010001">vtkSmartPointer</span>&lt;<span style="color:#010001">vtkSphereSource</span>&gt;::<span style="color:#010001">New</span>();<u></u><u></u></span></p>

<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">     
<span style="color:#010001">m_ pSphereSource</span> -&gt;<span style="color:#010001">SetThetaResolution</span>(16);<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">     
<span style="color:#010001">m_ pSphereSource</span> -&gt;<span style="color:#010001">SetPhiResolution</span>(16);<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">     
<span style="color:#010001">m_ pSphereSource</span> -&gt;<span style="color:#010001">SetRadius</span>(1.0);<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"><u></u> <u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">     
<span style="color:#010001">vtkSmartPointer</span>&lt;<span style="color:#010001">vtkGlyph3D</span>&gt;
<span style="color:#010001">glyph3D</span> = <span style="color:#010001">vtkSmartPointer</span>&lt;<span style="color:#010001">vtkGlyph3D</span>&gt;::<span style="color:#010001">New</span>();<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">     
<span style="color:#010001">glyph3D</span>-&gt;<span style="color:#010001">SetSource</span>(<span style="color:#010001">m_pSphereSource</span>-&gt;<span style="color:#010001">GetOutput</span>());<u></u><u></u></span></p>

<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"><u></u> <u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">     
<span style="color:green">// Get the points to show<u></u><u></u></span></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">     
<span style="color:#010001">glyph3D</span>-&gt;<span style="color:#010001">SetInput</span>(<span style="color:#010001">m_pCenterPoints</span>-&gt;<span style="color:#010001">GetOutput</span>());<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">     
<span style="color:#010001">glyph3D</span>-&gt;<span style="color:#010001">SetScaleModeToDataScalingOff</span>();<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">     
<span style="color:#010001">glyph3D</span>-&gt;<span style="color:#010001">Update</span>();<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"><u></u> <u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">     
<span style="color:green">// Show the selection actor in the scene<u></u><u></u></span></span></p>
<p class="MsoNormal" style="text-indent:.5in;text-autospace:none"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;color:#010001">vtkSmartPointer</span><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">&lt;<span style="color:#010001">vtkPolyDataMapper</span>&gt;
<span style="color:#010001">mapper</span> = <span style="color:#010001">vtkSmartPointer</span>&lt;<span style="color:#010001">vtkPolyDataMapper</span>&gt;::<span style="color:#010001">New</span>();<u></u><u></u></span></p>

<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">     
<span style="color:#010001">mapper</span>-&gt;<span style="color:#010001">SetInputConnection</span>(<span style="color:#010001">glyph3D</span>-&gt;<span style="color:#010001">GetOutputPort</span>());<u></u><u></u></span></p>

<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"><u></u> <u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">     
<span style="color:green">// Create the actor based on the selection definition<u></u><u></u></span></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">     
<span style="color:#010001">m_pSelectionActor</span> = <span style="color:#010001">
vtkSmartPointer</span>&lt;<span style="color:#010001">vtkActor</span>&gt;::<span style="color:#010001">New</span>();<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">     
<span style="color:#010001">m_pSelectionActor</span>-&gt;<span style="color:#010001">SetMapper</span>(<span style="color:#010001">mapper</span>);<u></u><u></u></span></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">     
<span style="color:#010001">mapper</span>-&gt;<span style="color:#010001">ScalarVisibilityOff</span>();<u></u><u></u></span></p>
<div style="border:none;border-bottom:solid windowtext 1.0pt;padding:0in 0in 1.0pt 0in">
<p class="MsoNormal" style="text-autospace:none;border:none;padding:0in"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;">     
<span style="color:#010001">m_pSelectionActor</span>-&gt;<span style="color:#010001">GetProperty</span>()-&gt;<span style="color:#010001">SetColor</span>(225, 225, 225);
<u></u><u></u></span></p>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">What I found out is that, depending on what other actors I have in the scene, sometimes the glyphs are large and easily seen.  Other times the glyphs are incredibly small.  I would like to be able to have the sphere’s one size all of the
 time (no matter what actors are in the scene).  Any idea what I’m doing wrong?<span class="HOEnZb"><font color="#888888"><u></u><u></u></font></span></p><span class="HOEnZb"><font color="#888888">
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Doug<u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none"><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;"><u></u> <u></u></span></p>
<p class="MsoNormal"><u></u> <u></u></p>
</font></span></div>
</div>

<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br></div>