Re: [Paraview] post-process of CFL3D result with surfaces in paraview?

2017-11-30 Thread kenichiro yoshimi
Hi Cheng,

You can specify the i-j-k min/max indices in a structured grid dataset
to extract curviliner grid as wall using the vtkExtractGrid filter
through Programmable. Specifically, after adding Programmable Filter
and Changing the output type to vtkPolyDatat, there is something like
the following as Script:
-
import vtk

mdi = self.GetInput()
sdo = self.GetOutput()
append = vtk.vtkAppendPolyData()

blockNo = 0
sg = mdi.GetBlock(blockNo)
ext = list(sg.GetExtent())
print ext

ext[0] = 0
ext[1] = 0
extractor = vtk.vtkExtractGrid()
extractor.SetInputData(sg)
extractor.SetVOI(ext)

surface0 = vtk.vtkGeometryFilter()
surface0.SetInputConnection(extractor.GetOutputPort())
surface0.Update()
append.AddInputData(surface0.GetOutput())

ext = list(sg.GetExtent())
ext[2] = 0
ext[3] = 0
extractor.SetVOI(ext)
extractor.Modified()
surface1 = vtk.vtkGeometryFilter()
surface1.SetInputConnection(extractor.GetOutputPort())
surface1.Update()
append.AddInputData(surface1.GetOutput())

append.Update()

sdo.ShallowCopy(append.GetOutput())
-

Thanks

2017-11-30 5:32 GMT+09:00 程迪 :
> Hi paraviewers,
>
> I am using paraview to render results in CFL3D, which is in Plot3D format,
> including `abc.xyz` grid file and `abc.q` solution file. Besides, I have a
> boundary condition file `abc.xyz.fvbnd` in FieldView 1.3 format which was
> generated by grid pre-processor.
>
> My problem is: How to extract the surface of the aircraft?
>
> Because the Plot3D format is a multi-block curvilinear grid. When I use
> `Extract Surface` filter, it will extract the block interfaces. My current
> solution to combine blocks by `Merge Blocks` filter. Then I can extract the
> surfaces, including the outer boundary and the inner aircraft walls. After
> that, I need to clip the farfield and keep the aircraft walls. Is there a
> better solution?
>
> However, what I need to do is to evaluate the force on specific parts. So I
> need to use the information from the boundary condition file `abc.xyz.fvbnd`
> which indicates ranges of indexes in curvilinear grid as wall of certain
> parts. My problem is how to use it to generate several surfaces in paraview
> for rendering and integration.
>
>
> p.s. I am using paraview 5.4.1. The grid consists of farfield outer boundary
> and several aircraft parts' wall inner boundaries.
>
>
> Di Cheng
> Engineer of Research Center
> China Academy of Aerospace Aerodynamics
> Phone: +86-l58Ol5949ll
>
> Address: No.17, YunGang West Road, Fengtai District, Beijing, China
>
> Zip Code:100074
>
>
> ___
> 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 ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>
___
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 ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Equally spaced points on a slice (for the streamlines)

2017-11-23 Thread kenichiro yoshimi
Hi  Andrew,

Would you try to apply the set of filters with Smooth, Subdivide and
Mask Points to a slice surface? The smoothing process helps to secure
an evenly distribution of points on a slice.

Thanks

2017-11-22 21:17 GMT+09:00 Andrew :
> Hello.
> Sorry for being so slow, got lots of work with reports...
> Just tried Mandelbrot filter applied to a slice. With defaults, it created a
> kind of fractal rotated and translated relative to original slice. Should I
> use some particular settings to just resample? Also, tried Wavelet and
> Gaussian resample. These filters create volumes being appliet to the slice
> so it seems that they doesnt fit my needs. Any suggestions? Is there some
> simple filter to resample arbitrary surface in ParaView.
> Thanks for your attention. (Now I use Mask Points with the same problem of
> un-even point distribution, the best results are with Random sampling +
> randomised ID strides, but without limiting the maximum number of points;
> instead of this limit I preview points with glyphs and then feed these point
> to the Stream tracer with custom source)
>
> 2017-10-25 9:41 GMT+03:00 Andrew :
>>
>> Hello, sorry for being late.
>> The slice may be oriented arbitrary, it may be not a flat but cylinder
>> slice e.t.c. But often I need just axis-aligned slices. Thanks for
>> suggestion about sources.
>>
>> 2017-10-23 18:03 GMT+03:00 Utkarsh Ayachit :
>>>
>>> Is the slice axis aligned? If so, you can use a regular source eg.
>>> Wavelet or Mandlebrot to generate the evenly spaced points by setting the
>>> extents appropriately.
>>>
>>> Utkarsh
>>>
>>> On Mon, Oct 23, 2017 at 2:41 AM, Andrew  wrote:

 Hello.
 I need to distribute points on a slice equally to start streamlines from
 these points. The problem is that the Mask Points filter seems to not to
 have such option. I tried all combinations of randomizing in this filter 
 but
 the problem persist. My mesh is unstructured tetra with inflation layers on
 wall so there are lots of cells (points) at the wall and almost all
 streamlines start in near-wall region while I need their starting points to
 be equally distributed along the slice. Is there a way to do it in 
 ParaView?
 Thanks for attention...

 ___
 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 ParaView Wiki at:
 http://paraview.org/Wiki/ParaView

 Search the list archives at: http://markmail.org/search/?q=ParaView

 Follow this link to subscribe/unsubscribe:
 http://public.kitware.com/mailman/listinfo/paraview

>>>
>>
>
>
> ___
> 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 ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>
___
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 ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] surface construction with holes

2017-11-14 Thread kenichiro yoshimi
Hi Ufuk,

vtkSurfaceReconstructionFilter with programmable filter detects holes
in your data although they are somewhat inaccurate. As Ken mentioned,
it would fail for other shapes with holes. But I think it is a little
funny approach.

import vtk

pdi = self.GetInput()
pdo = self.GetOutput()

surf = vtk.vtkSurfaceReconstructionFilter()
surf.SetInputData(pdi)
surf.SetSampleSpacing(0.02)

cf = vtk.vtkContourFilter()
cf.SetInputConnection(surf.GetOutputPort())
cf.SetValue(0, 0.0)

reverse = vtk.vtkReverseSense()
reverse.SetInputConnection(cf.GetOutputPort())
reverse.ReverseCellsOn()
reverse.ReverseNormalsOn()
reverse.Update()

pdo.ShallowCopy(reverse.GetOutput())


Thanks

2017-11-15 0:04 GMT+09:00 Moreland, Kenneth :
> Ufuk,
>
> The short answer is, no. You cannot keep the Delaunay2D filter from filling 
> holes.
>
> The mathematical description of Delaunay triangulation fills in all the space 
> in the convex hull of the points. The question about having the Delaunay 
> triangulation keeping open space that is supposed to be empty comes up 
> frequently on this list. However, generally identifying what should not be 
> filled is not easy to describe, especially in a general sense. When you ask 
> me about the “hole” in your data, I, as a human, can immediately identify 
> what you mean. But can you describe it in such a way that it can be easily 
> picked out by a computer? I cannot. And even if we did come up with 
> something, there is a good chance it would fail for holes of other shapes.
>
> That said, you might be able to resolve the problem by removing the triangles 
> over the hole after you create the surface. I note that what you mean by a 
> hole is a region where points are spread out, so we could start by removing 
> big triangles. You can identify triangle size using the Mesh Quality filter. 
> Add the Mesh Quality filter and change Triangle Quality Measure to Area. 
> After you run that, use the threshold filter to remove all triangles with a 
> “quality” (actually area) greater than 0.01.
>
> That removes some of the triangles in the holes, but not all of them. You 
> will also see that the remaining triangles are skinny ones that stretch 
> across cords of the circular hole. So, we could also remove skinny triangles. 
> Run the Mesh Quality filter again on the output, this time setting the 
> Triangle Quality Measure to Radius Ratio. Then use the Threshold filter again 
> to remove triangles greater than a value somewhere in the range of 5 to 15. 
> You might notice at this point that it is getting difficult to specify values 
> that work well around the holes along the sides. Low values start removing 
> valid triangles on the sides. High values leave some of the holes covered. 
> This is what I meant by it being difficult to describe the holes to a 
> computer.
>
> An alternate approach is to select the triangles over the wholes, invert the 
> selection, and then extract the selection. You could also do that to the 
> result of the procedure I just gave you.
>
> One final note. You are using Delaunay 2D on a set of data that is 3D. I 
> presume you are aware that Delaunay 2D is actually projecting all of your 
> points onto a plane and finding a triangulation there. It is not finding a 
> surface in 3D. The only way to find the true 3D surface (in ParaView) would 
> be to do a Delaunay 3D and then extract the external faces.
>
> -Ken
>
>
> On 11/14/17, 5:11 AM, "ParaView on behalf of Ufuk Utku Turuncoglu (BE)" 
>  
> wrote:
>
> Hi,
>
> I am trying to create surface for a poly data (see attached figure). In
> this case, if i use Delaunay2D filter, it creates surface but it also
> fills the holes. So, i just wonder that is it possible to create surface
> for it without filling holes. You could also find a simple dataset as
> attachment.
>
> Regards,
>
> --ufuk
>
>
>
> ___
> 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 ParaView Wiki at: 
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
___
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 ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Changing line width or edge color with a filter

2017-10-16 Thread kenichiro yoshimi
Hi

There may not be a filter to control them.  But such options are found
by clicking the advanced button (little gear icon) on the Properties
tab:
---
line width: Properties tab > Styling > Line width
Edge Color: Properties tab > Edge Styling > Edge Color
---

Regards

2017-10-17 0:28 GMT+09:00 JAIRAJ MATHUR :
> Hey all
>
> I have unstructured grid data which has connected elements. Is there a way I
> can apply a filter to control the width/color of the edges of these elements
> based on a parameter?
>
> Thanking you
>
> --
> Jairaj Mathur,
> Mechanical Engineering
> Washington University in St Louis
>
>
> ___
> 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 ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>
___
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 ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Volume average along 1-dimension

2017-10-05 Thread kenichiro yoshimi
Hi ashton,

Perhaps the python programmable filter is needed for a 1D average you
want to achieve. I have attached a state file as a similar example
that firstly generates the cross sections along the z-axis by cutting
a volume and then calculates the averages on them respectively.

I hope this will help.
Best

2017-10-06 3:15 GMT+09:00 A :
> Hi all,
>
> I have a 3D volume (xyz) with each point/cell having a corresponding value
> (velocity; this is a model of the crust and seismic velocity).
>
> I want to calculate a 1D average velocity profile along the z-axis (so at
> every depth average all the x-y velocity values).
>
> Any idea?
>
> Thanks!
>
> ashton
>
> p.s. point data or cell data solutions would work
>
> ___
> 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 ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>


1D_Averaging.tar.gz
Description: GNU Zip compressed data
___
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 ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Changing default setting for cylinder filter

2017-10-01 Thread kenichiro yoshimi
Hi,

Unfortunately vtkCylinderSource class doesn't seem to allow you to
change default settings for the axis direction. Hence you should apply
the transform filter after creating a cylinder.

Thanks

2017-10-01 15:00 GMT+09:00 Muhammad Kashif Saeed :
> Hi everyone,
> I want to draw a cylinder in ParaView.
> its default setting is such that its height is in the y-direction but i want
> to change it in z_direction.
>
> I have radius 0.07 m and height 0.3 m in Z direction
> plz help me
> thanks
>
> --
>
> Muhammad Kashif Saeed
> Chemical Engineer
> Cell: +92-300-7328139
>
> ___
> 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 ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>
___
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 ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Compiling ParaView for Windows x64 Release

2017-08-26 Thread kenichiro yoshimi
Hi Nick,

You need to put the missing Qt DLLs in the same directory as
paraview.exe built as "Release". Note that it seems to be difficult to
know the missing DLLs' names since some of them are not displayed
directly as warning messages. Probably the following DLLs may be
missing:
--
Qt5Core.dll
Qt5Gui.dll
Qt5Help.dll
Qt5Network.dll
Qt5Sql.dll
Qt5Widgets.dll
...

Thanks,
yoshimi

2017-08-26 1:37 GMT+09:00 Nicholas Richmond :
> Greetings,
>
> I've been having some trouble building ParaView 5.4.1 on my system. I'm
> hoping a Windows-savvy user might be able to lend some insight. ParaView
> builds just fine under "Debug" mode, but when built as "Release," I get four
> errors signaling that "The procedure entry point...could not be located in
> the dynamic link library" for paraview.exe, vtkpqPython-pv5.4.dll,
> vtkpwWidgets-pv5.4.dll, and vtkpqCore-pv5.4.dll.
>
> The debugger shows:
>
> Exception thrown at 0x7FFD18054B90 (ntdll.dll) in paraview.exe:
> 0xC139: Entry Point Not Found.
> Exception thrown at 0x7FFD18054B90 (ntdll.dll) in paraview.exe:
> 0xC139: Entry Point Not Found.
> Exception thrown at 0x7FFD18054B90 (ntdll.dll) in paraview.exe:
> 0xC139: Entry Point Not Found.
> Exception thrown at 0x7FFD18054B90 (ntdll.dll) in paraview.exe:
> 0xC139: Entry Point Not Found.
> The thread 0x4fcc has exited with code -1073741511 (0xc139).
> The thread 0x6c7c has exited with code -1073741511 (0xc139).
> The thread 0x65a0 has exited with code -1073741511 (0xc139).
> The program '[15092] paraview.exe' has exited with code -1073741511
> (0xc139) 'Entry Point Not Found'.
>
> In case it matters, the only thing I'm changing in CMake is the python
> version (to 3).
>
> Any help would be most appreciated.
> Thanks,
> Nick
>
> ___
> 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 ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>
___
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 ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] An exported csv file is bad

2017-08-04 Thread kenichiro yoshimi
Hi Wink,

This problem has already been reported as a bug.
https://gitlab.kitware.com/paraview/paraview/issues/17169
https://gitlab.kitware.com/paraview/paraview/issues/17203

Thanks

2017-08-04 5:26 GMT+09:00 Wink Saville :
> In this directory is a simulation of a left femur I opened
> sim_0_screws_everything_moderate_first_order.vtm in to paraview v5.4.0
> running on Linux and then opened the spreadsheet view and exported the data
> as sim_0_screws_etmfo.csv (49MB). Looking at the data I notice that some
> data is incorrect, see sim_0_screws_etmfo.bad-1022-1027.csv, snippet below:
>
> 2,1022,46,0.0434841,0.0168761,-0.0693468,0, ...
> ,-3.55276e-07,1.38283e+06,-547066
> 2,1023,46,0.0434874,0.0183288,-0.0683755,0, ...
> ,-1.01147e-07,1.35185e+06,-804654
> -210794,126838,259957,-389825,518195, ... ,-0.0697033,1024,0,2
> -269021,165638,423761,-428135,564983, ... ,-0.0680892,1025,0,2
>
> The correct data, see sim_0_screws_etmfo-1022-1027.csv, snippet below:
>
> 2,1022,46,0.0434841,0.0168761,-0.0693468,0, ... ,1.38283e+06,-547066
> 2,1023,46,0.0434874,0.0183288,-0.0683755,0, ... ,1.35185e+06,-804654
> 2,1024,46,0.0447487,0.0182134,-0.0697033,0, ... ,1.22664e+06,551217
> 2,1025,46,0.0450036,0.0176967,-0.0680892,0, ... ,1.41211e+06,892762
> 2,1026,46,0.0545377,-0.0139687,-0.0666425,0, ... ,1.2249e+06,1.2249e+06
>
> Is this a known problem or have I done something wrong?
>
> -- Wink
>
> ___
> 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 ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>
___
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 ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Bug in PLOT3D meta reader

2017-08-01 Thread kenichiro yoshimi
Hello Eric,

If the number of blocks in dataset decreases over time steps then
vtkMultiBlockPLOT3DReader seems to fail to count it. For your
information, I tried commenting out the line 822 in
ParaView-v5.4.0/VTK/IO/Parallel/vtkMultiBlockPLOT3DReader.cxx and this
worked with your data.
-
  if ( numGrid > (int)this->Internal->Dimensions.size() )
  {
this->Internal->Dimensions.resize(numGrid);
  }

=>

  //if ( numGrid > (int)this->Internal->Dimensions.size() )
  {
this->Internal->Dimensions.resize(numGrid);
  }
-

Thanks,
yoshimi

2017-08-02 2:16 GMT+09:00 Eric Lynch :
> I believe there is a bug in the PLOT3D metafile reader.  I've attached two
> PLOT3D meshes and a metafile.  Version 5.4.1 appears to read the metafile
> successfully.  After reading it, I can see the outline of the two blocks in
> the first mesh file.  If I advance to the next time step, I can see the
> outline of the three blocks in the second mesh.  If I then go back to the
> previous time step, I get an error message saying:
>
>
>
> ERROR: In
> /home/buildslave/dashboards/buildbot/paraview-pvbinsdash-linux-shared-release_superbuild/build/superbuild/paraview/src/VTK/IO/Parallel/vtkMultiBlockPLOT3DReader.cxx,
> line 1397 vtkMPIMultiBlockPLOT3DReader (0x6b53260): Encountered premature
> end-of-file while reading the geometry file (or the file is corrupt).
>
>
>
> ERROR: In
> /home/buildslave/dashboards/buildbot/paraview-pvbinsdash-linux-shared-release_superbuild/build/superbuild/paraview/src/VTK/Common/ExecutionModel/vtkExecutive.cxx,
> line 784 vtkCompositeDataPipeline (0x6946da0): Algorithm
> vtkMPIMultiBlockPLOT3DReader(0x6b53260) returned failure for request:
> vtkInformation (0x68935b0)
>
>   Debug: Off
>
>   Modified Time: 982828
>
>   Reference Count: 1
>
>   Registered Events: (none)
>
>   Request: REQUEST_DATA
>
>   ALGORITHM_AFTER_FORWARD: 1
>
>   FROM_OUTPUT_PORT: 0
>
>   FORWARD_DIRECTION: 0
>
>
>
> To my knowledge, the last version without this bug was 4.3.1.
>
>
>
> Thanks,
>
> Eric
>
>
> ___
> 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 ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>
___
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 ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Opacity transfer function in pvpython

2017-07-22 Thread kenichiro yoshimi
Hi Ross,

Specifying representation.ScalarOpacityFunction via the same piecewise
function may be also needed:
representation.ScalarOpacityFunction =
CreatePiecewiseFunction(Points=[0.0, 0.0, 0.5, 0.0, 1.0, 1.0, 0.5,
0.0])

Thanks,
yoshimi

2017-07-21 19:14 GMT+09:00 Ross Gardiner :
> Hi,
>
> I’m currently working on a tool that generates Python scripts which, in turn, 
> save a ParaView state. The state can then be loaded in ParaView.
>
> I am experiencing some issues with setting up the LUT for volume rendering of 
> some data. (I’ve already reported one issue that I’m pretty sure is a bug at 
> https://gitlab.kitware.com/paraview/paraview/issues/17616 )
>
> I am able to set the color transfer function and opacity transfer function, 
> and both appear in the UI. However, while the color transfer function works, 
> the opacity transfer function seems to have no effect on rendering 
> whatsoever. After loading the state in ParaView, I can set the entire opacity 
> transfer function to zero and the renderered volume remains completely opaque.
>
> Here’s an example of the Python code I am using:
>
> soundfield = OpenDataFile('my_data.vti')
> representation = Show(soundfield)
> representation.ColorArrayName = 'ImageScalars'
> representation.Representation = 'Volume'
> representation.LookupTable = 
> AssignLookupTable(soundfield.PointData['ImageScalars'], 'Cool to Warm')
> representation.LookupTable.ScalarOpacityFunction = 
> CreatePiecewiseFunction(Points=[0.0, 0.0, 0.5, 0.0, 1.0, 1.0, 0.5, 0.0])
> SaveState('state.pvsm')
>
> Is there anything special I have to do? I’ve looked over the 
> documentation/mailing lists/ListProperties() and I can’t see anything obvious.
>
> Thanks,
> Ross
>
> ___
> 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 ParaView Wiki at: 
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
___
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 ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Extract by ID

2017-07-19 Thread kenichiro yoshimi
Hi bastil,

This can be achieved through running a query (Edit > Find Data) on
your data using the criteria "is one of" where you can specify
multiple separated cell ids by a comma(,). After selecting the cells
the Extract Selection filter will extract a set of them.

Thanks,
yoshimi

2017-07-20 3:21 GMT+09:00 bastil2001 via ParaView :
> Hello all,
>
> short question: I have an unstructured grid where I want to extract
> cells from. I know the IDs of the cells. Is there an easy way to do and
> script that? Thanks.
>
> ___
> 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 ParaView Wiki at: 
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
___
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 ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Clever way to identify a ring of element?

2017-06-20 Thread kenichiro yoshimi
Hello Dennis,

To apply the slice filter to a doughnut polygon creates line segments
obtained by intersecting it with section planes. And then to apply the
connectivity filter to the result gives curve rings consisting of
consecutive line segments and each of rings is assigned a RegionId.
You can try the attached Status file with ParaView 5.4.

Unfortunately these elements belonging to the rings are in Cartesian
coordinate system. So, you need to convert the elements' coordinates
from Cartesian (x,y,z) to Cylindrical (r,\theta,z). At that time, the
following code would be helpful to compute a barycenter and a mean
radius of individual rings:
https://github.com/vmtk/vmtk/blob/master/vtkVmtk/ComputationalGeometry/vtkvmtkBoundaryReferenceSystems.cxx

Thanks,
yoshimi

2017-06-16 1:58 GMT+09:00 Dennis Conklin :
> All,
>
>
>
> Imagine I have a model of a doughnut.   I want to identify rings in the
> model.   A ring is a set of elements in an r, z, theta coordinate system
> which has the same radius and z_coordinate and only differs in the angular
> coordinate.  Of course, since trig functions are used  in calculating the
> radius, we are not guaranteed that the radius will be absolutely identical
> for each element in the ring.
>
>
>
> Is there a clever (as in fast and easy) way to sort out elements belonging
> to individual rings and perhaps assign something like a ring number to them
> so that a threshold could be used to examine individual rings.   I’m hoping
> there is some clever vtk stuff that I’m not familiar with that would help
> with this.
>
>
>
> Thanks for any thoughts
>
>
>
> Dennis
>
>
> ___
> 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 ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>


rings.tar.gz
Description: GNU Zip compressed data
___
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 ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] VTU files for multi-body FEA models.

2017-06-09 Thread kenichiro yoshimi
Hi Jesse,

Usually vtkMultiBlockDataSet is used so as to store multi-body datasets and
the corresponding file format is a VTK vtkMultiBlockDataSet format
(.vtm). But in time development model such as your case, you'd better
use a ParaView Data format (.pvd) because vtm can't handle time
information. I attach the pvd file sample.

I also think the Multiblock Inspector is very convenient in multiblock
processing.
https://blog.kitware.com/upgrades-to-the-multiblock-inspector/

Thanks,

2017-06-07 1:22 GMT+09:00 Jesse Gerber :
> Hello,
>
> I am a mechanical engineering grad student. This question is regarding an
> active research project in our lab. We wrote a FEA program in C++ for 3D
> solid mechanics problems. At each time step, we output a vtu file using the
> unstructured grid format. Finally, we output a pvd file that creates a
> collection and associates a time step value with each vtu file. So far, we
> have been working with a single body, comprised of multiple hexahedral
> elements. Our point data consists of displacement, velocity, and
> acceleration. Our cell data consists of centroid stress and centroid strain.
>
> We now want to start solving multi-body models. Do we have to write a
> separate vtu file for each body, at each time step? Is there a way to
> combine multiple bodies into a single vtu file, at each time step, in a way
> that we can still view them as separate parts in ParaView? I would like be
> able to use show/hide and color on a part basis. How do people usually
> handle this sort of thing? For example, if I have 10 parts, will I have 10
> separate vtu files at each time step? Note that, within the FEA code, we
> define a part_id for each element in the model. Is there a way I can
> associate each element with a part_id in the vtu file? That way ParaView
> could tell the difference between each part?
>
> Thank you for your help!
>
>
>
> Best regards,
>
>
>
> Jesse
>
>
> ___
> 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 ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>


pvd_sample.7z
Description: Binary data
___
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 ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Paraview freezes without any error message

2017-06-06 Thread kenichiro yoshimi
Hi Tanja,

This freezing problem with 5.2.0 comes from the last line having no
newline in example.vtk. Could you try to add a new line to the last
line or try the recently released 5.4.0.

Thanks,

2017-06-07 4:01 GMT+09:00 Tanja Gerasimenko :
> Hello!
>
> I'm using Paraview 5.3.0 64-bit installed on Gentoo Linux machine. Starting
> from version 5.2.0 it doesn't display any vtk file. It works fine with an
> example file like test.vtk (downloaded from vtk file format examples) but
> doesn't show any of my own files (example.vtk). All worked fine in previous
> versions. Now Paraview freezes when I push the button "Apply" after opening
> the file. It consumes 100% of CPU (only one core) and doesn't write anything
> to console (when starting from command line).
> Could you please explain me how can I display some debug information to
> understand where is the problem?
>
> Sorry for my bad English
> Tanja
>
> ___
> 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 ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>
___
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 ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Overriding the maximal cylinder source resolution

2017-05-29 Thread kenichiro yoshimi
Hi Tomislav,

I find restriction on the resolution number of a cyliner source in
vtkCylinderSource.h, that is:
  vtkSetClampMacro(Resolution,int,2,VTK_CELL_SIZE).
This macro amounts to saying that the resolution is restricted to a
range between 2 and VTK_CELL_SIZE(=512). Hence, I think it difficult
to override.

In order to increase the resolution of the cylinder, one thing you can
try is to apply the loop subdivision filter after triangulating it.

Thanks,
yoshimi

2017-05-30 0:06 GMT+09:00 Tomislav Maric :
> Hello everyone,
>
> I have exported the paraview trace into the attached script that
> generates a cylinder source without caps, triangulates and saves an STL
> file.
>
> I have noticed that the cylinder resolution can be prescribed to any
> number in the python script:
>
> ~~~
> # create a new 'Cylinder'
> cylinder1 = Cylinder()
>
> # Properties modified on cylinder1
> cylinder1.Resolution = 10
> ~~~
>
> And this number is reported by the print command as well
>
> ~~~
> print(cylinder1.Resolution)
> ~~~
>
> However, the actual resolution of the cylinder source never exceeds the
> number 512. This I have figured out after manually inspecting the number
> of triangles in the 'cylinder.stl' file generated by the attached script.
>
> I have browsed the VTK code as well, but I could not find the point
> where the maximal cylinder source resolution is restricted to 512.
>
> My question is: can I somehow (in python, or in VTK) override the
> resolution that is actually then applied to the cylinder? I am using
> paraview version 4.4.0. Does it work in a newer paraview version?
>
> Kind Regards,
>
> Tomislav
>
>
>
> ___
> 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 ParaView Wiki at: 
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>
___
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 ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Extracting min/max values of current data range as a variable in python

2017-04-11 Thread kenichiro yoshimi
Hi,

I also want to know if there is a simple way to do, since I only have
the somewhat redundant code:
---
source = GetActiveSource()

#options for component: -1, 0, 1 and 2 => Mag, X, Y, Z
component = -1

cdi = source.GetDataInformation().GetCompositeDataInformation()

for i in range(cdi.GetNumberOfChildren()):
  print 'Block Name: ', cdi.GetName(i)

  data = cdi.GetDataInformation(i).GetCellDataInformation()
  for j in range(data.GetNumberOfArrays()):
array = data.GetArrayInformation(j)
arrayName = array.GetName()
dataRange = array.GetComponentRange(component)
print arrayName, dataRange
---

Thanks,
yoshimi

2017-04-12 6:10 GMT+09:00 Jamison, Ryan Dale :
> Hello Everyone,
>
> I’m wanting to gain more control over automation with my paraview python
> scripts. This time around, I’d like to be able to extract information from
> the model and use it in my python script.
>
> For example, I’d like to extract the minimum and maximum values of a cell
> variable from a specific block and use those values in the python script.
> Once I extract this information, I’d use it for some additional processing.
> Something like:
>
> minValue, maxValue = someCoolParaviewFunction(blockName, variableName)
>
> Is this possible? If so, any suggestions on how to do it?
>
> Thanks,
>
> Ryan
>
> ___
> 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 ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>
___
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 ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Difference between two Exodus II files

2017-03-24 Thread kenichiro yoshimi
Hi,

One solution is to call programmable filter from your python program.
I haven't tried Exodus II format, but the below is working:

readers = []
readers.append(OpenDataFile(PATH + 'aaa.vtp'))
readers.append(OpenDataFile(PATH + 'bbb.vtp'))

programmable = ProgrammableFilter(Input=readers)
programmable.Script="\nelev0 = inputs[0].PointData['Elevation']
\nelev1 = inputs[1].PointData['Elevation']\noutput.PointData.append(elev1
- elev0, 'difference')"
programmable.UpdatePipeline()

writer = CreateWriter(PATH + 'ccc.vtp', programmable)
writer.UpdatePipeline()

Regards,
yoshimi

2017-03-24 4:02 GMT+09:00 John Haase :
> Hello Paraviewers,
>
> I want to get the difference of all the cell data, similar to what was done
> here
>
> http://paraview.markmail.org/search/?q=difference#query:difference+page:1+mid:lc6a4ss2j5hi37ps+state:results
>
> However, how do I make a writer that can accept the appended data? I tried
> to create the writer
>
> writer = CreateWriter(path+'Difference.e', reader[0])
> writer.CellData.append( reader[0].CellData['x'] - reader[1].CellData['x'] ,
> 'x')
>
>
> and got the error
>
> Traceback (most recent call last):
>   File "", line 1, in 
>   File "C:\Program Files\ParaView
> 5.2.0-Qt4-OpenGL2-Windows-64bit\bin\lib\site-packages\paraview\servermanager.py",
> line 1595, in __getattr__
> array = self.GetArray(name)
>   File "C:\Program Files\ParaView
> 5.2.0-Qt4-OpenGL2-Windows-64bit\bin\lib\site-packages\paraview\servermanager.py",
> line 1531, in GetArray
> if not self.GetFieldData().GetArrayInformation(idx):
>   File "C:\Program Files\ParaView
> 5.2.0-Qt4-OpenGL2-Windows-64bit\bin\lib\site-packages\paraview\servermanager.py",
> line 1520, in GetFieldData
> return getattr(self.Proxy.GetDataInformation(self.OutputPort),
> "Get%sInformation" % self.FieldData)()
> AttributeError: 'NoneType' object has no attribute 'GetCellDataInformation'
>
>
> Then, I also tried to just copy the reader
>
> writer = reader[0]
> writer.CellData.append( reader[0].CellData['x'] - reader[1].CellData['x'] ,
> 'x')
>
>
> and got the error
>
> Traceback (most recent call last):
>   File "", line 1, in 
>   File "C:\Program Files\ParaView
> 5.2.0-Qt4-OpenGL2-Windows-64bit\bin\lib\site-packages\paraview\servermanager.py",
> line 1597, in __getattr__
> raise AttributeError("class has no attribute %s" % name)
> AttributeError: class has no attribute append
>
>
> Any advice?
>
> Regards,
>
> John R. Haase
> jhaa...@nd.edu
>
> ___
> 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 ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>
___
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 ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Unable to open .dat file in paraview

2017-03-09 Thread kenichiro yoshimi
Hi Brennen,

This is not the error message but the warning. If dat file does not
exist in the same directory as the cas, the reader is working
correctly. Otherwise dat file name may be different from the cas file
because vtkFLUENTReader uses the exactly the same name for both cas
and dat files.

Thanks,
yoshimi

2017-03-09 15:54 GMT+09:00 Brennen Taylor :
> Dear All ,
>
> I was trying to open fluent case and data file in paraview but I am getting
> this error "Warning: In
> /build/buildd/paraview-4.0.1/VTK/IO/Geometry/vtkFLUENTReader.cxx, line 423
>
> vtkFLUENTReader (0x3627890): Unable to open dat file."
>
>
>
>
> Please help me to resolve this issue.
>
>
>
>
> Regards,
>
>
> Brennen
>
>
>
> ___
> 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 ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>
___
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 ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Issues viewing PV5.0.0 Filters/Alphabetical submenu

2017-02-28 Thread kenichiro yoshimi
Hi,

Has this issue been resolved?

I think that this might be caused by a bug in Qt 4.8.6:
https://bugreports.qt.io/browse/QTBUG-54921

Regards,
yoshimi

2016-01-21 18:40 GMT+09:00 Fuerntratt, Hermann :
> Hi,
> I have built ParaView 5.0.0
> in VS2013, 64 bit
> based on Qt 4.8.6,
> with OpenGL2 render engine in DEBUG and RELEASE mode
> on a Win8.1 64 bit system,
> OpenGL version 4.5.0 NVIDIA 355.82,
> OpenGL renderer GeForce GTX 970/PCIe/SSE2.
>
> So far everything looks good except the big submenu item opened after
> clicking on Filters/Alphabetical just renders the first column of filters
> correctly.
> Starting with the second submenu column, only icons are displayed centred
> (if available) but no text is shown.
> So there is a 3 column submenu with the first column ok, the 2nd column only
> with icons and the 3rd column totally empty.
>
> I tracked void pqProxyGroupMenuManager::populateMenu() method in
> \ApplicationComponents\pqProxyGroupMenuManager.cxx
>
>   // Now sort all actions added in temp based on their texts.
>   qSort(someActions.begin(), someActions.end(), ::actionTextSort);
>   foreach (QAction* action, someActions)
> {
> alphabeticalMenu->addAction(action);
>
> //Check if everything is all right:
> auto msg = action->font().family();
> qDebug() << "---Adding Action > " << action->text() << "
> isVisible= " << action->isVisible() << " Font " << msg;
>
> }
> But all actions have a text and are visible…
> Has anyone else experienced the same weird thing???
>
>
> ___
> 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 ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>
___
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 ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Coloring with vtkBlockColors

2017-02-27 Thread kenichiro yoshimi
Hi,

In order to color blocks by "vtkBlockColors", I just need to call
SetScalarColoring() like below:
 vtkSMPVRepresentationProxy::SetScalarColoring(repr->getProxy(),
"vtkBlockColors", vtkDataObject::FIELD);

This may work even if "vtkBlockColors" array info is not contained in
vtkPVDataSetAttributesInformation although I do skip in this case.

Thanks,
yoshimi

> Hello all,
>
> I have a question over making a ParaView plugin. I try to set coloring
> with "vtkBlockColors" for a multi-block data set by conventional
> method:
> -
> vtkPVDataSetAttributesInformation* attrInfo =
> dataInfo->GetFieldDataInformation();
> vtkPVArrayInformation* arrayInfo = attrInfo->GetArrayInformation(name);
> vtkSMPVRepresentationProxy::SetScalarColoring(repr->getProxy(),
> "vtkBlockColors", vtkDataObject::FIELD);
> -
> But the above arrayInfo is always NULL though there exists a
> "vtkBlockColors"  in field selection combo box with ParaView.
>
> I'd like to know the right way to do it.
>
> Kind regards,
> yoshimi
___
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 ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


[Paraview] Coloring with vtkBlockColors

2017-02-23 Thread kenichiro yoshimi
Hello all,

I have a question over making a ParaView plugin. I try to set coloring
with "vtkBlockColors" for a multi-block data set by conventional
method:
-
vtkPVDataSetAttributesInformation* attrInfo =
dataInfo->GetFieldDataInformation();
vtkPVArrayInformation* arrayInfo = attrInfo->GetArrayInformation(name);
vtkSMPVRepresentationProxy::SetScalarColoring(repr->getProxy(),
"vtkBlockColors", vtkDataObject::FIELD);
-
But the above arrayInfo is always NULL though there exists a
"vtkBlockColors"  in field selection combo box with ParaView.

I'd like to know the right way to do it.

Kind regards,
yoshimi
___
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 ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] [EXTERNAL] Re: Create animation and center geometry

2016-09-27 Thread kenichiro yoshimi
Hi, Ryan

You can specify the size of the images by assigning the render view
properties: view size.

-
renderView1 = GetActiveViewOrCreate('RenderView')
renderView1.ViewSize = [600, 557]
renderView1.ResetCamera()
-

Thanks,
Yoshimi

2016-09-27 23:10 GMT+09:00 Jamison, Ryan Dale :
> Yoshimi,
>
> Thanks for the script! This does exactly what I was wanting to do.
>
> One further question, where in the script can I define the size of the images 
> to save?
>
> Best, Ryan
>
>> On Sep 26, 2016, at 10:40 PM, kenichiro yoshimi  
>> wrote:
>>
>> Hi, Ryan
>>
>> You try the script as follows from [Tools]-[Python Shell] after
>> reading datasets into ParaView.
>>
>> -save_screenshots.py-
>> from paraview.simple import *
>>
>> # Change 10 to the amount of timesteps
>> for num in range(0,10):
>>print 'Save screenshot ' + str(num)
>>
>>renderView1 = GetActiveViewOrCreate('RenderView')
>>renderView1.ResetCamera()
>>
>># Save screenshot
>># Change to your folder
>>name = 'G:/ParaViewData-v4.1/Data/singleSphereAnimation/singleSphere'
>> + str(num).zfill(4) + '.png'
>>print 'Save as ' + str(name)
>>SaveScreenshot(name, magnification=1, quality=100, view=renderView1)
>>
>>animationScene1 = GetAnimationScene()
>>
>>animationScene1.GoToNext()
>> -
>>
>> Thanks,
>> yoshimi
>
___
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 ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Create animation and center geometry

2016-09-26 Thread kenichiro yoshimi
Hi, Ryan

You try the script as follows from [Tools]-[Python Shell] after
reading datasets into ParaView.

-save_screenshots.py-
from paraview.simple import *

# Change 10 to the amount of timesteps
for num in range(0,10):
print 'Save screenshot ' + str(num)

renderView1 = GetActiveViewOrCreate('RenderView')
renderView1.ResetCamera()

# Save screenshot
# Change to your folder
name = 'G:/ParaViewData-v4.1/Data/singleSphereAnimation/singleSphere'
+ str(num).zfill(4) + '.png'
print 'Save as ' + str(name)
SaveScreenshot(name, magnification=1, quality=100, view=renderView1)

animationScene1 = GetAnimationScene()

animationScene1.GoToNext()
-

Thanks,
yoshimi

2016-09-27 12:21 GMT+09:00 Jamison, Ryan Dale :
> Hello Everyone,
>
> I'm trying to save an animation of a finite element model that has large
> deformation. The center of the deformed geometry changes quite a lot during
> the simulation.
>
> When I save the animation, I'm actually saving it as png's and combining
> them afterwards in another tool. I can figure out a center for the model to
> use that will center on the final geometry but it doesn't look good at the
> beginning.
>
> How can I change the center of the geometry as time progresses and then save
> the animations as png's?
>
> Thanks, Ryan
>
>
>
> Sent with Good (www.good.com)
>
> ___
> 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 ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>
___
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 ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


[Paraview] Question mark button launches a blank window with 5.1.0

2016-06-24 Thread kenichiro yoshimi
Hi all,

I use ParaView 5.1.0 version installed from a binary file
ParaView-5.1.0-Qt4-OpenGL2-Windows-64bit.exe. Unfortunately, this version's
"ParaView Online Help" launched by clicking on Question mark button is not
available because
the opened window is blank. This problem did not occur with 5.0.1 version.

Best Regards,
yoshimi kenichiro
___
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 ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


[Paraview] Inconsistent new view with the defalut

2015-11-24 Thread kenichiro yoshimi
Hi Everyone,

I am using 5.0.0-RC1 64-bit on Windows.

I save the parallel projection setting as default:
- Toggle the advanced properties.
- Open view (Render view).
- Check "Camera Parallel Projection".
- Click on the save button shows "Save current view settings values as
default".

After reopening ParaView, the check box of "Camera Parallel Projection" is
checked, but new view is not parallel. I think it is a bug that needs to be
fixed in 5.0.0.

Thanks,
yoshimi
___
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 ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Glyph for normalized zero vectors

2015-07-28 Thread kenichiro yoshimi
Cory,

Thank you for your response. This works fine.
I hope that Glyph filter has the feature to always remove glyphs for zero
vectors.
Thank you again for your help.

Best,
yoshimi

2015-07-28 21:55 GMT+09:00 Cory Quammen :

> Yoshimi and Gaspare,
>
> Try Thresholding the glyph filter to get rid of the zero-magnitude glyphs.
>
> HTH,
> Cory
>
> On Tue, Jul 28, 2015 at 8:46 AM, Gaspare Argento <
> gaspare.arge...@gmail.com> wrote:
>
>> Hi all,
>>
>> I have the same problem. Any tips could help.
>>
>> Thanks,
>>
>> Gaspare
>>
>> 2015-07-28 4:06 GMT+02:00 kenichiro yoshimi :
>> > I attach an image that shows unnatural arrows generated from zero
>> vectors.
>> >
>> > Thanks,
>> > yoshimi
>> >
>> > 2015-07-27 11:58 GMT+09:00 kenichiro yoshimi :
>> >>
>> >> Hi all,
>> >>
>> >> I apply the Glyph filter to the velocity field with zero vectors at the
>> >> walls.
>> >> At that time, to plot the normalized vectors, I set the "Scale Mode"
>> >> property to off. But Glyph filter is drawing arrows oriented along (1,
>> 0, 0)
>> >> for zero vectors.
>> >>
>> >> Do you have any idea that I could plot normalized zero vectors that
>> have
>> >> no length?
>> >>
>> >> Thanks for your helps,
>> >> yoshimi
>> >
>> >
>> >
>> > ___
>> > 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 ParaView Wiki at:
>> > http://paraview.org/Wiki/ParaView
>> >
>> > Search the list archives at: http://markmail.org/search/?q=ParaView
>> >
>> > Follow this link to subscribe/unsubscribe:
>> > http://public.kitware.com/mailman/listinfo/paraview
>> >
>> ___
>> 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 ParaView Wiki at:
>> http://paraview.org/Wiki/ParaView
>>
>> Search the list archives at: http://markmail.org/search/?q=ParaView
>>
>> Follow this link to subscribe/unsubscribe:
>> http://public.kitware.com/mailman/listinfo/paraview
>>
>
>
>
> --
> Cory Quammen
> R&D Engineer
> Kitware, Inc.
>
___
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 ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


[Paraview] Glyph for normalized zero vectors

2015-07-26 Thread kenichiro yoshimi
Hi all,

I apply the Glyph filter to the velocity field with zero vectors at the
walls.
At that time, to plot the normalized vectors, I set the "Scale Mode"
property to off. But Glyph filter is drawing arrows oriented along (1, 0,
0) for zero vectors.

Do you have any idea that I could plot normalized zero vectors that have no
length?

Thanks for your helps,
yoshimi
___
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 ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Problem displaying only point data

2014-06-16 Thread kenichiro yoshimi
Hi Keith,

I load your example into ParaView and save to ASCII vtk legacy VTK Files
(*.vtk). Then open a saved vtk file in text editor, all "CELL_TYPES" are
"0" instead of "1". This may cause display failure.

Thanks,
yoshimi


2014-06-17 13:16 GMT+09:00 Keith Kelly :

> David,
>
> I'm sorry, I'm not sure if I don't understand your answer or if I wasn't
> clear
> in asking my question. There's no option other than "Solid Color" for the
> coloring of the points, and even then nothing shows in the 3D view.
> ParaView
> isn't reporting any errors, but isn't showing anything. I'm attaching
> example
> files.
>
> Thanks,
> Keith
>
> On Monday 16 June 2014 22:18:35 David E DeMarle wrote:
> > Give the Calculator filter the expression "coords" to make up an
> attribute
> > array corresponding to the coordinate values.
> >
> > David E DeMarle
> > Kitware, Inc.
> > R&D Engineer
> > 21 Corporate Drive
> > Clifton Park, NY 12065-8662
> > Phone: 518-881-4909
> >
> > On Mon, Jun 16, 2014 at 10:54 PM, Keith Kelly  wrote:
> > > Hi,
> > >
> > > I have a function to write pvtu and vtu files to disk containing
> > > information about position (3 values) and value (2 values). For Cell
> > > connectivity, I only connect a point to itself, and my cell offset is
> > > then just increasing by 1 every time. For cell type I use 1. I can open
> > > these files in ParaView with no error, and I can see all the data
> (value
> > > and position) in spreadsheet view, but I have no options to display the
> > > value (magnitude) as points.
> > >
> > > Here's what I see:
> > > Spreadsheet view: http://i.imgur.com/UoWaXhj.png
> > > 3D view: http://i.imgur.com/m19ONKG.png
> > >
> > > How can I view these points colored by the magnitude of their values?
> > >
> > > Tested in ParaView 3.1.3 and ParaView 4.0.1.
> > >
> > > Thanks,
> > > Keith
> > >
> > > ___
> > > 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 ParaView Wiki at:
> > > http://paraview.org/Wiki/ParaView
> > >
> > > Follow this link to subscribe/unsubscribe:
> > > http://public.kitware.com/mailman/listinfo/paraview
> >
>
> ___
> 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 ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>
>
___
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 ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


[Paraview] Trouble Mapping Data

2014-02-24 Thread kenichiro yoshimi
Dear all,

In Color Map Editor panel, "Mapping Data" window fails to display the
mapping when I am trying to load data including scalars larger than 1.0e+11
with  ParaView 4.1.0.  However, with ParaView 3.98 and earlier,  there is
no problem.
Any help is greatly appreciated.

Kind Regards,
yoshimi
___
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 ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview


Re: [Paraview] Merging very close Points

2013-09-02 Thread kenichiro yoshimi
Thank you Sven,

I follow your advice, in vtkCleanUnstructuredGrid, I replace vtkMergePoints
locator  by vtkPointLocator. Hereby, I am able to specify the tolerance to
merge points, and get the desired results.

Thank you very much.
yoshimi


2013/9/2 Sven Buijssen 

> Hi Yoshimi,
>
> The Clean to Grid filter internally invokes vtkCleanUnstructuredGrid
> which can merge duplicate points, but they need to have coincident
> coordinates. In contrast, very old versions of ParaView also merged very
> close points, but that is not true any more, see closed issue
> http://www.paraview.org/Bug/view.php?id=9728
>
> It is actually very simple to derive a (c++-based) plugin from
> vtkCleanUnstructuredGrid that provides a filter that merges points
> within a distance of less than a (configurable) fraction of the length
> of the diagonal of the bounding box of the data set. But in order to be
> able to use said plugin you would need to compile ParaView from source.
> Not sure whether you would want to go to such lengths.
>
> Sven
>
>
> kenichiro yoshimi wrote, On 02.09.2013 07:47:
> > Hi all,
> >
> > I want to merge the very close (or coincident) points in PV. For
> > instance, there are very close two points and one point apart from them,
> > i.e., an ASCII VTK File:
> > --
> > vtk output
> > ASCII
> > DATASET UNSTRUCTURED_GRID
> > POINTS 3 float
> > 1 1 1
> > 0 0 0
> > 0 0 1e-014
> > CELLS 3 6
> > 1 0
> > 1 1
> > 1 2
> > CELL_TYPES 3
> > 1
> > 1
> > 1
> > --
> > I use the Clean to Grid filter to merge the two close points, but after
> > that there remains three points.  Can anyone tell me what this is?
> >
> > Thanks,
> > yoshimi
> >
> >
> > ___
> > 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 ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
> >
> > Follow this link to subscribe/unsubscribe:
> > http://www.paraview.org/mailman/listinfo/paraview
> >
>
___
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 ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview


[Paraview] Merging very close Points

2013-09-01 Thread kenichiro yoshimi
Hi all,

I want to merge the very close (or coincident) points in PV. For instance,
there are very close two points and one point apart from them, i.e., an
ASCII VTK File:
--
vtk output
ASCII
DATASET UNSTRUCTURED_GRID
POINTS 3 float
1 1 1
0 0 0
0 0 1e-014
CELLS 3 6
1 0
1 1
1 2
CELL_TYPES 3
1
1
1
--
I use the Clean to Grid filter to merge the two close points, but after
that there remains three points.  Can anyone tell me what this is?

Thanks,
yoshimi
___
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 ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview


[Paraview] I cannot get fortran ensight gold files to work

2012-12-07 Thread kenichiro yoshimi
Hi Ryan,

If you set "C Binary" in EnSight Gold header, you must open the file
in Fortran code with form='BINARY' instead of form='UNFORMATTED'. I
think the problem is whether there are BYTE COUNT or not.

Yoshimi
___
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 ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview


Re: [Paraview] Unable to write out EnSight format with VTK_POLYHEDRON

2011-12-08 Thread kenichiro yoshimi
Thanks so much for your answer. I have reported bug with attached on Mantis:
  http://www.vtk.org/Bug/view.php?id=12782
I'm glad you confirm this.

Regards,
yoshimi

2011/12/7 Robert Maynard :
> Hi,
>
> Can you create a bug report with the code attached as a patch please.
>
> On Thu, Dec 1, 2011 at 9:23 PM, kenichiro yoshimi
>  wrote:
>> Hello,
>>
>> I tried to save data including VTK_POLYHEDRON meshes through "Save
>> Data" with "EnSight format", but the polyhedrons couldn't be written.
>> Probably, the reason is that vtkEnSightWriter doesn't support
>> VTK_POLYHEDRON. In my case, I change the following and work well:
>>  1. replace all "VTK_CONVEX_POINT_SET" with "VTK_POLYHEDRON".
>>  2. vtkEnSightWriter.cxx: l.620
>>  //element conenctivity information
>>  for (k=0;k>    {
>>    int CellId=CellsByElement[elementType][k];
>>    vtkIdList *PointIds=input->GetCell(CellId)->GetPointIds();
>>    for (int m=0;mGetNumberOfIds();m++)
>>      {
>>      int PointId=PointIds->GetId(m);
>>      this->WriteIntToFile(NodeIdToOrder[PointId],fd);
>>      }
>>    }
>> --->
>>  if (elementType != VTK_POLYHEDRON)
>>    {
>>    //element conenctivity information
>>    for (k=0;k>      {
>>      int CellId=CellsByElement[elementType][k];
>>      vtkIdList *PointIds=input->GetCell(CellId)->GetPointIds();
>>      for (int m=0;mGetNumberOfIds();m++)
>>        {
>>        int PointId=PointIds->GetId(m);
>>        this->WriteIntToFile(NodeIdToOrder[PointId],fd);
>>        }
>>      }
>>    }
>>  else
>>    {
>>    //number of faces per elements
>>    for (k=0;k>      {
>>      int CellId=CellsByElement[elementType][k];
>>      int numFaces=input->GetCell(CellId)->GetNumberOfFaces();
>>      this->WriteIntToFile(numFaces,fd);
>>      }
>>    //number of nodes per faces
>>    for (k=0;k>      {
>>      int CellId=CellsByElement[elementType][k];
>>      vtkCell *cell = input->GetCell(CellId);
>>      for (int m=0;mGetNumberOfFaces();m++)
>>        {
>>        int numNodes=cell->GetFace(m)->GetNumberOfPoints();
>>        this->WriteIntToFile(numNodes,fd);
>>        }
>>      }
>>      //element connectivity information
>>      for (k=0;k>        {
>>        int CellId=CellsByElement[elementType][k];
>>        vtkCell *cell = input->GetCell(CellId);
>>        for (int m=0;mGetNumberOfFaces();m++)
>>          {
>>          vtkIdList *PointIds=cell->GetFace(m)->GetPointIds();
>>          for (int n=0;nGetNumberOfIds();n++)
>>            {
>>            int PointId=PointIds->GetId(n);
>>            this->WriteIntToFile(NodeIdToOrder[PointId],fd);
>>            }
>>          }
>>        }
>>      }
>> --
>>
>> Can anyone tell me if these modifications are correct?
>>
>> Please advice
>> Thanks,
>> yoshimi
>> ___
>> 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 ParaView Wiki at: 
>> http://paraview.org/Wiki/ParaView
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.paraview.org/mailman/listinfo/paraview
>
>
>
> --
> Robert Maynard
___
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 ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview


[Paraview] Unable to write out EnSight format with VTK_POLYHEDRON

2011-12-01 Thread kenichiro yoshimi
Hello,

I tried to save data including VTK_POLYHEDRON meshes through "Save
Data" with "EnSight format", but the polyhedrons couldn't be written.
Probably, the reason is that vtkEnSightWriter doesn't support
VTK_POLYHEDRON. In my case, I change the following and work well:
 1. replace all "VTK_CONVEX_POINT_SET" with "VTK_POLYHEDRON".
 2. vtkEnSightWriter.cxx: l.620
  //element conenctivity information
  for (k=0;kGetCell(CellId)->GetPointIds();
for (int m=0;mGetNumberOfIds();m++)
  {
  int PointId=PointIds->GetId(m);
  this->WriteIntToFile(NodeIdToOrder[PointId],fd);
  }
}
--->
  if (elementType != VTK_POLYHEDRON)
{
//element conenctivity information
for (k=0;kGetCell(CellId)->GetPointIds();
  for (int m=0;mGetNumberOfIds();m++)
{
int PointId=PointIds->GetId(m);
this->WriteIntToFile(NodeIdToOrder[PointId],fd);
}
  }
}
  else
{
//number of faces per elements
for (k=0;kGetCell(CellId)->GetNumberOfFaces();
  this->WriteIntToFile(numFaces,fd);
  }
//number of nodes per faces
for (k=0;kGetCell(CellId);
  for (int m=0;mGetNumberOfFaces();m++)
{
int numNodes=cell->GetFace(m)->GetNumberOfPoints();
this->WriteIntToFile(numNodes,fd);
}
  }
  //element connectivity information
  for (k=0;kGetCell(CellId);
for (int m=0;mGetNumberOfFaces();m++)
  {
  vtkIdList *PointIds=cell->GetFace(m)->GetPointIds();
  for (int n=0;nGetNumberOfIds();n++)
{
int PointId=PointIds->GetId(n);
this->WriteIntToFile(NodeIdToOrder[PointId],fd);
}
  }
}
  }
--

Can anyone tell me if these modifications are correct?

Please advice
Thanks,
yoshimi
___
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 ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview


[Paraview] ParaView-3.12.0-Win64-x86.exe for Win32?

2011-11-10 Thread kenichiro yoshimi
Hi,

I tried to install the 3.12 for Win64 using
ParaView-3.12.0-Win64-x86.exe, but it says "Version 3.12.0 32-bit".

Is there a Win64-bit executable for the Windows 64 bit machine?

Thanks,
yoshimi
___
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 ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview


[Paraview] Is there a way to clip with capping in ParaView?

2011-10-27 Thread kenichiro yoshimi
Hello,
It is very useful to clip any object in the ParaView. But, it would be
more useful if an option was available so that the user could cap a
clipped polydata with a polygon, like a VTK Example:
(http://www.vtk.org/Wiki/VTK/Examples/Cxx/Meshes/CapClip).
Is there a way (or a feature) to clip with capping in ParaView?

Thanks,
yoshimi
___
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 ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview


[Paraview] Plot3D reader with Function file

2011-01-14 Thread kenichiro yoshimi
When A file reader has more than one type of solution file (e.g.
PLOT3D Solution (.q) file and PLOT3D Function (.f) file), how do I
apply the way "Animating legacy VTK file series"
(http://www.vtk.org/Wiki/Animating_legacy_VTK_file_series)
to all types? For now, I can only do single type at one time.
Any help will greatly be appreciated.

Thanks,
yoshimi
___
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 ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview


[Paraview] Plot3D reader with Function file

2011-01-12 Thread kenichiro yoshimi
Hi,

I need to read time series data with Plot3D Function format. ParaView
uses a vtkMulitBlockPLOT3DReader to read Plot3D files, but it does not
support Function file. So I modified this source to read them
referring to a vtkPLOT3DReader which supports Function format. After
that, I confirmed this worked well.
In ParaView built from git source, time-series data with Plot3D Q file
can be read. Would you tell me how to also read time-series data with
Plot3D Function format by Modifing a reader.xml file?

Thanks,
yoshimi
___
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 ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview


Re: [Paraview] "Rescale to Data Range" fails

2010-06-28 Thread kenichiro yoshimi
I find the following lines in the ParaView3.8.0.ini:
-
  \n
\n
\n
  \n
  \n
\n
  \n
-
I change the following and the problem goes away.
  \n
->
  \n

Please try steps to reproduce the problem:
 1. Sources -> Sphere -> Apply
 2. Object Inspector: Display: Color by: Normals: Z
 3. Edit Color Map -> Make Default -> Close
 4. File -> Exit
After that, "Rescale to Data Range" doesn't work with scalar data.

yoshimi

2010/6/29 Moreland, Kenneth :
> WAIT! WAIT!  Once you find your config file, please send us a copy before
> you delete it.  That way we can take a look and try to figure out what went
> wrong.
>
> -Ken
>
>
> On 6/28/10 7:42 AM, "Andy Bauer"  wrote:
>
> The -dr option is to disable the registry.  It is used to store default
> settings which on my ubuntu machine gets stored in the ~/.config/ParaView/
> directory.  If you rename/remove the files in that directory the problem
> should go away (those files will be regenerated the next time you run
> paraview without the -dr flag).  Let me know if that doesn't work.
>
> Andy
>
> On Sun, Jun 27, 2010 at 10:15 PM, kenichiro yoshimi
>  wrote:
>
> When starting with the "-dr" option, the problem disappears. Could you
> tell me how to run without the option "-dr"?
>
> --- Environment ---
> Version: ParaViw 3.8.0
> OS: Windows XP 32 bit
>
> Thanks,
> yoshimi
>
> 2010/6/26 Utkarsh Ayachit :
>> Can you try running paraview as follows and see if the problem goes away?
>>
>> ./paraview -dr
>>
>> Utkarsh
>>
>> On Fri, Jun 25, 2010 at 2:39 AM, kenichiro yoshimi
>>  wrote:
>>> Hi all,
>>>
>>> I just tried the following using ParaView 3.8.0:
>>>  1. Sources->Wavelet->Apply
>>>  2. Object Inspector: Dispaly tab->Representation: Wireframe -> Color
>>> by: RTData
>>> But "Data Range" displays [0, 1] inspite of  [37.3531, 276.829] and
>>> "Rescale to Data Range" button does't work.  Is this a ParaView bug?
>>>
>>> Thanks,
>>> yoshimi
>>> ___
>>> Powered by www.kitware.com <http://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 ParaView Wiki at:
>>> http://paraview.org/Wiki/ParaView
>>>
>>> Follow this link to subscribe/unsubscribe:
>>> http://www.paraview.org/mailman/listinfo/paraview
>>>
>>
> ___
> Powered by www.kitware.com <http://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 ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://www.paraview.org/mailman/listinfo/paraview
>
>
>
>
>      Kenneth Moreland
> ***  Sandia National Laboratories
> ***
> *** *** ***  email: kmo...@sandia.gov
> **  ***  **  phone: (505) 844-8919
> ***  web:   http://www.cs.unm.edu/~kmorel
>
>
___
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 ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview


Re: [Paraview] "Rescale to Data Range" fails

2010-06-27 Thread kenichiro yoshimi
When starting with the "-dr" option, the problem disappears. Could you
tell me how to run without the option "-dr"?

--- Environment ---
Version: ParaViw 3.8.0
OS: Windows XP 32 bit

Thanks,
yoshimi

2010/6/26 Utkarsh Ayachit :
> Can you try running paraview as follows and see if the problem goes away?
>
> ./paraview -dr
>
> Utkarsh
>
> On Fri, Jun 25, 2010 at 2:39 AM, kenichiro yoshimi
>  wrote:
>> Hi all,
>>
>> I just tried the following using ParaView 3.8.0:
>>  1. Sources->Wavelet->Apply
>>  2. Object Inspector: Dispaly tab->Representation: Wireframe -> Color
>> by: RTData
>> But "Data Range" displays [0, 1] inspite of  [37.3531, 276.829] and
>> "Rescale to Data Range" button does't work.  Is this a ParaView bug?
>>
>> Thanks,
>> yoshimi
>> ___
>> 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 ParaView Wiki at: 
>> http://paraview.org/Wiki/ParaView
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.paraview.org/mailman/listinfo/paraview
>>
>
___
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 ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview


[Paraview] "Rescale to Data Range" fails

2010-06-24 Thread kenichiro yoshimi
Hi all,

I just tried the following using ParaView 3.8.0:
  1. Sources->Wavelet->Apply
  2. Object Inspector: Dispaly tab->Representation: Wireframe -> Color
by: RTData
But "Data Range" displays [0, 1] inspite of  [37.3531, 276.829] and
"Rescale to Data Range" button does't work.  Is this a ParaView bug?

Thanks,
yoshimi
___
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 ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview