visit
visit copied to clipboard
Automatically project 3d particles when combined with 2D data.
Here is the request from Matt.
Hi Eric, our particles are always in 3D, but we frequently run on a 2D mesh. We frequently want to plot the mesh and particles at the same time, so we have to cylindrically project the particles to the mesh. This requires the extra step of adding the "Project" operator to the particles.
Is there a way to automate this step? Write out a visit "defvar" for the projected particles (can we use operators in expressions?) Have visit notice the dimension mismatch and ask if you want to project the particles? any other ideas?
thanks!
Matt gave me a sample file and the particles are 3D (non-zero z coordinates), so they would require projecting to combine with a 2D mesh.
If we could add an expression that allows setting the mesh coordinates, that could solve his problem, as well as detecting the mismatch and allowing the user to either project the 3D to 2D or put the 2D in 3D space.
Maybe we can create a macro that makes it easy to add a project operator.