[vtkusers] Extracting polylines using vtkstripper

david bahn bahndavid2006 at gmail.com
Wed Sep 4 06:06:36 EDT 2013


Anybody can tell me, how can i extract polylines from vtkpolydata using
vtkstripper class?


David









On Tue, Sep 3, 2013 at 6:00 PM, <vtkusers-request at vtk.org> wrote:

> 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. Re: mesh (Max)
>    2. Re: Volume Outline on the surface (david bahn)
>    3. Re: Tile rendering (Sebastien)
>    4. Re: Libraries (Sebastien Jourdain)
>    5. Need to save vtkVolume image (Sahan Ranasinghe)
>    6. Need to save vtkVolume as an 3D image (Sahan Ranasinghe)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Tue, 3 Sep 2013 06:05:33 -0700 (PDT)
> From: Max <smapersmaper at gmail.com>
> Subject: Re: [vtkusers] mesh
> To: vtkusers at vtk.org
> Message-ID: <1378213533914-5723222.post at n5.nabble.com>
> Content-Type: text/plain; charset=us-ascii
>
> Hi dhekra,
> You need list of vertices and faces(edges) to build a mesh.
> Partial code:
>
>                 //object to represent cell connectivity.
>                 triangles = vtkCellArray.New();
>
>                 //represent and manipulate 3D points
>                 points = vtkPoints.New();
>
>                 // Add vertices
>                 foreach (Point3D vertex in vmMesh.ShapePointsList)
>                 {
>                     points.InsertNextPoint(vertex.X, vertex.Y, vertex.Z);
>                 }
>
>                 // Add faces
>                 foreach (MeshFace face in vmMesh.ShapeTriangles)
>                 {
>                     vtkTriangle triangle = vtkTriangle.New();
>                     triangle.GetPointIds().SetId(0, face.N1);
>                     triangle.GetPointIds().SetId(1, face.N2);
>                     triangle.GetPointIds().SetId(2, face.N3);
>                     triangles.InsertNextCell(triangle);
>                 }
>
>                 //represents a geometric structure consisting of vertices,
> lines, polygons, and triangle strips
>                 mesh = vtkPolyData.New();
>                 mesh.SetPoints(points);
>                 mesh.SetPolys(triangles);
>                 mesh.Update();
>
>
>
>
> --
> View this message in context:
> http://vtk.1045678.n5.nabble.com/mesh-tp5723202p5723222.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
>
>
> ------------------------------
>
> Message: 2
> Date: Tue, 3 Sep 2013 15:51:13 +0200
> From: david bahn <bahndavid2006 at gmail.com>
> Subject: Re: [vtkusers] Volume Outline on the surface
> To: Bill Lorensen <bill.lorensen at gmail.com>, vtkusers at vtk.org
> Message-ID:
>         <
> CAD5JttKokTAf-Wn+x2Ci3ROQzf-d4RaE5a1pwoLTgdChtnBizQ at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hi,
>   My task is achieved using this example, but my 2nd question is: can we do
> the say thing using vtkvolume, vtkvolumeproperty or vtkvolumeraycastmapper
> class? as i have to outline on the volume data.
>
> If yes, can you give me some example related to this?
>
>
> David
>
>
> On Mon, Sep 2, 2013 at 2:12 PM, Bill Lorensen <bill.lorensen at gmail.com
> >wrote:
>
> > http://vtk.org/Wiki/VTK/Examples/Cxx/PolyData/Outline
> >
> >
> > On Mon, Sep 2, 2013 at 8:09 AM, david bahn <bahndavid2006 at gmail.com>
> > wrote:
> > > Hi,
> > >    Here volume outline means, i have to create the volume outline of
> the
> > > data, like it is given in the on right side figure
> > >
> >
> http://www.it.uu.se/edu/course/homepage/vetvis/ht11/ComputerExercises/assignment2.shtml
> > > , can anybody tell how can i do this? note: i cannot use vtkwidget
> class
> > > here.
> > >
> > >
> > > On Fri, Aug 30, 2013 at 2:28 PM, Bill Lorensen <
> bill.lorensen at gmail.com>
> > > wrote:
> > >>
> > >> What is the volume outline?
> > >>
> > >>
> > >>
> > >> On Fri, Aug 30, 2013 at 8:24 AM, david bahn <bahndavid2006 at gmail.com>
> > >> wrote:
> > >>>
> > >>> Hi All,
> > >>>       Anybody can tell me, how can we show the volume outline on the
> > >>> surface(or polydata).
> > >>>
> > >>>
> > >>> david
> > >>>
> > >>> _______________________________________________
> > >>> Powered by www.kitware.com
> > >>>
> > >>> Visit other Kitware open-source projects at
> > >>> http://www.kitware.com/opensource/opensource.html
> > >>>
> > >>> Please keep messages on-topic and check the VTK FAQ at:
> > >>> http://www.vtk.org/Wiki/VTK_FAQ
> > >>>
> > >>> Follow this link to subscribe/unsubscribe:
> > >>> http://www.vtk.org/mailman/listinfo/vtkusers
> > >>>
> > >>
> > >>
> > >>
> > >> --
> > >> Unpaid intern in BillsBasement at noware dot com
> > >
> > >
> >
> >
> >
> > --
> > Unpaid intern in BillsBasement at noware dot com
> >
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://www.vtk.org/pipermail/vtkusers/attachments/20130903/7b1ff23f/attachment-0001.htm
> >
>
> ------------------------------
>
> Message: 3
> Date: Tue, 3 Sep 2013 07:15:40 -0700 (PDT)
> From: Sebastien <sebastien.calvi at yahoo.com>
> Subject: Re: [vtkusers] Tile rendering
> To: vtkusers at vtk.org
> Message-ID: <1378217740313-5723225.post at n5.nabble.com>
> Content-Type: text/plain; charset=us-ascii
>
> Hi all,
>
> Apparently not too many people have been confronted to that matter...
>
> Lets say that the multi-pass rendering with IceT is what I need to do
> (http://www.vtk.org/Wiki/VTK/MultiPass_Rendering_With_IceT
> ), will it be possible to use this IceT classes with the VTK libraries?
>
> Also, I've read that it was question to have these IceT classes integrated
> inside VTK libraries, if yes, any revision or date in sight?
>
> If not, if there is an other way to perform tile-rendering, please, do not
> hesitate to let me know ;)
>
> Thank you,
>
> Sebastien.
>
>
>
> --
> View this message in context:
> http://vtk.1045678.n5.nabble.com/Tile-rendering-tp5723181p5723225.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
>
>
> ------------------------------
>
> Message: 4
> Date: Tue, 3 Sep 2013 10:18:33 -0400
> From: Sebastien Jourdain <sebastien.jourdain at kitware.com>
> Subject: Re: [vtkusers] Libraries
> To: Altamash Abbasi <altamashabbasi at gmail.com>
> Cc: "H. Vidal, Jr." <hvidal at tesseract-tech.com>,        "vtkusers at vtk.org"
>         <vtkusers at vtk.org>
> Message-ID:
>         <CABObKxc+X4RLUeaymXc2Vf+P=X7dUoE6715=
> 5RSe8s9MYMntzA at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Then don't...
>
>
> On Mon, Sep 2, 2013 at 1:41 PM, Altamash Abbasi <altamashabbasi at gmail.com
> >wrote:
>
> > I dont want to work like you people . . .
> >
> >
> > On Mon, Sep 2, 2013 at 10:00 PM, H. Vidal, Jr. <
> hvidal at tesseract-tech.com>wrote:
> >
> >> You know what?
> >>
> >> It's not a joke.
> >>
> >> Here is what google of 'vtk classes tutorial'
> >> yields in first few hits.
> >>
> >> http://www.vtk.org/Wiki/VTK/**Tutorials/External_Tutorials<
> http://www.vtk.org/Wiki/VTK/Tutorials/External_Tutorials>
> >>
> >> http://www.vtk.org/Wiki/VTK/**Examples/Developers<
> http://www.vtk.org/Wiki/VTK/Examples/Developers>
> >>
> >> http://www.vtk.org/Wiki/VTK/**Examples/Cxx<
> http://www.vtk.org/Wiki/VTK/Examples/Cxx>
> >>
> >> http://www.vtk.org/Wiki/VTK/**Examples/Cxx/PolyData/**TubeFilter<
> http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/TubeFilter>
> >>
> >> http://www.vtk.org/Wiki/VTK/**Examples/Python<
> http://www.vtk.org/Wiki/VTK/Examples/Python>
> >>
> >>
> http://www.bu.edu/tech/about/**research/training/online-**tutorials/vtk/<
> http://www.bu.edu/tech/about/research/training/online-tutorials/vtk/>
> >>
> >> http://www.ncsa.illinois.edu/~**semeraro/PPT/VTK_TUTORIAL/v3_**
> >> document.htm<
> http://www.ncsa.illinois.edu/~semeraro/PPT/VTK_TUTORIAL/v3_document.htm>
> >>
> >> Now as we say in Spanish, why don't you stop
> >> being such a putz on this list and go study and
> >> get some work done instead of being like very other
> >> lazy engineer from your neck of the woods who simply
> >> asks....do this for me because I am too lazy to
> >> figure it out on my own.
> >>
> >> Go earn your keep.
> >>
> >> h
> >>
> >>
> >> On 09/02/2013 12:56 PM, Altamash Abbasi wrote:
> >>
> >>> Nice Joke . . .
> >>>
> >>>
> >>> On Mon, Sep 2, 2013 at 9:07 PM, Gib Bogle <g.bogle at auckland.ac.nz
> >>> <mailto:g.bogle at auckland.ac.nz**>> wrote:
> >>>
> >>>     Google
> >>>
> >>>
> >>>     On 3/09/2013 3:58 a.m., Altamash Abbasi wrote:
> >>>
> >>>>     I want to learn all the libraries of VTK and their functions . .
> >>>>     .  which tutorial/web address/books will help me . . .
> >>>>
> >>>
> >
> > _______________________________________________
> > Powered by www.kitware.com
> >
> > Visit other Kitware open-source projects at
> > http://www.kitware.com/opensource/opensource.html
> >
> > Please keep messages on-topic and check the VTK FAQ at:
> > http://www.vtk.org/Wiki/VTK_FAQ
> >
> > Follow this link to subscribe/unsubscribe:
> > http://www.vtk.org/mailman/listinfo/vtkusers
> >
> >
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://www.vtk.org/pipermail/vtkusers/attachments/20130903/e1824387/attachment-0001.htm
> >
>
> ------------------------------
>
> Message: 5
> Date: Tue, 3 Sep 2013 21:15:39 +0530
> From: Sahan Ranasinghe <sahancr at gmail.com>
> Subject: [vtkusers] Need to save vtkVolume image
> To: "vtkusers at vtk.org" <vtkusers at vtk.org>
> Message-ID:
>         <
> CA+1xp0K_Q3y6rwAvrGi7Xi6iHLy+n-h94dtCkcVdxBGaFt5n8g at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hi,
>
> I need to save a vtkvolume object as a 3D image. Can you please give me any
> suggestion?
>
> Thank you.
>
> Regards,
> Sahan
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://www.vtk.org/pipermail/vtkusers/attachments/20130903/7c8dcfc5/attachment-0001.htm
> >
>
> ------------------------------
>
> Message: 6
> Date: Tue, 3 Sep 2013 21:20:30 +0530
> From: Sahan Ranasinghe <sahancr at gmail.com>
> Subject: [vtkusers] Need to save vtkVolume as an 3D image
> To: "vtkusers at vtk.org" <vtkusers at vtk.org>
> Message-ID:
>         <
> CA+1xp0JnVkR+77ky0h4FuLF7WPpjpxshzhC7cD8iyc3JHobktA at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hi,
>
> I need to save a vtkvolume object as a 3D image. Can you please give me any
> suggestion?
>
> Thank you.
>
> Regards,
> Sahan
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://www.vtk.org/pipermail/vtkusers/attachments/20130903/7b9d651c/attachment-0001.htm
> >
>
> ------------------------------
>
> _______________________________________________
> vtkusers mailing list
> vtkusers at vtk.org
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>
> End of vtkusers Digest, Vol 113, Issue 3
> ****************************************
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20130904/871931b4/attachment.htm>


More information about the vtkusers mailing list