From: Jonathan S. <jjs...@sb...> - 2005-12-02 03:09:36
|
OK, I am not at all familiar with what you are trying to do. I do see a vtk_pcolor function in Octaviz, though. Have you tried it? Jonathan Fabian Braennstroem wrote: > Hi Jonathan, > > * On 30 Nov 2005 * Jonathan Stickel wrote: > > >>Fabian >> >>I am not really sure what you are asking, perhaps because I do not know >>what 'tecplot' is or what its data is for. The octaviz functions >>(vtk_something) are attempts to mimic high-level plotting commands that >>are available in Matlab. Is there something in Matlab that you like >>that isn't yet in Octaviz? Please point that out, and we can try to >>implement it. > > > Sorry, I was not clear enough; I try it better: > > I have some 3D data (coordinates and velocities) from a CFD simulation (actually in > tecplot format, but since vtk does not have any reader for > tecplot, the format is not important). I load these datas > using 'load' in octave. Now, I would like to display the > velocity field at a certain plane. Using original vtk > commands and a vtk reader I would use the vtkCutter, e.g.: > > cutter = vtkCutter(); > cutter.SetInput(reader.GetOutput()); > > In matlab I used the function 'pcolor', which does about the > same as the 'cutter'. > > As mentioned there exists no reader for my formated data, so > I was asking, if it somehow possible to use the 'loaded' > data aus input for the vtkCutter, e.g.: > > load data; > > x=data(:,1); > y=data(:,2); > z=data(:,3); > u=data(:,4); > > cutter= vtkCutter(); > cutter.SetInput(x,y,z,u); > > Using the pcolor function in matlab I had to 'reshape' the > velocity: > > U=reshape(u,size(x),size(y)); > pcolor(x,y,U) > > Maybe, you have an idea how to do that!? > Probably the best way would be to convert those tecplot data > into the ensight format ... unfortunately I was not able to > do that yet :-( > > > Greetings! > Fabian > > > >>Octaviz does allow you to use VTK objects and manipulate them. The >>ClipCow.m example uses vtkCutter, so you can look at that if that is >>what you want. >> >>Jonathan >> >> >>Fabian Braennstroem wrote: >> >>>Hi, >>> >>>I'm still using it :-) >>> >>>Right now, I have some trouble to display some 'tecplot' >>>formated data using octaviz. One problem is, that their >>>exist no reader in vtk for it. To get around that I would >>>load the data into octave and display the data using pcolor, >>>but that just would work in Matlab nicely. >>> >>>Anyways, to get all simulation results in the same vtk-style >>>I am looking for a vtk-function, which replaces 'pcolor'. In >>>my point of view, the vtkCutter is the right modul, but I >>>don't know, how I can get my data into it!? There does not >>>exist a 'vtk_cutter' function similar to pcolor in octaviz, >>>doesn't it? >>> > > |