[Paraview] POV Exporter, spheres/geom/colors

Utkarsh Ayachit utkarsh.ayachit at kitware.com
Thu Oct 26 22:58:58 EDT 2017


Randy,

That's indeed a bug, I've reported the issue and the cause here:
https://gitlab.kitware.com/paraview/paraview/issues/17802

Utkarsh

On Thu, Oct 26, 2017 at 8:38 PM, Heiland, Randy <heiland at iu.edu> wrote:

> I have a simple 2-point Pgmable Source (below) and render it 1) as 2D
> Glyphs/Vertex (with the nice OSPRay, and scaled spheres), and 2) as various
> 3D/geometric glyphs. Then I Export the scenes as POV files. Only the
> geometric (non 2D/Vertex) glyphs generate partially-meaningful POV output.
> However, there’s no color associated with the geometry. Thoughts?
>
> The last related thread I saw was at:
> http://markmail.org/search/?q=ParaView+povray#query:
> ParaView%20povray%20order%3Adate-backward+page:1+mid:
> 6xiimz4cus55dwhh+state:results
> <http://markmail.org/search/?q=ParaView+povray#query:ParaView%20povray%20order:date-backward+page:1+mid:6xiimz4cus55dwhh+state:results>
>
> -Randy
>
> pdo = self.GetPolyDataOutput()
> num_pts = 2
> print "num_pts =",num_pts
> newPts = vtk.vtkPoints()
> cell_color_ID = vtk.vtkFloatArray()
> cell_radius = vtk.vtkFloatArray()
>
> cell_color_ID.SetName('cell_color_ID')
> cell_radius.SetName('cell_radius')
>
> newPts.InsertPoint(0, -1,0,0)
> cell_color_ID.InsertNextValue(1)
> cell_radius.InsertNextValue(0.5)
>
> newPts.InsertPoint(1, 1,0,0)
> cell_color_ID.InsertNextValue(2)
> cell_radius.InsertNextValue(0.7)
>
> pdo.SetPoints(newPts)
> pdo.GetPointData().AddArray(cell_color_ID)
> pdo.GetPointData().AddArray(cell_radius)
>
> verts = vtk.vtkCellArray()
> for idx in range(0, num_pts):
>   verts.InsertNextCell(1)
>   verts.InsertCellPoint(idx)
> pdo.SetVerts(verts)
>
>
> _______________________________________________
> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20171026/f0bdf663/attachment.html>


More information about the ParaView mailing list