[Paraview] [EXTERNAL] Plotting data to an existing model's surface
Mark Belan
belanma at mcmaster.ca
Mon Jan 26 14:12:19 EST 2015
Hi all,
Thanks for your suggestions. I was able to follow the directions but I'm
afraid the outcome wasn't what I was looking for.
I am going to send out another email shortly that will hopefully better
explain what I currently have and what I want to achieve.
- Mark
On Mon, Jan 26, 2015 at 10:38 AM, David E DeMarle <dave.demarle at kitware.com>
wrote:
> Filters->Programmable Filter
>
> Copy and paste the text into the Script entry field then hit Apply.
>
> vtkSurfaceReconstruction doesn't have the concave shape limitation that
> Delaunay has - but it isn't a perfect mesh of the surface either. Perhaps
> the vtk or paraview mailing lists contain a better alternative to either.
>
>
>
> David E DeMarle
> Kitware, Inc.
> R&D Engineer
> 21 Corporate Drive
> Clifton Park, NY 12065-8662
> Phone: 518-881-4909
>
> On Mon, Jan 26, 2015 at 10:14 AM, Mark Belan <belanma at mcmaster.ca> wrote:
>
>> Hi David,
>>
>> Thanks for your suggestion. I was able to successfully render my points
>> in a .csv file into specific points on the model (thanks Alan!), but I'm
>> not sure how to go about the next steps into turning the points into a mesh
>> and thus interpolating.
>>
>> Where can I input these python commands in paraview? I'm afraid my skills
>> in programming are minimal.
>>
>> Thanks for your help,
>>
>> - Mark
>>
>> On Fri, Jan 23, 2015 at 4:24 PM, David E DeMarle <
>> dave.demarle at kitware.com> wrote:
>>
>>> After you
>>>
>>> 1) get the list of points and values in the csv file:
>>> x,y,z,val1,val2,…
>>> 2) read into paraview and converted from a table to a vtkpointset as
>>> Alan suggested
>>> 3) try the vtkSurfaceReconstruction filter to convert it into a mesh.
>>> That isn't exposed in ParaView (maybe not parallel aware) so use this
>>> python programmable filter to do use it:
>>>
>>> import vtk
>>>
>>> pdi = self.GetPolyDataInput()
>>>
>>>
>>> subf1 = vtk.vtkSurfaceReconstructionFilter()
>>>
>>> subf1.SetInputData(pdi)
>>>
>>> subf2 = vtk.vtkContourFilter()
>>>
>>> subf2.SetInputConnection(subf1.GetOutputPort())
>>>
>>> subf2.SetValue(0, 0.0)
>>>
>>> subf2.Update()
>>>
>>>
>>> pdo = self.GetPolyDataOutput()
>>>
>>> pdo.ShallowCopy(subf2.GetOutput())
>>>
>>> ParaView will then happily interpolate values across the faces of the
>>> mesh
>>>
>>>
>>>
>>> David E DeMarle
>>> Kitware, Inc.
>>> R&D Engineer
>>> 21 Corporate Drive
>>> Clifton Park, NY 12065-8662
>>> Phone: 518-881-4909
>>>
>>> On Fri, Jan 23, 2015 at 3:51 PM, Scott, W Alan <wascott at sandia.gov>
>>> wrote:
>>>
>>>> Mark,
>>>>
>>>> I don’t know the answer to your question, but a few years ago I wrote a
>>>> wiki page on converting .csv file data into points and structured grids.
>>>> The write-up is here: http://www.paraview.org/Wiki/Data_formats.
>>>> Hope that helps.
>>>>
>>>>
>>>>
>>>> Alan
>>>>
>>>>
>>>>
>>>> *From:* ParaView [mailto:paraview-bounces at paraview.org] *On Behalf Of *Mark
>>>> Belan
>>>> *Sent:* Thursday, January 22, 2015 9:50 AM
>>>> *To:* paraview at paraview.org
>>>> *Subject:* [EXTERNAL] [Paraview] Plotting data to an existing model's
>>>> surface
>>>>
>>>>
>>>>
>>>> Hello all,
>>>>
>>>> I'm a graduate student in geology trying to do some visual data work,
>>>> but I'm afraid my inexperience with paraview is making things a bit
>>>> difficult for me.
>>>>
>>>> Essentially what I'm trying to create is a 3D model of a rock that has
>>>> its surface coloured to show spatial distribution of a physical property
>>>> associated with certain areas on the rock.
>>>>
>>>> I was able to reproduce the rock I sample from using a 3D scanner but I
>>>> have no idea how to go about selecting particular areas of the rock's
>>>> surface, assigning a value to that "area", and having the program
>>>> interpolate between multiple "areas". Essentially I'd like this to produce
>>>> a color gradient showcasing the changing values.
>>>>
>>>> Can anyone offer some guidance/direction? I had someone at my campus
>>>> suggest creating a .csv file with x,y,z coordinates of the particular areas
>>>> of the model of interest, but after doing that all I've produced are
>>>> "points"...not sure how to specify the association to the model and color
>>>> and interpolation, etc.
>>>>
>>>> Thanks for any help,
>>>>
>>>> - Mark
>>>> --
>>>>
>>>> *Mark Belan*, B. Art Sc.
>>>> *M. Sc. Candidate - Astrobiology*
>>>>
>>>> *Lewis and Ruth Sherman Graduate Fellow*
>>>>
>>>> McMaster University
>>>>
>>>> School of Geography and Earth Sciences
>>>>
>>>> GSB 323
>>>> 1280 Main Street West
>>>> Hamilton, Ontario
>>>> Canada
>>>> L8S 4L8
>>>>
>>>> *Art*: www.markbelan.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
>>>>
>>>>
>>>
>>
>>
>> --
>> *Mark Belan*, B. Art Sc.
>> *M. Sc. Candidate - Astrobiology*
>> *Lewis and Ruth Sherman Graduate Fellow*
>> McMaster University
>> School of Geography and Earth Sciences
>> GSB 323
>> 1280 Main Street West
>> Hamilton, Ontario
>> Canada
>> L8S 4L8
>>
>> *Art*: www.markbelan.com
>>
>
>
--
*Mark Belan*, B. Art Sc.
*M. Sc. Candidate - Astrobiology*
*Lewis and Ruth Sherman Graduate Fellow*
McMaster University
School of Geography and Earth Sciences
GSB 323
1280 Main Street West
Hamilton, Ontario
Canada
L8S 4L8
*Art*: www.markbelan.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20150126/54ac3e3f/attachment.html>
More information about the ParaView
mailing list