Re: [Paraview] Project polygon onto surface

2016-10-26 Thread Adam Dershowitz
I tried it a few times, and it kept crashing Paraview.  So, then I read up on, 
it and seemed, from the description, that it was not what I wanted anyway.  
But, if you think it is, I will see if I can get it to work.  

-- Adam









On 10/26/16, 1:01 AM, "postgu...@web.de"  wrote:

>Adam,
>
>Have you actually tried the filter? Because I think the output is exactly what
>you're asking for: the "section" of the surface is the part of the surface 
>where
>the polyline is proceted onto it, hence a polyline with the regarding 
>topography
>values for the respective z coordinates.
>
>Cheers
>Venke
>
>
>
>> Adam Dershowitz  hat am 25. Oktober 2016 um 17:29
>> geschrieben:
>> 
>> 
>> I don't think that will do it.  Because, I don't want to slice anything.
>> I just want to show the boundaries on the 3D surface.  I want to project the
>> polygon that marks the edges of a region, onto the 3D topography.  
>> It seems that Slice Along Polyline uses a laser to cut a section of the
>> surface, according to the instructions.  Instead I want to see each spot 
>> where
>> the laser hits on the surface.  
>> 
>> 
>> From: postgu...@web.de [postgu...@web.de]
>> Sent: Tuesday, October 25, 2016 11:13 AM
>> To: Adam Dershowitz; paraview@paraview.org
>> Subject: Re: [Paraview] Project polygon onto surface
>> 
>> Hi Adam
>> 
>> I think the Slice Along Polyline Filter is what you need. Just select the 
>> data
>> set and the poly line in the window popping up and then proceed in the
>> properties section as usual.
>> 
>> Cheers
>> Venke
>> 
>> 
>> 
>> > Adam Dershowitz  hat am 25. Oktober 2016 um 16:01
>> > geschrieben:
>> >
>> >
>> > Is there a way to project a 2D, or 3D polygon onto a surface.
>> > Specifically I have some elevation data, that is displaying fine.  But the
>> > data has a lot of vertical variation.  I have a polygon that represents the
>> > boundaries of different regions.  So, the polygon is effectively 2D.
>> >  Although, I can give it a 3D values as well.
>> > The difficulty is that I can know the elevation of the corners, but the
>> > lines
>> > between those corners often drop "underground".
>> > So I would like to project the 2D (or 3D) polygon region onto the 3D ground
>> > elevation.
>> > You can think of this as having a topo map and I want to show the lines
>> > around
>> > an individual piece of property.
>> > Is there a filter that can do this?
>> >
>> > Thanks,
>> >
>> > --Adam
>> >
>> > ___
>> > Powered by www.kitware.com
>> >
>> > Visit other Kitware open-source projects at
>> > https://urldefense.proofpoint.com/v2/url?u=http-3A__www.kitware.com_opensource_opensource.html=DQICaQ=t0wRGL5ICVzH157W8C8Wew=5usL3OGqXabRLtSzGmh8YEvbco28TaiOmWcn6rCn8wM=vWssSXYtyX0Fwvwsvi4PGgQ70jWW8djJYXqUQvS2j3I=sMm99lDyK40nLEagq8PC0lEbloTvtFPCU5aOI3LyDaw=
>> >
>> > Please keep messages on-topic and check the ParaView Wiki at:
>> > https://urldefense.proofpoint.com/v2/url?u=http-3A__paraview.org_Wiki_ParaView=DQICaQ=t0wRGL5ICVzH157W8C8Wew=5usL3OGqXabRLtSzGmh8YEvbco28TaiOmWcn6rCn8wM=vWssSXYtyX0Fwvwsvi4PGgQ70jWW8djJYXqUQvS2j3I=iD69Hj5cpbD6ykFT4IC2HpA0Sg7i0PZKI0Kvkkk-KA4=
>> >
>> > Search the list archives at:
>> > https://urldefense.proofpoint.com/v2/url?u=http-3A__markmail.org_search_-3Fq-3DParaView=DQICaQ=t0wRGL5ICVzH157W8C8Wew=5usL3OGqXabRLtSzGmh8YEvbco28TaiOmWcn6rCn8wM=vWssSXYtyX0Fwvwsvi4PGgQ70jWW8djJYXqUQvS2j3I=wjB_o3N2yOaMlHQwkRubVtOQaONIFgjXLZgGkSCsfmk=
>> >
>> > Follow this link to subscribe/unsubscribe:
>> > https://urldefense.proofpoint.com/v2/url?u=http-3A__public.kitware.com_mailman_listinfo_paraview=DQICaQ=t0wRGL5ICVzH157W8C8Wew=5usL3OGqXabRLtSzGmh8YEvbco28TaiOmWcn6rCn8wM=vWssSXYtyX0Fwvwsvi4PGgQ70jWW8djJYXqUQvS2j3I=zor1PXNvekBliiJOtZ5T0cocWkfwUd4H6OxmHTvbCDk=
___
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] Polyhedral Cells: Rendering Problem with OpenGL...

2016-10-26 Thread Ken Martin
Basically it is OpenGL, in that OpenGL doesn't automatically tessellate
concave polygons. Making VTK always examine every polygon to determine if
it is  concave would be a performance hit for everyone, so we leave it up
to developers to use a triangle filter if they need it.

Thanks
Ken

On Tue, Oct 18, 2016 at 9:11 AM, Stefan Melber  wrote:

> Hi Martin,
>
> i tried the triangle filter in all cases - and yes - i works in all three
> cases.
>
> So is this "problem" of concave polygons inside VTK or in OpenGL?
>
> Best regards,
>
>   Stefan
>
> I'm not sure if this is your issue, but you might try using a triangle
> filter on your data. For OpenGL we do not guarantee correct rendering of
> concave polygons. The triangle filter will convert a concave polygon into
> convex triangles which should render correctly.
>
> On Tue, Oct 18, 2016 at 2:20 AM, Stefan Melber 
> wrote:
>
>> Hi,
>>
>> i found a rendering problem with cuts through polyhedral cells depending
>> on which rendering backend is used. For example in PV 5.1.2 compiled with
>>
>> VTK_RENDERING_BACKEND = OpenGL
>>
>> a cut looks like error.opengl.v5_1_2.png - there is a wrong shading and
>> some facets coming from the wrong starting point.
>>
>> Switching to OpenGL2 everything is fine (error.opengl2.v5_1_2.png). This
>> problem is the same with ParaView 5.2.0RC1 and OpenGL or OpenGL2 - however
>> there seems to be an additional (smaller) problem using OpenGL2: there are
>> some lines drawn outside of the shell - see error.opengl2.v5_2_0rc1.png
>> (cutted on a different position).
>>
>> The example cell is for testing is attached as "error.vtk" - cut e.g. in
>> x-direction on different positions to get the described effects.
>>
>> Best regards,
>>
>>Stefan
>>
>>
>> System:
>> o OpenSuse Tumbleweed
>> o Kernel: 4.7.6-1
>> o Linux 64 bit
>> o NVidia Quadro 4000 / NV Driver v367.44
>>
>>
>>
>> 
>>
>>  _/ *Dr. Stefan Melber-Wilkending*
>>_/_/
>>  _/  _/ Deutsches Zentrum für Luft-
>>  _/_/_/_/_/_/_/_/_/_/ und Raumfahrt e.V. (DLR)
>>_/_/_/_/
>>  _/_/_/_/ German Aerospace Center
>>_/_/_/_/_/_/_/_/_/_/  Institute of Aerodynamics
>>  _/  _/  _  _   and Flow Technology
>>  _/_/   | \ |  |_|   Transport Aircraft Branch
>>  _/ |_/ |_ | \
>>  Lilienthalplatz 7
>>  Fields of activities:  38108 Braunschweig
>>  Germany
>>  o Numerical Windtunnel Simulation
>>  o Aero-Acoustic Windtunnel DesignPhone : +49 531/295-2836
>>  o Numerical Optimization Fax. .: +49 531/295-2914
>>  o Visualization Techniques
>>  o High-Lift Aerodynamics   Email : stefan.mel...@dlr.de
>>  o Glider-Aerodynamics  Web ..: http://www.dlr.de/AS
>>
>>
>> 
>>
>>
>> ___
>> 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
>>
>>
>
>
> --
> Ken Martin PhD
> Chairman & CFO
> Kitware Inc.
> 28 Corporate Drive
> Clifton Park NY 12065
> 518 371 3971
>
> This communication, including all attachments, contains confidential and
> legally privileged information, and it is intended only for the use of the
> addressee.  Access to this email by anyone else is unauthorized. If you are
> not the intended recipient, any disclosure, copying, distribution or any
> action taken in reliance on it is prohibited and may be unlawful. If you
> received this communication in error please notify us immediately and
> destroy the original message.  Thank you.
>
>
>


-- 
Ken Martin PhD
Chairman & CFO
Kitware Inc.
28 Corporate Drive
Clifton Park NY 12065
518 371 3971

This communication, including all attachments, contains confidential and
legally privileged information, and it is intended only for the use of the
addressee.  Access to this email by anyone else is unauthorized. If you are
not the intended recipient, any disclosure, copying, distribution or any
action taken in reliance on it is prohibited and may be unlawful. If you
received this communication in error please notify us immediately and
destroy the original message.  Thank you.
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 

Re: [Paraview] Loading XML configuration file from pvpython

2016-10-26 Thread Utkarsh Ayachit
Tim,

`LoadXMLConfiguration` is intended to parse xml text itself, not a file
name. You should be able to use the `simple.LoadPlugin` for xml plugins
instead, as follows:

> from paraview.simple import *
> LoadPlugin("../my_plugin.xml", False, globals())


Utkarsh

On Tue, Oct 25, 2016 at 1:43 PM, Gallagher, Timothy P <
tim.gallag...@gatech.edu> wrote:

> Hello,
>
>
> I have a programmable filter that is wrapped into a custom plugin using an
> XML configuration file. If I use the GUI and go to the Manage Plugins and
> load it, everything is fine.
>
>
> However, I can't figure out how to load it inside pvpython. I am trying to
> do:
>
>
> servermanager.ProxyManager().LoadConfigurationXML("/path/
> to/my_plugin.xml")
> servermanager.updateModules(servermanager)
>
> but that gives me:
>
> ERROR: In ParaView/VTK/IO/XMLParser/vtkXMLParser.cxx, line 483
> vtkPVXMLParser (0x2cb9b80): Error parsing XML in stream at line 1, column
> 0, byte index 0: not well-formed (invalid token)
>
> I looked through the header files and the C++ classes have a
> LoadConfigurationXML, which takes a vtkPVXMLElement, and a
> LoadConfigurationXMLFromString which takes a const char pointer. I can call
> the former, but the latter does not seem to be exposed through the python
> interface.
>
> Is it not possible to pass the file name in as the argument here like it
> is with LoadCustomProxyDefinitions()? Is there something I'm missing?
>
> Thanks,
>
> Tim
>
>
> ___
> 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