On Tue, Dec 2, 2008 at 3:47 PM, Roy Stogner <[EMAIL PROTECTED]> wrote: > On Tue, 2 Dec 2008, John Peterson wrote: > >> On Tue, Dec 2, 2008 at 3:23 PM, Roy Stogner <[EMAIL PROTECTED]> >> wrote: >>> >>> I've written a little tool to twiddle boundary_info ids based on point >>> location and face normal direction, but I'm using it on a fine mesh >>> where I'd like to visualize the results to verify them. Do we output >>> boundary ids to gmv/tecplot/vtk/whatever? And if so, what's the >>> quickest way to get them up on the screen in different colors? >> >> Use the BoundaryInfo object to Sync with a boundary mesh and write to >> GMV. Set each element's processor_id to its boundary ID to color them >> independently. > > Nice idea! Thanks! > > It looks like meshtool already does the former (with the -b option) > but I hadn't thought about tricking it into doing the latter. I'll > commit that to the SVN version once I'm sure I've got it working. > > Anyone think the "meshbcid" setting tool is worth adding to src/apps > too? It's pretty trivial; for example run: > meshbcid --mesh me.xda --minpointy 1.0 --maxpointy 2.0 --maxnormalx -0.3 > --id 2 > Then, whenever it sees a boundary face whose centroid is in the range > 1.0 < y < 2.0 and whose unit normal vector has x component < -0.3, it > sets that boundary id to 2.
Yeah, that would be pretty awesome. -- John ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Libmesh-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/libmesh-users
