<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
<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 style="margin: 0 0 0 40px; border: none; padding: 0px;" class="">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 style="margin: 0 0 0 40px; border: none; padding: 0px;" class="">transform.Translate(100,200,50)</blockquote>
<blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;" class=""># The magic: connect the transform to the ellipsoid and add it to the scene.</blockquote>
<blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;" class=""># HOW??? </blockquote>
<div class=""><br class="">
</div>
<div class=""># write all objects in the scene to a VTK file Again, HOW? <br class="">
<br class="">
<div apple-content-edited="true" class=""><span class="Apple-style-span" style="border-collapse: separate; font-size: 13px; border-spacing: 0px;"><span class="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; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><span class="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; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><span class="Apple-style-span" style="border-collapse: separate; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; 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; -webkit-text-decorations-in-effect: none; text-indent: 0px; -webkit-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; 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; -webkit-text-decorations-in-effect: none; text-indent: 0px; -webkit-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; 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; -webkit-text-decorations-in-effect: none; text-indent: 0px; -webkit-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; 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; -webkit-text-decorations-in-effect: none; text-indent: 0px; -webkit-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; 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; -webkit-text-decorations-in-effect: none; text-indent: 0px; -webkit-text-size-adjust: auto; 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="Apple-interchange-newline">
</span></span></span></span></span></span></span><br class="Apple-interchange-newline">
</span></div>
<br class="">
</div>
</body>
</html>