Re: [Paraview] Custom Glyph

2017-01-04 Thread Bob Flandard
Excellent! Thanks Dave.

Bob

On 4 January 2017 at 20:36, David Lonie  wrote:

> On Wed, Jan 4, 2017 at 2:55 PM, Bob Flandard  wrote:
>
>> Hi Dave,
>>
>> The multi-colored glyph mechanism using using multi-block data is already
>> supported (see attached), but as I mentioned in my original message,
>> there's an error with it if the input point data to the custom glyph has
>> associated results data.
>>
>
> Ah, gotcha -- yes, that will work. I was thinking of the case where not
> only would the colors of the components differ, but the colors would also
> vary from point to point. That was recently requested but no feasible with
> the current glyphing code.
>
> Cheers,
> Dave
>
___
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] Custom Glyph

2017-01-04 Thread Cory Quammen
This might be obvious, but I'll chime in anyway. You could glyph the
data twice, one with the part of the glyph that should be white and
one with the part of the glyph that should be black. Then, just color
the two glyphed geometries white and black as needed.

- Cory

On Wed, Jan 4, 2017 at 2:15 PM, David Lonie  wrote:
> cc'ing this reply to the list.
>
> On Wed, Jan 4, 2017 at 12:36 PM, Bob Flandard  wrote:
>>
>> Hi Dave,
>>
>> That sounds like an exciting feature. Will it be able to use a multiblock
>> source from the pipeline?
>
>
> Yes -- there will be a drop-down menu on the property panel that lets you
> select arbitrary inputs from the pipeline browser the produce the supported
> data types.
>
>>
>> That would be useful because then a single glyph can easily be made to
>> have regions of different colors - easily edited using the excellent
>> multiblock inspector - without the need for something hacky, like multiple
>> glyph filters (one for each color part).
>
>
> Unfortunately, it looks like there will still be some hoop-jumping needed
> for multicolored glyphs. The glyph mapping engine doesn't support
> multicolored glyphs at the moment, since it doesn't fit well with the
> current coloring logic in vtk/paraview's glyphing.
>
> Cheers,
> Dave
>
> ___
> 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
Staff R 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


Re: [Paraview] Custom Glyph

2017-01-04 Thread David Lonie
cc'ing this reply to the list.

On Wed, Jan 4, 2017 at 12:36 PM, Bob Flandard  wrote:

> Hi Dave,
>
> That sounds like an exciting feature. Will it be able to use a multiblock
> source from the pipeline?
>

Yes -- there will be a drop-down menu on the property panel that lets you
select arbitrary inputs from the pipeline browser the produce the supported
data types.


> That would be useful because then a single glyph can easily be made to
> have regions of different colors - easily edited using the excellent
> multiblock inspector - without the need for something hacky, like multiple
> glyph filters (one for each color part).
>

Unfortunately, it looks like there will still be some hoop-jumping needed
for multicolored glyphs. The glyph mapping engine doesn't support
multicolored glyphs at the moment, since it doesn't fit well with the
current coloring logic in vtk/paraview's glyphing.

Cheers,
Dave
___
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] Custom Glyph

2017-01-04 Thread David Lonie
I'm currently working on adding the ability to use custom glyphs with
ParaView's glyph mapper. It will allow you to select a pipeline connection
for the glyph type (rather than the static list of arrow, sphere, etc).

Should be available in the next few weeks.

Dave

On Tue, Jan 3, 2017 at 4:41 AM, Bob Flandard  wrote:

> Thanks David,
>
> I did try that first and was unable to select the "Glyph Type" and gave
> up. Luckily your post encouraged me to RTM where it states that vtkPolyData
> should be used for the glyph. A quick extract surface filter fixed that, so
> thanks very much for your help.
>
> Bob
>
> On 2 January 2017 at 19:49, David E DeMarle 
> wrote:
>
>> Glyph with Custom source filter can do it. Note that it works in CPU/RAM
>> instead of in a GPU shader so memory can be an issue for all the replicated
>> geometry.
>>
>> To use it, manufacture a mesh that appears the way you want it and save
>> it in a common mesh format. Load that into the pipeline and hide it, select
>> the object you want to apply glyphs to and apply the Glyph with Custom
>> Source filter. Choose the shape you read in as the "Glyph Type" input.
>>
>>
>>
>>
>> David E DeMarle
>> Kitware, Inc.
>> R Engineer
>> 21 Corporate Drive
>> Clifton Park, NY 12065-8662
>> Phone: 518-881-4909 <(518)%20881-4909>
>>
>> On Mon, Jan 2, 2017 at 2:35 PM, Bob Flandard  wrote:
>>
>>> Hi,
>>>
>>> Any links or advice on how to create a custom glyph?
>>>
>>> I'd like a sphere divided into 8 equal sized/shaped patches and colored
>>> alternate black and white, to represent the centroid of a point mass. I
>>> have lots of these, so a glyph would be best.
>>>
>>> Thanks, Bob
>>>
>>> ___
>>> 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] Custom Glyph

2017-01-02 Thread David E DeMarle
Glyph with Custom source filter can do it. Note that it works in CPU/RAM
instead of in a GPU shader so memory can be an issue for all the replicated
geometry.

To use it, manufacture a mesh that appears the way you want it and save it
in a common mesh format. Load that into the pipeline and hide it, select
the object you want to apply glyphs to and apply the Glyph with Custom
Source filter. Choose the shape you read in as the "Glyph Type" input.




David E DeMarle
Kitware, Inc.
R Engineer
21 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-881-4909

On Mon, Jan 2, 2017 at 2:35 PM, Bob Flandard  wrote:

> Hi,
>
> Any links or advice on how to create a custom glyph?
>
> I'd like a sphere divided into 8 equal sized/shaped patches and colored
> alternate black and white, to represent the centroid of a point mass. I
> have lots of these, so a glyph would be best.
>
> Thanks, Bob
>
> ___
> 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