From: James B. <jam...@gm...> - 2009-02-04 18:20:09
|
My suggestion is to remove the fallback code in gage, then provide a helper function to fill in the values. This function could be part of the API or just part of miter/mrender. James On Wed, Feb 4, 2009 at 9:21 AM, Gordon Kindlmann <gk...@bw...> wrote: > > Ah, so it turns out that Teem's "mite" volume rendering library > (basis of the "miter" command-line tool) and the "mrender" pseudo- > volume renderer *do* override these gage defaults. This allows you > to render a volume with no spacing info at all. > > Will it be disruptive to miter/mrender users if this flexibility is > removed, so that at very least you have set the per-axis spacings in > a volume, prior to rendering it? I suspect the miter demos online > might need updating. > > My basic motivation for this is to reduce complexity in gage that > makes it hard to maintain. Honestly, ease of use has never been a > priority in Teem, and I'd rather have code that works in a well- > defined way on narrowly defined inputs, than risk having mysterious > behavior on a wider range of inputs. > > Your continued feedback welcome. > > Gordon > > On Feb 3, 2009, at 10:16 PM, Gordon Kindlmann wrote: > > > hi- > > > > Actually, the more restrictive behavior is already currently the > > default, according the values of gageDefRequireAllSpacings and > > gageDefRequireEqualCenters, which are currently set at compile-time > > to AIR_TRUE. So unless someone is actually over-riding those > > defaults (via gageParmRequireAllSpacings and > > gageParmRequireEqualCenters), they're already seeing the restrictive > > behavior that I'm talking about. Are you doing that? > > > > My preference is to remove the ability to be more permissive, because > > it just adds complexity to the code handling gageShape, and maybe its > > unnecessary complexity if no one is using this? > > > > Gordon > > > > On Feb 3, 2009, at 9:52 PM, James Bigler wrote: > > > >> Would it be possible to add a function to add these defaults quickly? > >> > >> James > >> > >> On Tue, Feb 3, 2009 at 4:39 PM, Gordon Kindlmann > >> <gk...@bw...> wrote: > >> Hi- > >> > >> As it is now, gage allows you to use volumes that have some > >> information missing, which ideally should be set. For example, you > >> can pass in a volume that has no spacing or orientation info, and it > >> will treat it as an isotropic volume, according to gageContext- > >>> defaultSpacing. Also, beyond having centering info (node vs cell) > >> unset on all axes, you can have it missing for only some axes. > >> > >> I'm thinking of removing this flexibility, so that gage is more > >> restrictive about the kind of volumes it can deal with. All volumes > >> would need either per-axis spacing (on every axis), or per-axis space > >> directions (on every axis). Also, if the centering is known on any > >> axis, it has to be set (to the same centering) on the other two > >> spatial axes. > >> > >> Will this be an inconvenience for any gage users? > >> > >> Gordon > >> > >> > >> > >> --------------------------------------------------------------------- > >> - > >> -------- > >> Create and Deploy Rich Internet Apps outside the browser with Adobe > >> (R)AIR(TM) > >> software. With Adobe AIR, Ajax developers can use existing skills > >> and code to > >> build responsive, highly engaging applications that combine the > >> power of local > >> resources and data with the reach of the web. Download the Adobe > >> AIR SDK and > >> Ajax docs to start building applications today-http://p.sf.net/sfu/ > >> adobe-com > >> _______________________________________________ > >> teem-users mailing list > >> tee...@li... > >> https://lists.sourceforge.net/lists/listinfo/teem-users > >> > > > > Gordon L. Kindlmann > > Asst. Prof, Dept of Computer Science > > Fellow, Computation Institute > > 1100 E 58th St, Ryerson 161-B > > (773) 834-3066 > > gl...@uc... > > http://people.cs.uchicago.edu/~glk<http://people.cs.uchicago.edu/%7Eglk> > > > > > > > > > > ---------------------------------------------------------------------- > > -------- > > Create and Deploy Rich Internet Apps outside the browser with Adobe > > (R)AIR(TM) > > software. With Adobe AIR, Ajax developers can use existing skills > > and code to > > build responsive, highly engaging applications that combine the > > power of local > > resources and data with the reach of the web. Download the Adobe > > AIR SDK and > > Ajax docs to start building applications today-http://p.sf.net/sfu/ > > adobe-com > > _______________________________________________ > > teem-users mailing list > > tee...@li... > > https://lists.sourceforge.net/lists/listinfo/teem-users > > Gordon L. Kindlmann > Asst. Prof, Dept of Computer Science > Fellow, Computation Institute > 1100 E 58th St, Ryerson 161-B > (773) 834-3066 > gl...@uc... > http://people.cs.uchicago.edu/~glk <http://people.cs.uchicago.edu/%7Eglk> > > > > > > ------------------------------------------------------------------------------ > Create and Deploy Rich Internet Apps outside the browser with > Adobe(R)AIR(TM) > software. With Adobe AIR, Ajax developers can use existing skills and code > to > build responsive, highly engaging applications that combine the power of > local > resources and data with the reach of the web. Download the Adobe AIR SDK > and > Ajax docs to start building applications today- > http://p.sf.net/sfu/adobe-com > _______________________________________________ > teem-users mailing list > tee...@li... > https://lists.sourceforge.net/lists/listinfo/teem-users > |