[vtkusers] Ref:vtkusers Digest, Vol 34, Issue 3

Ing Manuel Ochoa m8a at prodigy.net.mx
Tue Feb 6 11:10:54 EST 2007


HELP I have big  problem !!.... 
Does anybody know how can i read DICOM image?  

De : vtkusers-bounces+m8a=prodigy.net.mx at vtk.org
Para : vtkusers at vtk.org
Copia : 
Fecha : Sat, 03 Feb 2007 12:00:47 -0500 (EST)
Asunto : vtkusers Digest, Vol 34, Issue 3


> Send vtkusers mailing list submissions to
> vtkusers at vtk.org
> 
> To subscribe or unsubscribe via the World Wide Web, visit
> http://www.vtk.org/mailman/listinfo/vtkusers
> or, via email, send a message with subject or body 'help' to
> vtkusers-request at vtk.org
> 
> You can reach the person managing the list at
> vtkusers-owner at vtk.org
> 
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of vtkusers digest..."
> 
> 
> Today's Topics:
> 
> 1. Really need help on Parallel vtk with/without MPI (Wei Woo)
> 2. Re: closed polygon from splinewidget (Dean Inglis)
> 3. Re: Help,simple newbie questions (Aina Nagma)
> 
> 
> ----------------------------------------------------------------------
> 
> Message: 1
> Date: Fri, 2 Feb 2007 23:32:53 -0800 (PST)
> From: Wei Woo 
> Subject: [vtkusers] Really need help on Parallel vtk with/without MPI
> To: vtkusers at vtk.org
> Message-ID: <970952.94291.qm at web62210.mail.re1.yahoo.com>
> Content-Type: text/plain; charset="iso-8859-1"
> 
> I am again writing my query.I really need help.But now only questions on parallel vtk.I shall be highly obliged if anyone give me some guidance /hints regarding following query:
> 
> 1)How to make program run parallel without MPI?What configuration in vtk do I need to make?
> 2)To run the same program with MPI,after downloading MPI,what change in VTK configuration do I need to make?
> 
> Wei.
> 
> Wei Woo wrote:
> I am again writing my question.Is it always preferable to triangulate vtkPolyData using vtkTriangleFilter when it is not triangulated?In the VTK book,it is recommended to use parallel make even on a single processor system.I have installed without parallel option.I have very little knowledge with MPI,But this time if I want to use parallel on a single computer what do I need to do?How to configure VTK with MPI on a single processor?Thanks
> Wei.
> 
> Wei Woo wrote:
> When vtkPolyData is not triangulated,then should it be triangulated first.Should it make the normals more regular and consistent rather than when not triangulated?
> Looking forward to a reply.Wei.
> 
> ---------------------------------
> Be a PS3 game guru.
> Get your game face on with the latest PS3 news and previews at Yahoo! Games._______________________________________________
> This is the private VTK discussion list. 
> Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
> 
> 
> 
> ---------------------------------
> Have a burning question? Go to Yahoo! Answers and get answers from real people who know._______________________________________________
> This is the private VTK discussion list. 
> Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
> 
> 
> 
> ---------------------------------
> Bored stiff? Loosen up...
> Download and play hundreds of games for free on Yahoo! Games.
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: http://public.kitware.com/pipermail/vtkusers/attachments/20070202/d8c96357/attachment-0001.htm
> 
> ------------------------------
> 
> Message: 2
> Date: Sat, 3 Feb 2007 10:37:28 -0500
> From: "Dean Inglis" 
> Subject: Re: [vtkusers] closed polygon from splinewidget
> To: 
> Cc: Michael.Knopke at gmx.de
> Message-ID: 
> Content-Type: text/plain; charset="iso-8859-1"
> 
> Hi Michael,
> 
> vtkSplineWidget gives a shallow copy of the output (vtkPolyData)
> from the widget's internal vtkParametricFunctionSource, but that
> output is a polyline NOT a polygon, which vtkTriangleFilter expects.
> If you know that the output is a closed planar curve, then
> just triangulate without recopying.
> 
> if ( NewSpline->IsClosed() ) // is it actually geometrically closed?
> {
> vtkPolyData* temp = vtkPolyData::New();
> NewSpline->GetPolyData(temp); // temporarily get the shallow copy
> 
> NewPoly->SetPoints(temp->GetPoints()); // trick to convert polylines to a
> polygon
> NewPoly->SetPolys(temp->GetLines());
> 
> triangleFilter->SetInput(NewPoly);
> triangleFilter->Update();
> temp->Delete();
> }
> else
> {
> // do something?
> }
> 
> Dean
> 
> 
> 
> 
> Hi,
> 
> I want to probe a dataset with the vtkSplineWidget. But I don't know how to
> get the closed surface (inside of closed spline).
> 
> I use the vtkSplineWidget to create a closed Spline and get the
> corresponding PolyData (->GetPolyData())from the spline. If I visualize it,
> I can see that it is a closed Spline (->ClosedOn() was set in
> vtkSplineWidget) but only as a line like a Circle or whatever you form with
> it.
> 
> What I need is the complete Surface e.g. a disk
> 
> 
> 
> The way I tried is this:
> 
> 
> 
> 1.) create a PolyLine (should be closed) from the PolyData.
> 
> 2.) create vtkCellArray and create new polygon from PolyLine and Array
> 
> 3.) Tessalate the polgon // gives ERROR
> 
> 
> 
> Now when I test to triangulate the new Polygon I get an error that the
> vtkTriangleFilter is working on a degenerated polygon.
> 
> 
> 
> Here is the code snippet:
> 
> 
> 
> // the spline returns polydata (which can be shown once mapped, it
> forms a circle)
> 
> NewSpline->GetPolyData(NewPoly);
> 
> 
> // creating a PolyLine from the polydata (not sure if correct)
> 
> int pointCount = NewPoly->GetPoints()->GetNumberOfPoints();
> 
> 
> 
> aPolyLine = vtkPolyLine::New();
> 
> aPolyLine->GetPointIds()->SetNumberOfIds(pointCount);
> 
> 
> 
> int* pntIds = new int[pointCount];
> 
> for (unsigned int i = 0; i < (int)pointCount; i++)
> 
> {
> 
> pntIds[i] = i;
> 
> }
> 
> 
> 
> aPolyLine->Initialize(pointCount, pntIds, NewPoly->GetPoints());
> 
> 
> 
> vCA = vktCellArray::New();
> 
> vCA->InsertNextCell(aPolyLine);
> 
> 
> 
> 
> 
> // this is from Examples capCow and should create a Polygon from
> closed PolyLine ( I also tried the vtkStripper to create a closed PolyLine
> but didn?t help)
> 
> tempPoly = vtkPolyData::New();
> 
> tempPoly->SetPoints(aPolyLine->GetPoints());
> 
> tempPoly->SetPolys(vCA);
> 
> 
> 
> 
> 
> triangleFilter->SetInput(tempPoly);
> 
> triangleFilter->Update(); // ERROR vtkPolygon (94564696): Degenerate
> polygon encountered during triangulation
> 
> 
> Can anybody help?
> 
> Thanks alot
> 
> Michael
> 
> 
> 
> ------------------------------
> 
> Message: 3
> Date: Sat, 3 Feb 2007 08:10:27 -0800 (PST)
> From: Aina Nagma 
> Subject: Re: [vtkusers] Help,simple newbie questions
> To: venugopal gudimetla 
> Cc: vtkusers at vtk.org
> Message-ID: <783856.41210.qm at web38302.mail.mud.yahoo.com>
> Content-Type: text/plain; charset="iso-8859-1"
> 
> Hi Venu,
> I understand that to measure the rotation i,e, RotateX,RotateY and RotateZ,I need to find the angle between yz,zx and xy axes of both vectors separartely.But what would be the case if the vector is ( 0,1,0).?What would be the angle between zx axes?The following formula results in infinity.
> I am querying for a long time.May be my question is too simple.Any guidance to make my conception clear would be greatly appreciated.
> A.N.
> 
> venugopal gudimetla wrote:
> Are you trying to find the angle between two planes? I guess you can find the cosines in each direction.
> 
> in each direction :
> v1?v2 = |v1||v2| cos(angle)
> therefore cos(angle)xy = v1?v2 /|v1||v2|
> repeat this for other two directions.
> v1?v3 = |v1||v3| cos(angle)
> therefore cos(angle)xz = v1?v3 /|v1||v3|
> 
> Thanks
> Venu
> 
> 
> 
> On 1/22/07, Aina Nagma wrote: Hi,
> I have a simple newbie question.I have two normals n1 = (-0.75,-0.5,0.25) and n2 = ( 0.5,-0.6,0.0).I want to know the angles between them separately in X,Y and Z direction.
> Can any body help me regarding this?
> Thanks in advance.
> 
> A. N.
> 
> ---------------------------------
> Everyone is raving about the all-new Yahoo! Mail beta. 
> 
> 
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers 
> 
> 
> 
> 
> 
> 
> 
> ---------------------------------
> TV dinner still cooling?
> Check out "Tonight's Picks" on Yahoo! TV.
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: http://public.kitware.com/pipermail/vtkusers/attachments/20070203/242d9d0e/attachment.html
> 
> ------------------------------
> 
> _______________________________________________
> vtkusers mailing list
> vtkusers at vtk.org
> http://www.vtk.org/mailman/listinfo/vtkusers
> 
> 
> End of vtkusers Digest, Vol 34, Issue 3
> ***************************************


Ing. Manuel ochoa Alfaro
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20070206/b7e170f8/attachment.htm>


More information about the vtkusers mailing list