[vtkusers] Mesh Lines

Bhanu Hariharan bhanu at petrotel.com
Mon May 7 15:29:16 EDT 2012


Hi All,
In continuation to this email, I wanted to add that earlier it used to work
fine. I havent changed any code or upgraded to latest vtk but this issue
has appeared in latest executables only.
I am attaching a picture of the broken wireframe which happens when I zoom
and rotate the grid . Even the grid colors seem to be odd. Please see the
circled places. Initially without rotating the wireframe and grid block
colors look fine.

Could this be because of any hardware updates?

Any insights into this will be deeply appreciated.

Thanks,
Bhanu

On Tue, May 1, 2012 at 12:02 PM, Lubos Brieda <lbrieda at yahoo.com> wrote:

> What happens if you use two regular actors (not LOD for the mesh), but set
> one to wireframe representation, and possibly also group them into an
> assembly? And make sure to make the lines thicker.
>
> (I just finished working on a VTK-based GUI and that's the approach we
> took and it worked fine.)
>
>   ------------------------------
> *From:* Bhanu Hariharan <bhanu at petrotel.com>
> *To:* Lubos Brieda <lbrieda at yahoo.com>
> *Cc:* "vtkusers at vtk.org" <vtkusers at vtk.org>
> *Sent:* Tuesday, May 1, 2012 11:39 AM
>
> *Subject:* Re: [vtkusers] Mesh Lines
>
> Thanks Lubos for your reply. I tried increasing thickness but the behavior
> remains the same as before.
>
> I also want to add that the wireframe looks broken only at times at places
> when I am rotating and also depends on the zoom level. If I dont zoom at
> all it is fine but when I start zooming, the lines look broken randomly.
>
>
> On Tue, May 1, 2012 at 9:32 AM, Lubos Brieda <lbrieda at yahoo.com> wrote:
>
> Also try to make them thicker (under actor->GetProperty()). Not sure if
> this is related but I've found that superimposing a wireframe actor with
> the default line thickness over a solid one makes the lines come and go
> unless you increase their thickness.
>
>    ------------------------------
> *From:* Bhanu Hariharan <bhanu at petrotel.com>
> *To:* Jothybasu Selvaraj <jothybasu at gmail.com>
> *Cc:* vtkusers at vtk.org
> *Sent:* Tuesday, May 1, 2012 10:25 AM
> *Subject:* Re: [vtkusers] Mesh Lines
>
> Thanks for your reply. I do have SetAmbient(1) set in my code but that
> doesn't help.
> Any more ideas will be greatly appreciated.
>
> Thanks,
> Bhanu
>
>
> On Tue, May 1, 2012 at 4:10 AM, Jothybasu Selvaraj <jothybasu at gmail.com>wrote:
>
> May be you need to manipulate the lighting of the actors.
>
> Can you try SetAmbient(1)?
>
> Jothy
>
> On Mon, Apr 30, 2012 at 10:03 PM, Bhanu Hariharan <bhanu at petrotel.com>wrote:
>
> Hi,
>
> I am using VtkUnstructuredGrid to render a 3D grid where each cube/block
> is marked by 8 world coordinates. Each grid block has a color
> associated with it and I am using a vtkLookUpTable for this.
>
> I also have defined grid lines/mesh to show on top of this to mark the
> grid blocks. For this I use vtkLODActor.
>
> The problem is when I rotate the grid, the grid lines appear broken
> depending on how I rotate and the level of zoom.
>
>
> Does anyone have a clue why this could be happening..Any help with this
> would be greatly appreciated.
>
> Thanks,
> Bhanu
> _______________________________________________
> 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
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>
>
>
> --
> Jothy
>
>
>
> _______________________________________________
> 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
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>
>
> _______________________________________________
> 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
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>
>
>
>
> _______________________________________________
> 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
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120507/02e368a2/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: BrokerWireframe.jpg
Type: image/jpeg
Size: 157915 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120507/02e368a2/attachment.jpg>


More information about the vtkusers mailing list