<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7652.24">
<TITLE>RE: [vtkusers] Default coordinate system for vtkPolyData !</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->
<BR>
<BR>
<P><FONT SIZE=2>Once again thanks for your reply Amy.Perhaps you could help me a bit more.I am trying to represent the coordinates of vertices in my vtp model in terms of "rotation invariant" basis so that the new coordinate values don't change when a model is rotated.<BR>
<BR>
I pick up three point A,B and C using the point Ids of the model and use them to define this "rotation invariant "basis S.<BR>
vector X= vector AB cross vector AC<BR>
vector Y= vector X cross vector AB<BR>
<BR>
now AB, X and Y define new orthogonal basis. These basis should be rotation invariant because the basis undergo the same rotation as any of the points does.If coordinates(world coordinates presumably)of all the vertices in the model are described in terms to these basis vectors and then the model is rotated,these new transformed coordinates must not change.But when I do it practically, they do change.<BR>
<BR>
Is there anything wrong with the logic ?<BR>
<BR>
I am really stuck with this.<BR>
<BR>
Best Regards,<BR>
- Salman<BR>
-----Original Message-----<BR>
From: Amy Squillacote [<A HREF="mailto:ahs@cfdrc.com">mailto:ahs@cfdrc.com</A>]<BR>
Sent: Tue 15/01/2008 2:36 PM<BR>
To: Salman M Mr (PG/R - Electronic Eng)<BR>
Cc: vtkusers@vtk.org<BR>
Subject: Re: [vtkusers] Default coordinate system for vtkPolyData !<BR>
<BR>
Hi Salman,<BR>
<BR>
vtkPolyData does not have a notion of what coordinate system it's in. I<BR>
don't think there's a way to get this information from a .vtp file. The<BR>
vtkActor is coordinate-system aware. Typically you use the world<BR>
coordinate system when you're setting up the points for a vtkPolyData,<BR>
but this does not have to be the case.<BR>
<BR>
- Amy<BR>
<BR>
M.Salman@surrey.ac.uk wrote:<BR>
><BR>
><BR>
> Thanks for your reply Amy.Supppose I have a vtp model,how do I find<BR>
> out which coordinate system is it using?<BR>
><BR>
> I really appreciate your help,<BR>
><BR>
> Thanks<BR>
><BR>
> Salman<BR>
><BR>
><BR>
> -----Original Message-----<BR>
> From: Amy Squillacote [<A HREF="mailto:ahs@cfdrc.com">mailto:ahs@cfdrc.com</A>]<BR>
> Sent: Tue 15/01/2008 2:06 PM<BR>
> To: Salman M Mr (PG/R - Electronic Eng)<BR>
> Cc: vtkusers@vtk.org<BR>
> Subject: Re: [vtkusers] Default coordinate system for vtkPolyData !<BR>
><BR>
> Hi Salman,<BR>
><BR>
> When saving out a .vtp file, VTK uses whatever point coordinates<BR>
> (vtkPoints) are defined in the vtkPolyData being written out.<BR>
><BR>
> - Amy<BR>
><BR>
> M.Salman@surrey.ac.uk wrote:<BR>
> ><BR>
> ><BR>
> > Hi All,<BR>
> ><BR>
> ><BR>
> ><BR>
> > I want to know which default coordinate system from the following does<BR>
> > VTK use while saveing a model in vtp format.<BR>
> ><BR>
> > DISPLAY - x-y pixel values in window<BR>
> > NORMALIZED DISPLAY - x-y (0,1) normalized values<BR>
> > VIEWPORT - x-y pixel values in viewport<BR>
> > NORMALIZED VIEWPORT - x-y (0,1) normalized value in viewport<BR>
> > VIEW - x-y-z (-1,1) values in camera coordinates. (z<BR>
> > is depth)<BR>
> > WORLD - x-y-z global coordinate values<BR>
> > USERDEFINED - x-y-z in User defined space<BR>
> ><BR>
> ><BR>
> > this is really important for me .<BR>
> ><BR>
> > Best Regards,<BR>
> ><BR>
> > Salman<BR>
> ><BR>
> ><BR>
> > ------------------------------------------------------------------------<BR>
> ><BR>
> > _______________________________________________<BR>
> > This is the private VTK discussion list.<BR>
> > Please keep messages on-topic. Check the FAQ at:<BR>
> <A HREF="http://www.vtk.org/Wiki/VTK_FAQ">http://www.vtk.org/Wiki/VTK_FAQ</A><BR>
> > Follow this link to subscribe/unsubscribe:<BR>
> > <A HREF="http://www.vtk.org/mailman/listinfo/vtkusers">http://www.vtk.org/mailman/listinfo/vtkusers</A><BR>
> > <BR>
><BR>
><BR>
><BR>
<BR>
<BR>
<BR>
</FONT>
</P>
</BODY>
</HTML>