<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif;">
<div>
<div>
<div>To add a bit more detail to the answer, the reason the transform filter is not scaling all the vectors is because the proper transformation of vectors depends on the type of vector so the filter is being conservative and not transforming most of the vectors
 at all. To understand this, let's back up and look at different types of vectors that might be in scientific data.</div>
</div>
</div>
<div><br>
</div>
<div>First, there are vectors that deal with spatial movements. Things like displacements, velocities, and accelerations. These have units like m, m/s, and m/s^2, respectively. They clearly should be scaled along with the space like you described.</div>
<div><br>
</div>
<div>But other types of vectors shouldn't be scaled. For example, consider electrical current. Current is the amount of electricity that passes through a point per unit of time, and a vector can give the direction of the movement. However, it is not clear that
 scaling up the model means that more electricity passes through the point. Other "vectors" might just be triples that have no spatial meaning and therefore should also not be scaled. Other spatial vectors have different types of transformations when being
 scaled. A normal vector, for instance, is transformed by the inverse transpose to maintain its perpendicular-to-surface property. A flux vector, which is related to surface area, would be scaled quadratically.</div>
<div><br>
</div>
<div>So the problem is that the transform filter has no way to reliably determine how each vector field should be scaled. VTK data sets have the ability to identify certain fields with special attributes. For example, one field can be attributed as the "vectors"
 and another can be attributed as the "normals". The transform filter assumes that the vectors are to be scaled linearly and the normals are transformed by the inverse transpose. The rest of the arrays are left alone.</div>
<div><br>
</div>
<div>So in summary, in a sense this is in fact a "bug" in that the fields are not being handled correctly. But the filter is doing about as best as it can, so there is no real fix for this bug.</div>
<div><br>
</div>
<div>-Ken</div>
<div><br>
</div>
<span id="OLK_SRC_BODY_SECTION">
<div style="font-family:Calibri; font-size:11pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<span style="font-weight:bold">From: </span><Scott>, Walter Scott <<a href="mailto:wascott@sandia.gov">wascott@sandia.gov</a>><br>
<span style="font-weight:bold">Date: </span>Monday, January 5, 2015 at 12:36 PM<br>
<span style="font-weight:bold">To: </span>Mengda Wu <<a href="mailto:phdggg@gmail.com">phdggg@gmail.com</a>>, "<a href="mailto:paraview@paraview.org">paraview@paraview.org</a>" <<a href="mailto:paraview@paraview.org">paraview@paraview.org</a>><br>
<span style="font-weight:bold">Subject: </span>Re: [Paraview] [EXTERNAL] Transform filter bug? why some of the data arrays get scaled?<br>
</div>
<div><br>
</div>
<div 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">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<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;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","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;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);">Mengda,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);">I believe that the transform filter is just scaling the space – i.e., the X, Y and Z data.  If you want to scale data arrays, use the Calculator filter.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);">Alan<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-left:.5in"><b><span style="font-size: 10pt; font-family: Tahoma, sans-serif;">From:</span></b><span style="font-size: 10pt; font-family: Tahoma, sans-serif;"> ParaView [<a href="mailto:paraview-bounces@paraview.org">mailto:paraview-bounces@paraview.org</a>]
<b>On Behalf Of </b>Mengda Wu<br>
<b>Sent:</b> Saturday, January 03, 2015 11:50 AM<br>
<b>To:</b> <a href="mailto:paraview@paraview.org">paraview@paraview.org</a><br>
<b>Subject:</b> [EXTERNAL] [Paraview] Transform filter bug? why some of the data arrays get scaled?<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left:.5in"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:0in;margin-right:0in;margin-bottom:12.0pt;margin-left:.5in">
Hi All,<o:p></o:p></p>
</div>
<p class="MsoNormal" style="margin-left:.5in">   I found a possible bug of the paraview's transform filter. If I put just the uniform scaling, e.g. set the scale to 10 10 10. Some of the vector-type data arrays get scaled by 10 but not all. Why is that?<br>
<br>
Thanks,<br>
Mengda<o:p></o:p></p>
</div>
</div>
</div>
</div>
</span>
</body>
</html>