[vtkusers] Coloring a glyph or Append polydata

Bill Lorensen bill.lorensen at gmail.com
Sat Jul 1 10:32:31 EDT 2017


This example may help...
https://lorensen.github.io/VTKExamples/site/Cxx/Visualization/ColorGlyphs/


On Fri, Jun 30, 2017 at 8:54 PM, abcd efgh <adarshdesai.dsp at gmail.com> wrote:
> Hi,
>
> I have large number of cubes at certain x,y,z postions, So I am combining
> them into Glyph3D or Append Polydata. I want to color them individually.
> Please  let me know the procedure.
> Current method:
> take a cube source,
> insert point,
> instert tuple for color,
> repeat above for all cubes.
> Finally combine them in poly and glyph.
> I am getting only one color for all, Red or blue.
> When I use ClipPolydata, sliced cubes are black in color, Even though
> scalars property should be same as input. However  if I use Append polydata
> and clip using vtkClipPloydata, I am getting white color(same as cube). I
> want to color each cube and slice it using vtkClipPolydata and see the
> respective colors. Please let me know if u know the method.
>
> 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 VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
>



-- 
Unpaid intern in BillsBasement at noware dot com


More information about the vtkusers mailing list