[Paraview] GetPolyData on a BoxWidget

2011-06-07 Thread Laurent Paul
Dear Users, I usually clip meshes using the clip filter and a box, or a plane. I would be interested in exporting the clipping box data, not the clippedData, but the box itself. I also would like to get the thickness of the box, eg. distance between two handles. I know that VTK allows to do th

Re: [Paraview] GetPolyData on a BoxWidget

2011-06-07 Thread Utkarsh Ayachit
What I'd do is subclass vtkPVClipDataset (the filter paraview uses for Clip). Make the subclass a two output-port filter (by calling vtkAlgorithm::SetNumberOfOutputPorts(2)) and producing the polydata matching the implicit function specified as the clipping function on the second output port. Now y

Re: [Paraview] GetPolyData on a BoxWidget

2011-06-07 Thread Laurent Paul
Hi Utkarsh, Thanks for your reply! I'm used to subclass ITK and VTK classes, but I install Paraview using the binaries not yet from the sources. If I understand you, this could be very easily done subclassing the PVClipDataSet. What about displaying or saving the second output? How can I g

Re: [Paraview] GetPolyData on a BoxWidget

2011-06-07 Thread Utkarsh Ayachit
Once you make the VTK filter have two output ports, paraview will automatically detect it and you will be able to see both output ports in the pipeline browser. On Tue, Jun 7, 2011 at 9:03 AM, Laurent Paul wrote: > Hi Utkarsh, > > Thanks for your reply! > I'm used to subclass ITK and VTK classes,

Re: [Paraview] GetPolyData on a BoxWidget

2011-06-07 Thread Laurent Paul
I'm currently building paraview from sources... I had errors caused by Qt. "fatal error LNK1112: module machine type 'X86' conflicts with target machine type 'x64'" in QtGUI4.dll and in QtCore4.dll My computer runs Windows 7 64 bits. I have downloaded and installed (not built) Qt4.7.3 Vs2008. M

Re: [Paraview] GetPolyData on a BoxWidget

2011-06-07 Thread Utkarsh Ayachit
You are using 64-bit Qt while building a 32-bit binary. Make sure you re-configure ParaView (using cmake) and pick 64bit compiler. When clipping with box, you'd get a vtkPVBox as the implicit function. You can get the box dimensions from it and the construct your own polydata or use vtkCubeSource

Re: [Paraview] GetPolyData on a BoxWidget

2011-06-08 Thread Laurent Paul
The bit level was not specified, and I had no choice for the compiler... I tried compiling using the 32 bit version of my compiler and it worked. Regarding the clipping, I can't find the vtkPVBox in the paraview sources. Are you sure that it is the class used for clipping DataSet using a box? I u

Re: [Paraview] GetPolyData on a BoxWidget

2011-06-08 Thread John Drescher
> The bit level was not specified, and I had no choice for the compiler... > I tried compiling using the 32 bit version of my compiler and it worked. > In visual studio you can do that by opening up a 32 bit or 64 bit command prompt for your compiler. John _

Re: [Paraview] GetPolyData on a BoxWidget

2011-06-08 Thread Utkarsh Ayachit
Oh, you're using 3.10, aren't you? vtkPVBox got added in git-master recently. In case of 3.10, it will be a vtkBox. We subclassed it recently to provide an API to set position,scale, orientation separately. In 3.10's case, you can use vtkBox::GetTransform() to obtain the transformation matrix and

Re: [Paraview] GetPolyData on a BoxWidget

2011-06-08 Thread John Drescher
On Wed, Jun 8, 2011 at 8:33 AM, Laurent Paul wrote: > No, I mean 32 or 64 bits and VS2010 on the Qt download page. > Sorry I was I was talking about building Qt because I know the download page is limited.. To build Qt you open up a command for your compiler (Visual Studio 2008 x64 Win64 Command p

Re: [Paraview] GetPolyData on a BoxWidget

2011-06-08 Thread Laurent Paul
Ouch... I have configured the project but without any option and it has worked. Running nmake fails because cl tries to use a temp directory that contains '&'... Do you know how to make that temp directory pointing elsewhere? Le 8/06/2011 14:54, John Drescher a écrit : On Wed, Jun 8, 2011

Re: [Paraview] GetPolyData on a BoxWidget

2011-06-08 Thread John Drescher
On Wed, Jun 8, 2011 at 9:00 AM, Laurent Paul wrote: > Ouch... > > I have configured the project but without any option and it has worked. > Running nmake fails because cl tries to use a temp directory that contains > '&'... > Do you know how to make that temp directory pointing elsewhere? > TEMP

Re: [Paraview] GetPolyData on a BoxWidget

2011-06-10 Thread Laurent Paul
Hi guys, Me again! My config is : Windows 7 64 bits, VS2010 (and SDK 7.1 to get the 64 bits version compiler). I managed to build Qt and Paraview... unfortunatelly, paraview crashes just after the splash screen :-\ I was suspecting the Qt version to be responsible since I have installed the b