<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<div class="" style="word-wrap:break-word">Here is a working solution that I developed with much help from this list and especially David DeMarle (and probably you, Utkarsh), along with a sample data file. 
<div class=""></div>
</div>
<div style="word-wrap:break-word">
<div class=""></div>
<div class=""></div>
</div>
<div class="" style="word-wrap:break-word">
<div class=""></div>
<div class=""><br class="">
</div>
<div class=""><br class="">
<div>
<blockquote type="cite" class="">
<div class="">On Mar 30, 2016, at 8:07 AM, Utkarsh Ayachit <<a href="mailto:utkarsh.ayachit@kitware.com" class="">utkarsh.ayachit@kitware.com</a>> wrote:</div>
<br class="x_Apple-interchange-newline">
<div class="">
<div dir="ltr" class="">Rich,
<div class=""><br class="">
</div>
<div class="">Attached is a sample script that you can run using pvpython or pvbatch or vtkpython executables.</div>
<div class=""><br class="">
</div>
<div class="">Utkarsh</div>
</div>
<div class="x_gmail_extra"><br class="">
<div class="x_gmail_quote">On Tue, Mar 29, 2016 at 1:35 PM, Cook, Rich <span dir="ltr" class="">
<<a href="mailto:cook47@llnl.gov" target="_blank" class="">cook47@llnl.gov</a>></span> wrote:<br class="">
<blockquote class="x_gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
<div class="" style="word-wrap:break-word">
<div class="">I'm still trying to solve my ellipsoid puzzle. </div>
<div class="">From looking around online, I've found a promising avenue.  Create a vtk.vtkParametricEllipsoid, rotate it, and then write to VTK for my user. </div>
<div class="">My question is, can someone help me finish this script?  I am hoping for an experienced user it's trivial.  My objective is to hand the user a python script to convert her data to VTK.  </div>
<div class=""><br class="">
</div>
<div class="">from ? import ?  # WHAT GOES HERE?  Do I need to run this from paraview?  </div>
<div class="">for ellipsoid in ellipsoids: </div>
<blockquote class="" style="margin:0 0 0 40px; border:none; padding:0px">ellipsoid = vtk.vtkParametricEllipsoid()<br class="">
ellipsoid.SetXRadius(50)<br class="">
ellipsoid.SetYRadius(10)<br class="">
ellipsoid.SetZRadius(10)<br class="">
transform = vtk.vtkTransform()<br class="">
transform.RotateWXYZ(45,0,1,0)</blockquote>
<blockquote class="" style="margin:0 0 0 40px; border:none; padding:0px">transform.Translate(100,200,50)</blockquote>
<blockquote class="" style="margin:0 0 0 40px; border:none; padding:0px"># The magic:   connect the transform to the ellipsoid and add it to the scene.</blockquote>
<blockquote class="" style="margin:0 0 0 40px; border:none; padding:0px"># HOW??? </blockquote>
<div class=""><br class="">
</div>
<div class=""># write all objects in the scene to a VTK file  Again, HOW?  <span class="x_HOEnZb"><font color="#888888" class=""><br class="">
<br class="">
<div class=""><span class="" style="border-collapse:separate; font-size:13px; border-spacing:0px"><span class="" style="border-collapse:separate; font-family:Monaco; font-size:13px; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px"><span class="" style="border-collapse:separate; font-family:Monaco; font-size:13px; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px"><span class="" style="border-collapse:separate; font-family:Monaco; font-size:13px; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px"><span class="" style="border-collapse:separate; font-family:Monaco; font-size:13px; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px"><span class="" style="border-collapse:separate; font-family:Monaco; font-size:13px; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px"><span class="" style="border-collapse:separate; font-family:Monaco; font-size:13px; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px"><span class="" style="border-collapse:separate; font-family:Monaco; font-size:13px; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px">
<div class="">-- </div>
<div class="">✐Richard Cook   </div>
<div class="">✇ Lawrence Livermore National Laboratory</div>
<div class="">Bldg-453 Rm-4024, Mail Stop L-557        </div>
<div class="">7000 East Avenue,  Livermore, CA, 94550, USA</div>
<div class="">☎ (office) <a href="tel:%28925%29%20423-9605" value="+19254239605" target="_blank" class="">
(925) 423-9605</a>    </div>
<div class="">☎ (fax) <a href="tel:%28925%29%20423-6961" value="+19254236961" target="_blank" class="">(925) 423-6961</a></div>
<div class="">---</div>
<div class="">Information Management & Graphics Grp., Services & Development Div., Integrated Computing & Communications Dept.</div>
<div class="">(opinions expressed herein are mine and not those of LLNL)</div>
<br class="">
</span></span></span></span></span></span></span><br class="">
</span></div>
<br class="">
</font></span></div>
</div>
<br class="">
_______________________________________________<br class="">
Powered by <a href="http://secure-web.cisco.com/1ortPqUlji2GoZo2RSdhxP3AI6cEdi2ap0jKeswJ_7lkEVI-VzqTwdyQIGJ4cIypf_zrvHAAIGO0mD7AC7HyZ9fsrMJy4c63CxPHOpEw6NaSFGX5GveTxzspw7XnM9a7Y43ul4yEgW8_z9ji6ZcNQDQgIoyK8uNuc5pNchFIopm71zC9W_3GomNOUdBvhdhdR4SOC0M4JsPBhHl6YuLNdN_XFbnPvyesyyW0EhasAQls8WCQkhlJWcKHcBZWukup2CqPz7YozeGbVqHl6VYdMBF5U954vvQYsA6UFaGsYBFvh1jOnHKvPHWT5pmY48z-vPlCePVClzNTHHnvCF9OjusCSkUIYjcUffJgBwcW29CqKTQ2_ONwKiX_hPV7qmsve/http%3A%2F%2Fwww.kitware.com" rel="noreferrer" target="_blank" class="">
www.kitware.com</a><br class="">
<br class="">
Visit other Kitware open-source projects at <a href="http://secure-web.cisco.com/1Vf0smVBSzXh-Ov2c-OCGjA7unhsO9_P0K0VfzpHJEitUtESoKsZ5PqzlsXQVB35nQsIw1UdrVYHmvP_u7E6pUmKqxECnWev1d8bMD9OBUhJNYPQ3TM36cKK53Nd9Cg5XAEqW4BOkGhTo6MbfBSFVOJy1OwV5dJxZzDNWmk80trhh2sBbWVzRxvEHxlQ8I2YQS10GTVeu0uWH4Qg-4Hdnp4UWlQN0QBQky_XolZSuFoXXFWi27ZubBiaqUo1PGnsCom_jscjwWVumrc2k5f0u0PASok6V0DRR0kgI6t9AIqexJvVGBoXMPVGJWRHgGsEfyssviKqabcTpCpKlVLIDBJMxJEZS_zcmckkRTh7VNcZQpA2lbzVhCx5A9pvaW1gT/http%3A%2F%2Fwww.kitware.com%2Fopensource%2Fopensource.html" rel="noreferrer" target="_blank" class="">
http://www.kitware.com/opensource/opensource.html</a><br class="">
<br class="">
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://secure-web.cisco.com/1gMvNKYfoBcd6FEGyz3Z5vPGQ-j2UJlU1dp01XHmK9Bo_qUuUWHSccCewsEcvob_RwMSA_176IsqaoIbwKtJdFh3AMwdhOqu7w0HJen9J4FSrsBQHhG297XuiJc7d7CSwTRXzeIgulN1IbISPO-zCjiHtrTWMpaV9sbjfaiOk1wYzFdhoT_b2g9JF0QmLQsUt4A1iMOe-wiiIc5kfhOerxC_5n_erFT5nFCGJm5FYogUXxRKfUNyo-AYTdOHaqYiAiHQiMoIEtLE2MbLzw8-wKhEk-c4EevJPbcDQ6wjm95uk9nEIS4zGZJkci906RZzJAEv1z-DkNRl3ei1fHBomav7M4b4NHiBpE7XXb0YSdt40QpElyRu7mfhSDfg1AKMW/http%3A%2F%2Fparaview.org%2FWiki%2FParaView" rel="noreferrer" target="_blank" class="">
http://paraview.org/Wiki/ParaView</a><br class="">
<br class="">
Search the list archives at: <a href="http://markmail.org/search/?q=ParaView" rel="noreferrer" target="_blank" class="">
http://markmail.org/search/?q=ParaView</a><br class="">
<br class="">
Follow this link to subscribe/unsubscribe:<br class="">
<a href="http://secure-web.cisco.com/1LfjDkIeiov9cRryNT-1cO9sV9YOVRAPyvyeOkwttqzJq8VnN0NqVRH5Cl-88y8-Xk8Mb3rRgasWM1LSDF2MNlm6f-JpVLVJGHaQNMV_sqAJbcNWgkHa1Wz0jUYYb73Yu2T9tjxAZHHUK3Qh0VYHvZzTauvcF1Isc_-gZQwQTH0HHGtxx2Ve0-Ui54y5MGfHk50XjfvlGBosbfJZd_l8qP67L6VvvBFgdN1lNRolJmAC3czRNjkE8c4bDsW-Fdj0Y8DQAEgLfRjnWQi1vRfdYLCA1PNseW3VcgtnrIlA5BQqiQJna30ugnwOxJ-nthlwuA8rMk2_JmjiYB7NAd38RxeNAPDwpG-H0CnAI80mTvIrQoSxU35TvB6LqB7VBcsyF/http%3A%2F%2Fpublic.kitware.com%2Fmailman%2Flistinfo%2Fparaview" rel="noreferrer" target="_blank" class="">http://public.kitware.com/mailman/listinfo/paraview</a><br class="">
<br class="">
</blockquote>
</div>
<br class="">
</div>
<span id="x_cid:C06007EB-1209-4F60-B078-2B6712A8A1DC@llnl.gov"><sample.py></span></div>
</blockquote>
</div>
<br class="">
<div class=""><span class="x_Apple-style-span" style="border-collapse:separate; font-size:13px; border-spacing:0px"><span class="x_Apple-style-span" style="border-collapse:separate; color:rgb(0,0,0); font-family:Monaco; font-size:13px; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:2; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px"><span class="x_Apple-style-span" style="border-collapse:separate; color:rgb(0,0,0); font-family:Monaco; font-size:13px; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:2; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px"><span class="x_Apple-style-span" style="border-collapse:separate; color:rgb(0,0,0); font-family:Monaco; font-size:13px; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; text-indent:0px; text-transform:none; orphans:2; white-space:normal; widows:2; word-spacing:0px"><span class="x_Apple-style-span" style="border-collapse:separate; color:rgb(0,0,0); font-family:Monaco; font-size:13px; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; text-indent:0px; text-transform:none; orphans:2; white-space:normal; widows:2; word-spacing:0px"><span class="x_Apple-style-span" style="border-collapse:separate; color:rgb(0,0,0); font-family:Monaco; font-size:13px; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; text-indent:0px; text-transform:none; orphans:2; white-space:normal; widows:2; word-spacing:0px"><span class="x_Apple-style-span" style="border-collapse:separate; color:rgb(0,0,0); font-family:Monaco; font-size:13px; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; text-indent:0px; text-transform:none; orphans:2; white-space:normal; widows:2; word-spacing:0px"><span class="x_Apple-style-span" style="border-collapse:separate; color:rgb(0,0,0); font-family:Monaco; font-size:13px; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; text-indent:0px; text-transform:none; orphans:2; white-space:normal; widows:2; word-spacing:0px">
<div class="">-- </div>
<div class="">✐Richard Cook   </div>
<div class="">✇ Lawrence Livermore National Laboratory</div>
<div class="">Bldg-453 Rm-4024, Mail Stop L-557        </div>
<div class="">7000 East Avenue,  Livermore, CA, 94550, USA</div>
<div class="">☎ (office) (925) 423-9605    </div>
<div class="">☎ (fax) (925) 423-6961</div>
<div class="">---</div>
<div class="">Information Management & Graphics Grp., Services & Development Div., Integrated Computing & Communications Dept.</div>
<div class="">(opinions expressed herein are mine and not those of LLNL)</div>
<br class="x_Apple-interchange-newline">
</span></span></span></span></span></span></span><br class="x_Apple-interchange-newline">
</span></div>
<br class="">
</div>
</div>
</body>
</html>