NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.
To learn about what's going on, see About the Archive Site.
Hi Rupert- Rupert Ford wrote:
Using the delaunaytest example as a guide I'm using a delaunaycustom to display the surface of a 3d unstructured mesh and a unionset of gridded3dset's to display the surface connectivity of the mesh. Separately these work fine. However when I try to display both the surface and the mesh connectivity (by having two separate datareferences) the mesh connectivity part gets very "patchy". Can anyone suggest a solution. Pictures of the surface, mesh, and surface+mesh views are attached.
How are you displaying the mesh - as a texture or as an isosurface? Another way to do this would be to take your mesh and have two data references with the same data. On the second one, add in a ConstantMap of DisplayImplJ3D.POLYGON_LINE to Display.PolygonMode which will render it as a mesh. That should be the same mesh used for the surface. That might not clear up the patchiness, but is should save you some work on making the data and ensure that the mesh is the same. As for the patchiness, you might want to play around with adding another ConstantMap for the mesh that maps to Display.PolygonOffsetFactor and/or Display.PolygonOffset and play around with values to see if that makes a difference. Others might have suggestions on appropriate values. Also, add a ConstantMap of 2 to Display.LineWidth to fatten the lines.
Many thanks for any help.
Good luck! Don ************************************************************* Don Murray UCAR Unidata Program dmurray@xxxxxxxxxxxxxxxx P.O. Box 3000 (303) 497-8628 Boulder, CO 80307 http://www.unidata.ucar.edu/staff/donm ************************************************************* ============================================================================== To unsubscribe visad, visit: http://www.unidata.ucar.edu/mailing-list-delete-form.html ==============================================================================
visad
archives: