[vtkusers] vtkusers Digest, Vol 80, Issue 24

Cartik Sharma cartik_sharma at yahoo.com
Fri Dec 17 10:58:56 EST 2010


hi Xiaopeng:
I'd slice the binary volume into individual ROIs of finite thickness,  thenthen calculate the sum of pixels multiplied by individual slice thicknesses.
This should  give the approximate volume of the binary volume accurate to nearest pixel resolution.

cheers,

Cartik

--- On Fri, 12/17/10, vtkusers-request at vtk.org <vtkusers-request at vtk.org> wrote:

From: vtkusers-request at vtk.org <vtkusers-request at vtk.org>
Subject: vtkusers Digest, Vol 80, Issue 24
To: vtkusers at vtk.org
Date: Friday, December 17, 2010, 9:53 AM

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. Volume Calculation for Binary Images (Xiaopeng Yang)
   2. Re: [vtk-developers] ANN: Training Course in Lyon, France
      (Cartik Sharma)
   3. Re: Volume Calculation for Binary Images (Darshan Pai)
   4. Re: Volume Calculation for Binary Images (Xiaopeng Yang)
   5. Re: Isosurface opacity problem (Sebastien Jourdain)
   6. Non-visible point handlers (Ra?l Ferriz)
   7. Re: Non-visible point
 handlers (Ra?l Ferriz)
   8. Re: Programming challenges with QT, VTK, and ITK (Xiaopeng Yang)
   9. Re: Isosurface opacity problem (???)
  10. Re: Isosurface opacity problem (Sebastien Jourdain)
  11. Re: Line/triangle intersection (Rachel)
  12. Re: Line/triangle intersection (David Doria)
  13. Re: Isosurface opacity problem (???)
  14. Re: Isosurface opacity problem (Sebastien Jourdain)
  15. Re: Isosurface opacity problem (???)
  16. convert cutterline in scalardata (h0ppel)
  17. Re: Line/triangle intersection (Rachel)
  18. Re: Line/triangle intersection (David Doria)
  19. Re: Line/triangle intersection (Rachel)
  20. Re: Isosurface opacity problem (???)


----------------------------------------------------------------------

Message: 1
Date: Fri, 17 Dec 2010 15:12:49 +0900
From: "Xiaopeng Yang" <yxp233 at postech.ac.kr>
Subject: [vtkusers] Volume Calculation for Binary Images
To: <vtkusers at vtk.org>,    <insight-users at itk.org>
Message-ID: <001201cb9db1$6e2fcdf0$4a8f69d0$@ac.kr>
Content-Type: text/plain; charset="us-ascii"

Dear Users,

 

After segmenting some organ from CT images, I get a volume binary image for
that organ. Could you please tell me how to calculate the volume of that
organ?

 

Thanks,

Xiaopeng

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20101217/ffbbc82c/attachment-0001.htm>

------------------------------

Message: 2
Date: Thu,
 16 Dec 2010 22:09:06 -0800 (PST)
From: Cartik Sharma <cartik_sharma at yahoo.com>
Subject: Re: [vtkusers] [vtk-developers] ANN: Training Course in Lyon,
    France
To: VTK Developers <vtk-developers at vtk.org>, vtk vtk
    <vtkusers at vtk.org>,    insight-users at itk.org, paraview at paraview.org,
    cmake at cmake.org,    Lisa Avila <lisa.avila at kitware.com>
Message-ID: <733902.59139.qm at web111416.mail.gq1.yahoo.com>
Content-Type: text/plain; charset="us-ascii"

Hi:
Great location for a VTK course..is this also going to include the GPU support part of version 5.6?
Wish I didnt know as much vtk as I already do :)
cheers,

Cartik

--- On Thu,
 12/16/10, Lisa Avila <lisa.avila at kitware.com> wrote:

From:
 Lisa Avila <lisa.avila at kitware.com>
Subject: [vtk-developers] ANN: Training Course in Lyon, France
To: "VTK Developers" <vtk-developers at vtk.org>, "vtk vtk" <vtkusers at vtk.org>, insight-users at itk.org, paraview at paraview.org, cmake at cmake.org
Date: Thursday, December 16, 2010, 11:48 AM


More great news for folks in the EU: Kitware will be holding a developers training course on February 2-4, 2011 in Lyon,
 France. This course will cover ITK, VTK, ParaView, and CMake, and there will be an optional ski trip to L'Alpe d'Huez on Saturday, February 5. Please visit our web site for more information and registration details (early registration ends January 7th!) at either:


http://www.kitware.com/products/protraining3.html (in English)

or 

http://www.kitware.fr/products/protraining.php (in French)


Note that the course will be taught in English. If you have any questions, please contact us at 
                formations at kitware.fr or courses at kitware.com.


-----Inline Attachment
 Follows-----

_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://www.vtk.org/mailman/listinfo/vtk-developers




      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20101216/40d439b7/attachment-0001.htm>

------------------------------

Message:
 3
Date: Fri, 17 Dec 2010 01:58:44 -0500
From: Darshan Pai <darshanpai at gmail.com>
Subject: Re: [vtkusers] Volume Calculation for Binary Images
To: Xiaopeng Yang <yxp233 at postech.ac.kr>
Cc: insight-users at itk.org, vtkusers at vtk.org
Message-ID:
    <AANLkTinbY0LBBOv3Yyv1skwVnOyBOr_rLMrUxfS27Csc at mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

I usually just count the voxels and
 consider that as volume

On Fri, Dec 17, 2010 at 1:12 AM, Xiaopeng Yang <yxp233 at postech.ac.kr> wrote:

> Dear Users,
>
>
>
> After segmenting some organ from CT images, I get a volume binary image for
> that organ. Could you please tell me how to calculate the volume of that
> organ?
>
>
>
> Thanks,
>
> Xiaopeng
>
> _______________________________________________
> 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/20101217/6d777876/attachment-0001.htm>

------------------------------

Message: 4
Date: Fri, 17 Dec 2010 16:39:34 +0900
From: "Xiaopeng Yang" <yxp233 at postech.ac.kr>
Subject: Re: [vtkusers] Volume Calculation for Binary Images
To: "'Darshan Pai'" <darshanpai at gmail.com>
Cc: vtkusers at vtk.org
Message-ID: <003c01cb9dbd$8cb60530$a6220f90$@ac.kr>
Content-Type: text/plain;
 charset="utf-8"

Hi  Pai,

 

Thank you. But do you know how to count the voxels? I know that ITKStatisticsImageFilter can do this but I don?t know how.

 

Thanks,

Xiaopeng

 

???: Darshan Pai [mailto:darshanpai at gmail.com] 
????: 2010? 12? 17? ??? ?? 3:59
???: Xiaopeng Yang
??: vtkusers at vtk.org; insight-users at itk.org
??: Re: [vtkusers] Volume Calculation for Binary
 Images

 

I usually just count the voxels and consider that as volume

On Fri, Dec 17, 2010 at 1:12 AM, Xiaopeng Yang <yxp233 at postech.ac.kr> wrote:

Dear Users,

 

After segmenting some organ from CT images, I get a volume binary image for that organ. Could you please tell me how to calculate the volume of that organ?

 

Thanks,

Xiaopeng


_______________________________________________
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/20101217/f827cba2/attachment-0001.htm>

------------------------------

Message: 5
Date: Fri, 17 Dec 2010 09:35:17 +0100
From: Sebastien Jourdain <sebastien.jourdain at kitware.com>
Subject: Re: [vtkusers] Isosurface opacity problem
To: ??? <basalt76 at gmail.com>
Cc: vtkusers at vtk.org
Message-ID:
    <AANLkTinchihG+NpBqxB1DpUNr681k_cus1FJzyOTDwAL at mail.gmail.com>
Content-Type: text/plain; charset=EUC-KR

The reason is because you ask to look at the input file and not the
iso-contour. The little eye on the left is disable in front of the
contour.

Seb

PS: Once you change something on a filter, don't forget to click on Apply

2010/12/17 ??? <basalt76 at gmail.com>:
> I'm very sorry for bothering you.
>
> I got something interesting.
>
> In the ParaView, when I set Representation with "Surface with edges".
>
> The isosurface image went through
 vtkMarchingContourFilter has the
> triangles.
> But the original image looks normal.
>
> I have used vtkCleanPolyData and vtkPolyDataNormals.
>
> I attached two iamges.
>
> Thank you ver much.
>
> Lee.
>
> 2010? 12? 17? ?? 12:55, ??? <basalt76 at gmail.com>?? ?:
>>
>> Thank you for your advice
>>
>> I loaded my isosurface into ParaView and set opacity under 1.0.
>> It looks normal ~
>>
>> Is this means that the ParaView do something special to solve transparency
>> problem ?
>>
>> I attached the result.
>>
>> 2010? 12? 15? ?? 11:21, Sebastien Jourdain
>> <sebastien.jourdain at kitware.com>?? ?:
>>>
>>> How did you defined your unstructured grid ? It seems that some inner
>>> surface
 are detected...
>>> This could happen if you duplicate the points so each cell has its own
>>> points ?
>>>
>>> Try to load your data into ParaView and see if you can reproduce the
>>> problem.
>>>
>>> Seb
>>>
>>> 2010/12/15 ??? <basalt76 at gmail.com>:
>>> > Sorry to interrupt you again.
>>> >
>>> > I attach two images.
>>> >
>>> > Before and after adding depth sorting.
>>> > There are some differences.
>>> >
>>> > My
 graphics card seems not to support depth peeling.
>>> >
>>> > Thank you very mush.
>>> >
>>> > Lee.
>>> >
>>> > 2010/12/15 Sebastien Jourdain <sebastien.jourdain at kitware.com>
>>> >>
>>> >> You should enable depth peeling on the renderer to fix most of the
>>> >> artefact. But the rendering will be slower.
>>> >>
>>> >> Seb
>>> >>
>>> >> On Tue, Dec 14, 2010 at 10:01 AM, ??? <basalt76 at gmail.com> wrote:
>>> >> > Dears
>>> >> >
>>> >> > I visualized isosurface using
 vtkMarchingContourFilter from
>>> >> > vtkUnstructuredGrid.
>>> >> >
>>> >> > When the opacity is 1.0 , created picture looks normal.
>>> >> >
>>> >> > But when i adjust opacity to below 1.0, the picture has speckles
>>> >> > depends
>>> >> > on the position.
>>> >> >
>>> >> > Do you have any solution ?
>>> >> >
>>> >> > I'll really appreciate it.
>>> >> >
>>> >> > Attached images
>>> >> >
>>> >> > _______________________________________________
>>> >> > 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
>>> >> >
>>> >> >
>>> >
>>> >
>>
>
>


------------------------------

Message: 6
Date: Fri, 17 Dec 2010 11:12:12 +0100
From: Ra?l Ferriz <raul at torresyvalero.com>
Subject: [vtkusers] Non-visible point handlers
To: vtkusers at vtk.org
Message-ID: <4D0B377C.8010907 at torresyvalero.com>
Content-Type: text/plain; charset=ISO-8859-15; format=flowed

Hello!

I'm using a vtkDistanceWidget, with vtkDistanceWidgetRepresentation 
attached to it. I want that point handler that is sawn on line edges (a 
cross by default) will be not visible.

I have searched for an example on wiki and web, but nothing found, any 
help ?


------------------------------

Message: 7
Date: Fri, 17 Dec 2010 12:04:14 +0100
From: Ra?l Ferriz <raul at torresyvalero.com>
Subject: Re: [vtkusers] Non-visible point handlers
To: vtkusers at vtk.org
Message-ID: <4D0B43AE.3060108 at torresyvalero.com>
Content-Type: text/plain;
 charset=ISO-8859-15; format=flowed

El 17/12/2010 11:12, Ra?l Ferriz escribi?:
> Hello!
>
> I'm using a vtkDistanceWidget, with vtkDistanceWidgetRepresentation 
> attached to it. I want that point handler that is sawn on line edges 
> (a cross by default) will be not visible.
>
> I have searched for an example on wiki and web, but nothing found, any 
> help ?
> _______________________________________________
> 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
>
It doesn't matter, already found a pointer handler smaller and beautifull.


------------------------------

Message: 8
Date: Fri, 17 Dec 2010 21:13:04 +0900
From: "Xiaopeng Yang" <yxp233 at postech.ac.kr>
Subject: Re: [vtkusers] Programming challenges with QT, VTK, and ITK
To: "'\(Samuel\)
 Byeongjun Park'" <byeongjun.park at case.edu>
Cc: insight-users at itk.org, 'vtk' <vtkusers at vtk.org>
Message-ID: <006e01cb9de3$c1f902d0$45eb0870$@ac.kr>
Content-Type: text/plain; charset="utf-8"

Hello Park,

 

It has been a very long time since I received your help. These days I am still working on this problem. Now I can get the VTK coordinate (i.e., world coordinate). You mentioned that if I use itk ImageToVTKImageFilter, I can directly use the VTK coordinate as ITK coordinate. However, I could not understand clearly. In my program, I need ITK coordinate for applying ITK region growing algorithm. I do not know how to translate VTK coordinate to ITK
 coordinate. Could you please explain more in detail?

 

Thanks very much!

 

Xiaopeng

 

???: (Samuel) Byeongjun Park [mailto:byeongjun.park at case.edu] 
????: 2010? 10? 27? ??? ?? 10:41
???: 'Xiaopeng Yang'
??: 'vtk'
??: RE: [vtkusers] Programming challenges with QT, VTK, and ITK

 

Hi,

 

My name is Sam Park. Since you told you are using QT, I think you are using QVTKWidget.

You can make your own QVTK widget class inheriting QVTKWidget.

In there, override 

   Virtual void mousePressEvent(QMouseEvent *pevent);

You can read the mouse position in QVTKWidget window.

Then,

1.       Get the QT coordinate point (x,y)

2.       Flip y value by  y=height-y;

3. 
      Get the pointer of the Render in your QVTKWidget object.

4.       double wpoint[4];

5.       Render->SetDisplayPoint(x,y,0);

6.       Render->DisplayToWorld(); 

7.       Render->GetWorldPoint(wpoint);

 

Now You have the VTK coordinate of the point you clicked.

If you imported CT image in ITK and utilized itk::ImageToVTKImageFilter, 

you can directly use the VTK coordinate as ITK coordinate.

 

Good luck.

 

Sam.

-------------- Innovation for the Future Radiation Oncology 

(Samuel) Byeongjun Park, Ph.D.  -- Research associate of Sohn Lab.

Case Western Reserve Univerisity, School of Medicine

Visiting: Wood building W517,  Phone: 1-216-368-6583

 

 

 

From: vtkusers-bounces at vtk.org [mailto:vtkusers-bounces at vtk.org] On Behalf Of Xiaopeng Yang
Sent: Tuesday, October 26, 2010 9:06 PM
To: 'Luis Ibanez'
Cc: 'itk'; 'vtk'
Subject: [vtkusers] Programming challenges with QT, VTK, and ITK

 

Dear Luis,

 

How are you doing? Thank you very much for your help so far. Sorry to ask you a question again.

 

I am now developing a liver segmentation program using QT, VTK, and ITK based on CT images. In my program, fast marching algorithm is used to extract the liver by multiple seed points. To pick the positions of the seed points, vtkImagePlaneWidget is applied. The problem is how to save the multiple seed points I selected by left-clicking of the mouse so that I do not need to type
 those positions into the code, which is time consuming.

 

Please provide me with your suggestions. I working on this for almost one week still I cannot figure it out.

 

Thanks,

Xiaopeng

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20101217/56776f3c/attachment-0001.htm>

------------------------------

Message: 9
Date: Fri, 17 Dec 2010 21:47:10 +0900
From: ??? <basalt76 at gmail.com>
Subject: Re: [vtkusers] Isosurface opacity problem
To: Sebastien Jourdain <sebastien.jourdain at kitware.com>
Cc: vtkusers at vtk.org
Message-ID:
    <AANLkTikJvTSpdhDt+HJrH1FQoXO9zg1YPmVg_eypJQMX at mail.gmail.com>
Content-Type: text/plain; charset="euc-kr"

I sent you two images, input file and iso-contour image.
I had no problem to look at input file and iso-contour.

Problem is
when I set Representation option with "Surface with edges".

Input file image looks normal but iso-contour image gone through
vtkMarchingContourFilter  has triangles.
Thank you very much.

2010? 12? 17? ?? 5:35, Sebastien Jourdain <sebastien.jourdain at kitware.com>??
?:

> The reason is because you ask to look at the input file and not the
> iso-contour. The little eye on the left is disable in front of the
> contour.
>
> Seb
>
> PS: Once you change something on a filter, don't forget to click on Apply
>
> 2010/12/17 ??? <basalt76 at gmail.com>:
>  > I'm
 very sorry for bothering you.
> >
> > I got something interesting.
> >
> > In the ParaView, when I set Representation with "Surface with edges".
> >
> > The isosurface image went through vtkMarchingContourFilter has the
> > triangles.
> > But the original image looks normal.
> >
> > I have used vtkCleanPolyData and
 vtkPolyDataNormals.
> >
> > I attached two iamges.
> >
> > Thank you ver much.
> >
> > Lee.
> >
> > 2010? 12? 17? ?? 12:55, ??? <basalt76 at gmail.com>?? ?:
> >>
> >> Thank you for your advice
> >>
> >> I loaded my isosurface into ParaView and set opacity under 1.0.
> >> It looks normal ~
> >>
> >> Is this means that the ParaView do something special to solve
> transparency
> >> problem ?
> >>
> >> I attached the result.
> >>
> >> 2010? 12? 15? ?? 11:21, Sebastien Jourdain
> >> <sebastien.jourdain at kitware.com>?? ?:
>
 >>>
> >>> How did you defined your unstructured grid ? It seems that some inner
> >>> surface are detected...
> >>> This could happen if you duplicate the points so each cell has its own
> >>> points ?
> >>>
> >>> Try to load your data into ParaView and see if you can reproduce the
> >>> problem.
> >>>
> >>> Seb
> >>>
> >>> 2010/12/15 ??? <basalt76 at gmail.com>:
> >>> > Sorry to interrupt you again.
> >>> >
> >>> > I attach two images.
> >>> >
> >>> > Before and after adding depth sorting.
> >>> > There are some differences.
> >>> >
> >>> > My graphics
 card seems not to support depth peeling.
> >>> >
> >>> > Thank you very mush.
> >>> >
> >>> > Lee.
> >>> >
> >>> > 2010/12/15 Sebastien Jourdain <sebastien.jourdain at kitware.com>
> >>> >>
> >>> >> You should enable depth peeling on the renderer to fix most of the
> >>> >> artefact. But the rendering will be slower.
> >>> >>
> >>> >> Seb
> >>> >>
> >>> >> On Tue, Dec 14, 2010 at 10:01 AM, ??? <basalt76 at gmail.com> wrote:
> >>> >> > Dears
> >>> >> >
>
 >>> >> > I visualized isosurface using vtkMarchingContourFilter from
> >>> >> > vtkUnstructuredGrid.
> >>> >> >
> >>> >> > When the opacity is 1.0 , created picture looks normal.
> >>> >> >
> >>> >> > But when i adjust opacity to below 1.0, the picture has speckles
> >>> >> > depends
> >>> >> > on the position.
> >>> >> >
> >>> >> > Do you have any solution ?
> >>> >> >
> >>> >> > I'll really appreciate it.
> >>> >> >
> >>> >> > Attached images
> >>> >> >
> >>> >> > _______________________________________________
> >>> >> > 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/20101217/81d77d8b/attachment-0001.htm>

------------------------------

Message: 10
Date: Fri, 17 Dec 2010 13:59:13 +0100
From: Sebastien Jourdain <sebastien.jourdain at kitware.com>
Subject: Re: [vtkusers] Isosurface opacity problem
To: ??? <basalt76 at gmail.com>
Cc: vtkusers at vtk.org
Message-ID:
    <AANLkTim4FbP=xi3ZoroDWoYz58Cix=vkBDFLs2JVpbOj at mail.gmail.com>
Content-Type: text/plain; charset=EUC-KR

Ok,

but this is normal because the ContourFilter will generate a triangulated
 mesh.

Seb

2010/12/17 ??? <basalt76 at gmail.com>:
> I sent you two images, input file and iso-contour image.
> I had no problem to look at input file and iso-contour.
>
> Problem is
> when I set Representation option with "Surface with edges".
>
> Input file image looks normal but iso-contour image gone through
> vtkMarchingContourFilter  has triangles.
> Thank you very much.
>
> 2010? 12? 17? ?? 5:35, Sebastien Jourdain <sebastien.jourdain at kitware.com>??
> ?:
>>
>> The reason is because you ask to look at the input file and not the
>> iso-contour. The little eye on the left is disable in front of the
>> contour.
>>
>> Seb
>>
>> PS: Once you change something on a filter, don't forget to click on Apply
>>
>> 2010/12/17 ???
 <basalt76 at gmail.com>:
>> > I'm very sorry for bothering you.
>> >
>> > I got something interesting.
>> >
>> > In the ParaView, when I set Representation with "Surface with edges".
>> >
>> > The isosurface image went through vtkMarchingContourFilter has the
>> > triangles.
>> > But the original image looks
 normal.
>> >
>> > I have used vtkCleanPolyData and vtkPolyDataNormals.
>> >
>> > I attached two iamges.
>> >
>> > Thank you ver much.
>> >
>> > Lee.
>> >
>> > 2010? 12? 17? ?? 12:55, ??? <basalt76 at gmail.com>?? ?:
>> >>
>> >> Thank you for your advice
>> >>
>> >> I loaded my isosurface into ParaView and set opacity under 1.0.
>> >> It looks normal ~
>> >>
>> >> Is this means that the ParaView do something special to solve
>> >> transparency
>> >> problem ?
>> >>
>> >> I attached the result.
>> >>
>> >> 2010? 12? 15? ?? 11:21, Sebastien Jourdain
>>
 >> <sebastien.jourdain at kitware.com>?? ?:
>> >>>
>> >>> How did you defined your unstructured grid ? It seems that some inner
>> >>> surface are detected...
>> >>> This could happen if you duplicate the points so each cell has its own
>> >>> points ?
>> >>>
>> >>> Try to load your data into ParaView and see if you can reproduce the
>> >>> problem.
>> >>>
>> >>> Seb
>> >>>
>> >>> 2010/12/15 ??? <basalt76 at gmail.com>:
>> >>> > Sorry to interrupt you again.
>> >>> >
>> >>> > I
 attach two images.
>> >>> >
>> >>> > Before and after adding depth sorting.
>> >>> > There are some differences.
>> >>> >
>> >>> > My graphics card seems not to support depth peeling.
>> >>> >
>> >>> > Thank you very mush.
>> >>> >
>> >>> > Lee.
>> >>> >
>> >>> > 2010/12/15 Sebastien Jourdain <sebastien.jourdain at kitware.com>
>> >>> >>
>> >>> >> You should enable depth peeling on the renderer to fix most of the
>> >>> >> artefact. But the rendering will be slower.
>> >>> >>
>> >>> >>
 Seb
>> >>> >>
>> >>> >> On Tue, Dec 14, 2010 at 10:01 AM, ??? <basalt76 at gmail.com> wrote:
>> >>> >> > Dears
>> >>> >> >
>> >>> >> > I visualized isosurface using vtkMarchingContourFilter from
>> >>> >> > vtkUnstructuredGrid.
>> >>> >> >
>> >>> >> > When the opacity is 1.0 , created picture looks normal.
>> >>> >> >
>> >>> >> > But when i adjust opacity to below 1.0, the picture has speckles
>> >>> >> > depends
>> >>> >> > on the position.
>> >>> >> >
>> >>> >> > Do you have any solution ?
>>
 >>> >> >
>> >>> >> > I'll really appreciate it.
>> >>> >> >
>> >>> >> > Attached images
>> >>> >> >
>> >>> >> > _______________________________________________
>> >>> >> > 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
>> >>> >> >
>> >>> >> >
>> >>> >
>> >>> >
>> >>
>> >
>> >
>
>


------------------------------

Message: 11
Date: Fri, 17 Dec 2010 05:02:03 -0800 (PST)
From: Rachel <aracha2010 at gmail.com>
Subject: Re: [vtkusers] Line/triangle intersection
To: vtkusers at vtk.org
Message-ID: <1292590923541-3309374.post at n5.nabble.com>
Content-Type: text/plain; charset=us-ascii


Hi David, if there is no intersection between the ray and the 3D
 object, what
would the function return?

Thanks
-- 
View this message in context: http://vtk.1045678.n5.nabble.com/Line-triangle-intersection-tp1246634p3309374.html
Sent from the VTK - Users mailing list archive at Nabble.com.


------------------------------

Message: 12
Date: Fri, 17 Dec 2010 08:09:20 -0500
From: David Doria <daviddoria at gmail.com>
Subject: Re: [vtkusers] Line/triangle intersection
To: Rachel <aracha2010 at gmail.com>
Cc: vtkusers at vtk.org
Message-ID:
    <AANLkTimXcXJoxMb8E92QJbch-zrdhnQCtUv+4m8w+Afx at mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

On Fri, Dec 17, 2010 at 8:02 AM, Rachel <aracha2010 at gmail.com> wrote:

>
> Hi David, if there is no intersection between the ray and the 3D object,
> what
> would the function return?
>
> Thanks
>
>
Are you talking about the IntersectWithLine function?

David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20101217/feb9fdd3/attachment-0001.htm>

------------------------------

Message: 13
Date: Fri, 17 Dec 2010 22:19:29 +0900
From: ??? <basalt76 at gmail.com>
Subject: Re: [vtkusers] Isosurface opacity problem
To: Sebastien Jourdain <sebastien.jourdain at kitware.com>
Cc: vtkusers at vtk.org
Message-ID:
    <AANLkTinWPfFOENJAUXrkytkEYE6JAk9Np3ETmp5wNmAT at mail.gmail.com>
Content-Type: text/plain; charset="euc-kr"

Yes it looks normal in ParaView.

But In my application, after applying depth sorting,
the iso-surface looks like attached file.

Is it vtk version problem ? My vtk is 5.2.1

2010? 12? 17? ?? 9:59, Sebastien Jourdain <sebastien.jourdain at kitware.com>??
?:

> Ok,
>
> but this is normal because the ContourFilter will generate a triangulated
> mesh.
>
> Seb
>
> 2010/12/17 ??? <basalt76 at gmail.com>:
> > I sent you two images, input file and iso-contour image.
> > I
 had no problem to look at input file and iso-contour.
> >
> > Problem is
> > when I set Representation option with "Surface with edges".
> >
> > Input file image looks normal but iso-contour image gone through
> > vtkMarchingContourFilter  has triangles.
> > Thank you very much.
> >
> > 2010? 12? 17? ?? 5:35, Sebastien Jourdain <
> sebastien.jourdain at kitware.com>??
> > ?:
> >>
> >> The reason is because you ask to look at the input file and not the
> >> iso-contour. The little eye on the left is disable in front of the
> >> contour.
> >>
> >> Seb
> >>
> >> PS: Once you change something on a filter, don't forget to click on
> Apply
>
 >>
> >> 2010/12/17 ??? <basalt76 at gmail.com>:
> >> > I'm very sorry for bothering you.
> >> >
> >> > I got something interesting.
> >> >
> >> > In the ParaView, when I set Representation with "Surface with edges".
> >> >
> >> > The isosurface image went through vtkMarchingContourFilter has the
> >> > triangles.
> >> > But the original image looks normal.
> >> >
> >> > I have used vtkCleanPolyData and vtkPolyDataNormals.
> >> >
> >> > I attached two iamges.
> >> >
> >> > Thank you ver much.
> >> >
> >> > Lee.
> >> >
> >> > 2010? 12? 17? ?? 12:55, ??? <basalt76 at gmail.com>?? ?:
> >>
 >>
> >> >> Thank you for your advice
> >> >>
> >> >> I loaded my isosurface into ParaView and set opacity under 1.0.
> >> >> It looks normal ~
> >> >>
> >> >> Is this means that the ParaView do something special to solve
> >> >> transparency
> >> >> problem ?
> >> >>
> >> >> I attached the result.
> >> >>
> >> >> 2010? 12? 15? ?? 11:21, Sebastien Jourdain
> >> >> <sebastien.jourdain at kitware.com>?? ?:
> >> >>>
> >> >>> How did you defined
 your unstructured grid ? It seems that some
> inner
> >> >>> surface are detected...
> >> >>> This could happen if you duplicate the points so each cell has its
> own
> >> >>> points ?
> >> >>>
> >> >>> Try to load your data into ParaView and see if you can reproduce the
> >> >>> problem.
> >> >>>
> >> >>> Seb
> >> >>>
> >> >>> 2010/12/15 ??? <basalt76 at gmail.com>:
> >> >>> > Sorry to interrupt you again.
> >> >>> >
> >> >>> > I attach two images.
> >> >>> >
> >> >>> > Before and after adding depth sorting.
> >>
 >>> > There are some differences.
> >> >>> >
> >> >>> > My graphics card seems not to support depth peeling.
> >> >>> >
> >> >>> > Thank you very mush.
> >> >>> >
> >> >>> > Lee.
> >> >>> >
> >> >>> > 2010/12/15 Sebastien Jourdain <sebastien.jourdain at kitware.com>
> >> >>> >>
> >> >>> >> You should enable depth peeling on the renderer to fix most of
> the
> >> >>> >> artefact. But the rendering will be slower.
> >> >>> >>
> >> >>> >> Seb
> >> >>> >>
> >>
 >>> >> On Tue, Dec 14, 2010 at 10:01 AM, ??? <basalt76 at gmail.com>
> wrote:
> >> >>> >> > Dears
> >> >>> >> >
> >> >>> >> > I visualized isosurface using vtkMarchingContourFilter from
> >> >>> >> > vtkUnstructuredGrid.
> >> >>> >> >
> >> >>> >> > When the opacity is 1.0 , created picture looks normal.
> >> >>> >> >
> >> >>> >> > But when i adjust opacity to below 1.0, the picture has
> speckles
> >> >>> >> > depends
> >> >>> >> > on the position.
> >> >>> >> >
> >> >>> >> > Do you have
 any solution ?
> >> >>> >> >
> >> >>> >> > I'll really appreciate it.
> >> >>> >> >
> >> >>> >> > Attached images
> >> >>> >> >
> >> >>> >> > _______________________________________________
> >> >>> >> > 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/20101217/0659979c/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: depthSorting.JPG
Type: image/jpeg
Size: 34149 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20101217/0659979c/attachment-0001.jpeg>

------------------------------

Message: 14
Date: Fri, 17 Dec 2010 14:28:47 +0100
From: Sebastien Jourdain <sebastien.jourdain at kitware.com>
Subject: Re: [vtkusers] Isosurface opacity problem
To: ??? <basalt76 at gmail.com>
Cc:
 vtkusers at vtk.org
Message-ID:
    <AANLkTik5rpQsBHBQUngcQtSxf7aK+g-sMMG9n0EJsx9V at mail.gmail.com>
Content-Type: text/plain; charset=EUC-KR

I don't know if it is a VTK problem, but ParaView is using vtk 5.6 (at least).
On the other hand I don't know the underneath setting inside ParaView
for the opacity.
Maybe you can ask what are those setting so you can reproduce them
inside your vtk application on the ParaView mailing list.

Seb

PS: How did you set the depth peeling/sorting inside your code ?

2010/12/17 ??? <basalt76 at gmail.com>:
> Yes it looks normal in ParaView.
>
> But In my application, after
 applying depth sorting,
> the iso-surface looks like attached file.
>
> Is it vtk version problem ? My vtk is 5.2.1
>
> 2010? 12? 17? ?? 9:59, Sebastien Jourdain <sebastien.jourdain at kitware.com>??
> ?:
>>
>> Ok,
>>
>> but this is normal because the ContourFilter will generate a triangulated
>> mesh.
>>
>> Seb
>>
>> 2010/12/17 ??? <basalt76 at gmail.com>:
>> > I sent you two images, input file and iso-contour image.
>> > I had no problem to look at input file and iso-contour.
>> >
>> > Problem is
>> > when I set Representation option with "Surface with edges".
>>
 >
>> > Input file image looks normal but iso-contour image gone through
>> > vtkMarchingContourFilter  has triangles.
>> > Thank you very much.
>> >
>> > 2010? 12? 17? ?? 5:35, Sebastien Jourdain
>> > <sebastien.jourdain at kitware.com>??
>> > ?:
>> >>
>> >> The reason is because you ask to look at the input file and not the
>> >> iso-contour. The little eye on the left is disable in front of the
>> >> contour.
>> >>
>> >> Seb
>> >>
>> >> PS: Once you change something on a filter, don't forget to click on
>> >> Apply
>> >>
>> >> 2010/12/17 ??? <basalt76 at gmail.com>:
>> >> > I'm very sorry for bothering you.
>> >>
 >
>> >> > I got something interesting.
>> >> >
>> >> > In the ParaView, when I set Representation with "Surface with edges".
>> >> >
>> >> > The isosurface image went through vtkMarchingContourFilter has the
>> >> > triangles.
>> >> > But the original image looks normal.
>> >> >
>> >> > I have used vtkCleanPolyData and vtkPolyDataNormals.
>> >> >
>> >> > I attached two iamges.
>> >> >
>> >> > Thank you ver much.
>> >> >
>> >> > Lee.
>> >> >
>> >> > 2010? 12? 17? ?? 12:55, ??? <basalt76 at gmail.com>?? ?:
>> >> >>
>> >> >> Thank you for your advice
>> >>
 >>
>> >> >> I loaded my isosurface into ParaView and set opacity under 1.0.
>> >> >> It looks normal ~
>> >> >>
>> >> >> Is this means that the ParaView do something special to solve
>> >> >> transparency
>> >> >> problem ?
>> >> >>
>> >> >> I attached the result.
>> >> >>
>> >> >> 2010? 12? 15? ?? 11:21, Sebastien Jourdain
>> >> >> <sebastien.jourdain at kitware.com>?? ?:
>> >>
 >>>
>> >> >>> How did you defined your unstructured grid ? It seems that some
>> >> >>> inner
>> >> >>> surface are detected...
>> >> >>> This could happen if you duplicate the points so each cell has its
>> >> >>> own
>> >> >>> points ?
>> >> >>>
>> >> >>> Try to load your data into ParaView and see if you can reproduce
>> >> >>> the
>> >> >>> problem.
>> >> >>>
>> >> >>> Seb
>> >> >>>
>> >> >>> 2010/12/15 ??? <basalt76 at gmail.com>:
>> >> >>> > Sorry to interrupt you again.
>> >>
 >>> >
>> >> >>> > I attach two images.
>> >> >>> >
>> >> >>> > Before and after adding depth sorting.
>> >> >>> > There are some differences.
>> >> >>> >
>> >> >>> > My graphics card seems not to support depth peeling.
>> >> >>> >
>> >> >>> > Thank you very mush.
>> >> >>> >
>> >> >>> > Lee.
>> >> >>> >
>> >> >>> > 2010/12/15 Sebastien Jourdain <sebastien.jourdain at kitware.com>
>> >> >>> >>
>> >> >>> >> You should enable depth peeling on the renderer to
 fix most of
>> >> >>> >> the
>> >> >>> >> artefact. But the rendering will be slower.
>> >> >>> >>
>> >> >>> >> Seb
>> >> >>> >>
>> >> >>> >> On Tue, Dec 14, 2010 at 10:01 AM, ??? <basalt76 at gmail.com>
>> >> >>> >> wrote:
>> >> >>> >> > Dears
>> >> >>> >> >
>> >> >>> >> > I visualized isosurface using vtkMarchingContourFilter from
>> >> >>> >> > vtkUnstructuredGrid.
>> >> >>> >> >
>> >> >>> >> > When the opacity is 1.0 , created picture looks normal.
>>
 >> >>> >> >
>> >> >>> >> > But when i adjust opacity to below 1.0, the picture has
>> >> >>> >> > speckles
>> >> >>> >> > depends
>> >> >>> >> > on the position.
>> >> >>> >> >
>> >> >>> >> > Do you have any solution ?
>> >> >>> >> >
>> >> >>> >> > I'll really appreciate it.
>> >> >>> >> >
>> >> >>> >> > Attached images
>> >> >>> >> >
>> >> >>> >> > _______________________________________________
>> >> >>> >> > 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
>> >> >>> >> >
>> >>
 >>> >> >
>> >>
 >>> >
>> >> >>> >
>> >> >>
>> >> >
>> >> >
>> >
>> >
>
>


------------------------------

Message: 15
Date: Fri, 17 Dec 2010 22:36:10 +0900
From: ??? <basalt76 at gmail.com>
Subject: Re: [vtkusers] Isosurface opacity problem
To: Sebastien Jourdain <sebastien.jourdain at kitware.com>
Cc: vtkusers at vtk.org
Message-ID:
    <AANLkTikCjd1+OzD0K2c9CAO-+VUntLs3sA6KwrXso9nf at mail.gmail.com>
Content-Type: text/plain; charset="euc-kr"

Thank you for your invaluable advice.
I really appreciate it.

Here is my depth sorting code just like vtk example.

vtkSmartPointer<vtkCamera> camera = vtkCamera::New();
  renderer_->SetActiveCamera
 (camera);
  contourFilter->SetInput(input);

  vtkSmartPointer<vtkDepthSortPolyData> depthSort =
vtkDepthSortPolyData::New();
  depthSort->SetInputConnection(contourFilter->GetOutputPort());
  depthSort->SetDirectionToBackToFront();
  depthSort->SetVector(1, 1, 1);
  depthSort->SetCamera(camera);
  depthSort->SortScalarsOn();
  depthSort->Update();

  ugridMapper->SetInput(depthSort->GetOutput());



2010? 12? 17? ?? 10:28, Sebastien Jourdain <sebastien.jourdain at kitware.com>??
?:

> I don't know if it is a VTK problem, but ParaView is using vtk 5.6 (at
> least).
> On the other hand I don't know the underneath setting inside ParaView
> for the opacity.
> Maybe you can ask what are those setting so you can reproduce them
> inside your vtk application on the
 ParaView mailing list.
>
> Seb
>
> PS: How did you set the depth peeling/sorting inside your code ?
>
> 2010/12/17 ??? <basalt76 at gmail.com>:
> > Yes it looks normal in ParaView.
> >
> > But In my application, after applying depth sorting,
> > the iso-surface looks like attached file.
> >
> > Is it vtk version problem
 ? My vtk is 5.2.1
> >
> > 2010? 12? 17? ?? 9:59, Sebastien Jourdain <
> sebastien.jourdain at kitware.com>??
> > ?:
> >>
> >> Ok,
> >>
> >> but this is normal because the ContourFilter will generate a
> triangulated
> >> mesh.
> >>
> >> Seb
> >>
> >> 2010/12/17 ??? <basalt76 at gmail.com>:
> >> > I sent you two images, input file and iso-contour image.
> >> > I had no problem to look at input file and iso-contour.
> >> >
> >> > Problem is
> >> > when I set Representation option with "Surface with edges".
> >> >
>
 >> > Input file image looks normal but iso-contour image gone through
> >> > vtkMarchingContourFilter  has triangles.
> >> > Thank you very much.
> >> >
> >> > 2010? 12? 17? ?? 5:35, Sebastien Jourdain
> >> > <sebastien.jourdain at kitware.com>??
> >> > ?:
> >> >>
> >> >> The reason is because you ask to look at the input file and not the
> >> >> iso-contour. The little eye on the left is disable in front of the
> >> >> contour.
> >> >>
> >> >> Seb
> >> >>
> >> >> PS: Once you change something on a filter, don't forget to click on
> >> >> Apply
> >> >>
>
 >> >> 2010/12/17 ??? <basalt76 at gmail.com>:
> >> >> > I'm very sorry for bothering you.
> >> >> >
> >> >> > I got something interesting.
> >> >> >
> >> >> > In the ParaView, when I set Representation with "Surface with
> edges".
> >> >> >
> >> >> > The isosurface image went through vtkMarchingContourFilter has the
> >> >> > triangles.
> >> >> > But the original image looks normal.
> >> >> >
> >> >> > I have used vtkCleanPolyData and vtkPolyDataNormals.
> >> >> >
> >> >> > I attached two iamges.
> >> >> >
> >> >> > Thank you ver
 much.
> >> >> >
> >> >> > Lee.
> >> >> >
> >> >> > 2010? 12? 17? ?? 12:55, ??? <basalt76 at gmail.com>?? ?:
> >> >> >>
> >> >> >> Thank you for your advice
> >> >> >>
> >> >> >> I loaded my isosurface into ParaView and set opacity under 1.0.
> >> >> >> It looks normal ~
> >> >> >>
> >> >> >> Is this means that the ParaView do something special to solve
> >> >> >> transparency
> >> >> >> problem ?
> >> >> >>
> >> >> >> I attached the result.
> >> >> >>
> >> >> >> 2010? 12? 15? ??
 11:21, Sebastien Jourdain
> >> >> >> <sebastien.jourdain at kitware.com>?? ?:
> >> >> >>>
> >> >> >>> How did you defined your unstructured grid ? It seems that some
> >> >> >>> inner
> >> >> >>> surface are detected...
> >> >> >>> This could happen if you duplicate the points so each cell has
> its
> >> >> >>> own
> >> >> >>> points ?
> >> >> >>>
> >> >> >>> Try to load your data into ParaView and see if you can reproduce
> >> >> >>> the
> >> >> >>> problem.
> >> >> >>>
> >> >>
 >>> Seb
> >> >> >>>
> >> >> >>> 2010/12/15 ??? <basalt76 at gmail.com>:
> >> >> >>> > Sorry to interrupt you again.
> >> >> >>> >
> >> >> >>> > I attach two images.
> >> >> >>> >
> >> >> >>> > Before and after adding depth sorting.
> >> >> >>> > There are some differences.
> >> >> >>> >
> >> >> >>> > My graphics card seems not to support depth peeling.
> >> >> >>> >
> >> >> >>> > Thank you very mush.
> >> >> >>> >
> >> >> >>> > Lee.
> >>
 >> >>> >
> >> >> >>> > 2010/12/15 Sebastien Jourdain <sebastien.jourdain at kitware.com>
> >> >> >>> >>
> >> >> >>> >> You should enable depth peeling on the renderer to fix most of
> >> >> >>> >> the
> >> >> >>> >> artefact. But the rendering will be slower.
> >> >> >>> >>
> >> >> >>> >> Seb
> >> >> >>> >>
> >> >> >>> >> On Tue, Dec 14, 2010 at 10:01 AM, ??? <basalt76 at gmail.com>
> >> >> >>> >> wrote:
> >>
 >> >>> >> > Dears
> >> >> >>> >> >
> >> >> >>> >> > I visualized isosurface using vtkMarchingContourFilter from
> >> >> >>> >> > vtkUnstructuredGrid.
> >> >> >>> >> >
> >> >> >>> >> > When the opacity is 1.0 , created picture looks normal.
> >> >> >>> >> >
> >> >> >>> >> > But when i adjust opacity to below 1.0, the picture has
> >> >> >>> >> > speckles
> >> >> >>> >> > depends
> >> >> >>> >> > on the position.
> >> >> >>> >> >
> >> >> >>> >> > Do you have any solution ?
> >> >>
 >>> >> >
> >> >> >>> >> > I'll really appreciate it.
> >> >> >>> >> >
> >> >> >>> >> > Attached images
> >> >> >>> >> >
> >> >> >>> >> > _______________________________________________
> >> >> >>> >> > 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/20101217/34fb8796/attachment-0001.htm>

------------------------------

Message: 16
Date: Fri, 17 Dec 2010 05:40:57 -0800 (PST)
From: h0ppel <h0ppel at web.de>
Subject: [vtkusers] convert cutterline in scalardata
To: vtkusers at vtk.org
Message-ID: <1292593257139-3309409.post at n5.nabble.com>
Content-Type: text/plain; charset=us-ascii


Hi,

im cutting a 3d polydatasource with a cutter. I get as result a polydata
line from the cutter, but now I need this line
 in scalardata to save it in
an array?
Are there any convertigfunctions given?

thanks
-- 
View this message in context: http://vtk.1045678.n5.nabble.com/convert-cutterline-in-scalardata-tp3309409p3309409.html
Sent from the VTK - Users mailing list archive at Nabble.com.


------------------------------

Message: 17
Date: Fri, 17 Dec 2010 05:43:46 -0800 (PST)
From: Rachel <aracha2010 at gmail.com>
Subject: Re: [vtkusers] Line/triangle intersection
To: vtkusers at vtk.org
Message-ID: <1292593426521-3309412.post at n5.nabble.com>
Content-Type: text/plain; charset=us-ascii


Yes . it same that if no intersection the GetNumberOfPoints() is 0. is it
correct?
-- 
View this message in
 context: http://vtk.1045678.n5.nabble.com/Line-triangle-intersection-tp1246634p3309412.html
Sent from the VTK - Users mailing list archive at Nabble.com.


------------------------------

Message: 18
Date: Fri, 17 Dec 2010 08:46:52 -0500
From: David Doria <daviddoria at gmail.com>
Subject: Re: [vtkusers] Line/triangle intersection
To: Rachel <aracha2010 at gmail.com>
Cc: vtkusers at vtk.org
Message-ID:
    <AANLkTimrk9HxuUTPPmQo-V1RPdBf93g1NJOwv=TLFR1M at mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

On Fri, Dec 17, 2010 at 8:43 AM, Rachel <aracha2010 at gmail.com> wrote:

>
> Yes . it same that if no intersection
 the GetNumberOfPoints() is 0. is it
> correct?
>
>
Quickly looking through the code it looks like it returns 0 if there is no
intersection and 1 otherwise.

David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20101217/c69f2d7c/attachment-0001.htm>

------------------------------

Message: 19
Date: Fri, 17 Dec 2010 06:04:03 -0800 (PST)
From: Rachel <aracha2010 at gmail.com>
Subject: Re: [vtkusers] Line/triangle intersection
To: vtkusers at vtk.org
Message-ID: <1292594643627-3309432.post at n5.nabble.com>
Content-Type: text/plain; charset=us-ascii


Thank you David for the quick reply 
 :)

-- 
View this message in context: http://vtk.1045678.n5.nabble.com/Line-triangle-intersection-tp1246634p3309432.html
Sent from the VTK - Users mailing list archive at Nabble.com.


------------------------------

Message: 20
Date: Fri, 17 Dec 2010 23:53:38 +0900
From: ??? <basalt76 at gmail.com>
Subject: Re: [vtkusers] Isosurface opacity problem
To: Sebastien Jourdain <sebastien.jourdain at kitware.com>
Cc: vtkusers at vtk.org
Message-ID:
    <AANLkTimUL0nsyvRjn=iLckPHL+9EHpe1TMYw4GbF9LCr at mail.gmail.com>
Content-Type: text/plain; charset="euc-kr"

Thank you, I might solve the problem.

Using vtk 5.6.0, the problem is gone.
Even without depth
 sorting, the image is normal.

I'll look for another way to solve this problem with vkt 5.2.1

Thank you again.

Lee.

2010? 12? 17? ?? 10:36, ??? <basalt76 at gmail.com>?? ?:

> Thank you for your invaluable advice.
> I really appreciate it.
>
> Here is my depth sorting code just like vtk example.
>
> vtkSmartPointer<vtkCamera> camera = vtkCamera::New();
>   renderer_->SetActiveCamera
 (camera);
>   contourFilter->SetInput(input);
>
>   vtkSmartPointer<vtkDepthSortPolyData> depthSort =
> vtkDepthSortPolyData::New();
>   depthSort->SetInputConnection(contourFilter->GetOutputPort());
>   depthSort->SetDirectionToBackToFront();
>   depthSort->SetVector(1, 1, 1);
>   depthSort->SetCamera(camera);
>   depthSort->SortScalarsOn();
>   depthSort->Update();
>
>   ugridMapper->SetInput(depthSort->GetOutput());
>
>
>
> 2010? 12? 17? ?? 10:28, Sebastien Jourdain <sebastien.jourdain at kitware.com
> >?? ?:
>
> I don't know if it is a VTK problem, but ParaView
 is using vtk 5.6 (at
>> least).
>> On the other hand I don't know the underneath setting inside ParaView
>> for the opacity.
>> Maybe you can ask what are those setting so you can reproduce them
>> inside your vtk application on the ParaView mailing list.
>>
>> Seb
>>
>> PS: How did you set the depth peeling/sorting inside your code ?
>>
>> 2010/12/17 ??? <basalt76 at gmail.com>:
>> > Yes it looks normal in ParaView.
>> >
>> > But In my application, after applying depth sorting,
>> > the iso-surface looks like attached file.
>> >
>> > Is it vtk version problem ? My vtk is 5.2.1
>> >
>> > 2010? 12? 17? ?? 9:59, Sebastien Jourdain <
>> sebastien.jourdain at kitware.com>??
>> > ?:
>>
 >>
>> >> Ok,
>> >>
>> >> but this is normal because the ContourFilter will generate a
>> triangulated
>> >> mesh.
>> >>
>> >> Seb
>> >>
>> >> 2010/12/17 ??? <basalt76 at gmail.com>:
>> >> > I sent you two images, input file and iso-contour image.
>> >> > I had no problem to look at input file and iso-contour.
>> >> >
>> >> > Problem is
>> >> > when I set Representation option with "Surface with edges".
>> >> >
>> >> > Input file image looks
 normal but iso-contour image gone through
>> >> > vtkMarchingContourFilter  has triangles.
>> >> > Thank you very much.
>> >> >
>> >> > 2010? 12? 17? ?? 5:35, Sebastien Jourdain
>> >> > <sebastien.jourdain at kitware.com>??
>> >> > ?:
>> >> >>
>> >> >> The reason is because you ask to look at the input file and not the
>> >> >> iso-contour. The little eye on the left is disable in front of the
>> >> >> contour.
>> >> >>
>> >> >> Seb
>> >> >>
>> >> >> PS: Once you change something on a filter, don't forget to click on
>> >> >> Apply
>>
 >> >>
>> >> >> 2010/12/17 ??? <basalt76 at gmail.com>:
>> >> >> > I'm very sorry for bothering you.
>> >> >> >
>> >> >> > I got something interesting.
>> >> >> >
>> >> >> > In the ParaView, when I set Representation with "Surface with
>> edges".
>> >> >> >
>> >> >> > The isosurface image went through vtkMarchingContourFilter has the
>> >> >> > triangles.
>> >> >> > But the original image looks normal.
>> >> >> >
>> >> >> > I have used vtkCleanPolyData and vtkPolyDataNormals.
>> >> >> >
>> >> >> > I attached two
 iamges.
>> >> >> >
>> >> >> > Thank you ver much.
>> >> >> >
>> >> >> > Lee.
>> >> >> >
>> >> >> > 2010? 12? 17? ?? 12:55, ??? <basalt76 at gmail.com>?? ?:
>> >> >> >>
>> >> >> >> Thank you for your advice
>> >> >> >>
>> >> >> >> I loaded my isosurface into ParaView and set opacity under 1.0.
>> >> >> >> It looks normal ~
>> >> >> >>
>> >> >> >> Is this means that the ParaView do something special to solve
>> >> >> >> transparency
>> >> >> >> problem ?
>> >> >>
 >>
>> >> >> >> I attached the result.
>> >> >> >>
>> >> >> >> 2010? 12? 15? ?? 11:21, Sebastien Jourdain
>> >> >> >> <sebastien.jourdain at kitware.com>?? ?:
>> >> >> >>>
>> >> >> >>> How did you defined your unstructured grid ? It seems that some
>> >> >> >>> inner
>> >> >> >>> surface are detected...
>> >> >> >>> This could happen if you duplicate the points so each cell has
>> its
>> >> >> >>> own
>> >> >> >>> points ?
>> >> >> >>>
>> >> >> >>> Try to load
 your data into ParaView and see if you can reproduce
>> >> >> >>> the
>> >> >> >>> problem.
>> >> >> >>>
>> >> >> >>> Seb
>> >> >> >>>
>> >> >> >>> 2010/12/15 ??? <basalt76 at gmail.com>:
>> >> >> >>> > Sorry to interrupt you again.
>> >> >> >>> >
>> >> >> >>> > I attach two images.
>> >> >> >>> >
>> >> >> >>> > Before and after adding depth sorting.
>> >> >> >>> > There are some differences.
>> >> >> >>> >
>> >> >> >>> > My
 graphics card seems not to support depth peeling.
>> >> >> >>> >
>> >> >> >>> > Thank you very mush.
>> >> >> >>> >
>> >> >> >>> > Lee.
>> >> >> >>> >
>> >> >> >>> > 2010/12/15 Sebastien Jourdain <sebastien.jourdain at kitware.com
>> >
>> >> >> >>> >>
>> >> >> >>> >> You should enable depth peeling on the renderer to fix most
>> of
>> >> >> >>> >> the
>> >> >> >>> >> artefact. But the rendering will be slower.
>> >> >> >>> >>
>> >> >>
 >>> >> Seb
>> >> >> >>> >>
>> >> >> >>> >> On Tue, Dec 14, 2010 at 10:01 AM, ??? <basalt76 at gmail.com>
>> >> >> >>> >> wrote:
>> >> >> >>> >> > Dears
>> >> >> >>> >> >
>> >> >> >>> >> > I visualized isosurface using vtkMarchingContourFilter from
>> >> >> >>> >> > vtkUnstructuredGrid.
>> >> >> >>> >> >
>> >> >> >>> >> > When the opacity is 1.0 , created picture looks normal.
>> >> >> >>> >> >
>> >> >> >>> >> > But when i adjust opacity to
 below 1.0, the picture has
>> >> >> >>> >> > speckles
>> >> >> >>> >> > depends
>> >> >> >>> >> > on the position.
>> >> >> >>> >> >
>> >> >> >>> >> > Do you have any solution ?
>> >> >> >>> >> >
>> >> >> >>> >> > I'll really appreciate it.
>> >> >> >>> >> >
>> >> >> >>> >> > Attached images
>> >> >> >>> >> >
>> >> >> >>> >> > _______________________________________________
>> >> >> >>> >> > 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/20101217/38519222/attachment.htm>

------------------------------

_______________________________________________
vtkusers mailing list
vtkusers at vtk.org
http://www.vtk.org/mailman/listinfo/vtkusers


End of vtkusers Digest, Vol 80, Issue 24
****************************************



      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20101217/870d26da/attachment.htm>


More information about the vtkusers mailing list