[vtkusers] Adding and coloring data to a vtkLineSource

Andrew E. Slaughter andrew.slaughter at inl.gov
Fri Oct 5 07:34:58 EDT 2018


Thank, I now have it working. Attached is the working script if anyone else is interested.

On 10/5/18, 5:00 AM, "kenichiro yoshimi" <rccm.kyoshimi at gmail.com> wrote:

    Hi,
    
    vtkLineSource creates a polyline with n points. Consequently, it
    outputs a single cell and the computed cell data contains just one
    value and you cannot get the colormap for this. Since there are
    multiple points, the point data should be used in stead of the cell
    data.
    
    Regards
    2018年10月5日(金) 0:45 Andrew E. Slaughter via vtkusers
    <vtkusers at public.kitware.com>:
    >
    > I am trying to create a line that includes “data” along the axis, one value for each cell. However, I cannot get the colormap to show the data. I have attached the script, I would greatly appreciate help getting this working.
    >
    >
    >
    > I am using python bindings to VTK7.1 on MacOS.
    >
    >
    >
    > Thank you,
    >
    >
    >
    > Andrew
    >
    > _______________________________________________
    > 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&d=DwIFaQ&c=54IZrppPQZKX9mLzcGdPfFD1hxrcB__aEkJFOKJFd00&r=h7heP8xwI1i_HikChvhFbEBurKirgfOCdwgBxB9lM8c&m=bBR0oxqKB9Dlgtxbg0sTD-KmmjTH8zK3DkDtERlVPGc&s=nBCRb6NYTq3hhnu9h1RFZoMs2aQ0oCUiqFm5Mqo7ZPs&e=
    >
    > Please keep messages on-topic and check the VTK FAQ at: https://urldefense.proofpoint.com/v2/url?u=http-3A__www.vtk.org_Wiki_VTK-5FFAQ&d=DwIFaQ&c=54IZrppPQZKX9mLzcGdPfFD1hxrcB__aEkJFOKJFd00&r=h7heP8xwI1i_HikChvhFbEBurKirgfOCdwgBxB9lM8c&m=bBR0oxqKB9Dlgtxbg0sTD-KmmjTH8zK3DkDtERlVPGc&s=S7nghZGqIql0HJ1xeZ4SD9arMbXvGHGj2LlfrsgWoEo&e=
    >
    > Search the list archives at: https://urldefense.proofpoint.com/v2/url?u=http-3A__markmail.org_search_-3Fq-3Dvtkusers&d=DwIFaQ&c=54IZrppPQZKX9mLzcGdPfFD1hxrcB__aEkJFOKJFd00&r=h7heP8xwI1i_HikChvhFbEBurKirgfOCdwgBxB9lM8c&m=bBR0oxqKB9Dlgtxbg0sTD-KmmjTH8zK3DkDtERlVPGc&s=Z074Asle35fJ1PUhwSy5-XxS8woPkvRRwdv_OZyuHb0&e=
    >
    > Follow this link to subscribe/unsubscribe:
    > https://urldefense.proofpoint.com/v2/url?u=https-3A__public.kitware.com_mailman_listinfo_vtkusers&d=DwIFaQ&c=54IZrppPQZKX9mLzcGdPfFD1hxrcB__aEkJFOKJFd00&r=h7heP8xwI1i_HikChvhFbEBurKirgfOCdwgBxB9lM8c&m=bBR0oxqKB9Dlgtxbg0sTD-KmmjTH8zK3DkDtERlVPGc&s=uzzkQ92BvaXWkAnDPDtIyZtJamtGP6uo-XRG0iMyiIc&e=
    

-------------- next part --------------
A non-text attachment was scrubbed...
Name: cylinder_color.py
Type: text/x-python-script
Size: 1186 bytes
Desc: cylinder_color.py
URL: <https://public.kitware.com/pipermail/vtkusers/attachments/20181005/6bd6f210/attachment.bin>


More information about the vtkusers mailing list