iMesh telecon: closure and adjacency
Carl Ollivier-Gooch
cfog at mech.ubc.ca
Fri Sep 10 09:34:38 CDT 2010
On 09/09/2010 01:53 PM, Tim Tautges wrote:
> I was under the impression that asking for self-adjacencies was supposed
> to return an error. I agree with Jim that silently returning nothing
> makes things less bad, though not ideal. If it returns an error, then
> there are clear efficiency problems, due to the required filtering that
> you'd have to do on lists of entities passed to the adjacency call. Are
> we sure that a silent return-nothing is what we specified? I thought for
> sure it was supposed to return error...
Silent-return-nothing is the behavior that the unit test expect, and the
behavior that both GRUMMP and FMDB give (and MOAB did, too, if I recall
correctly, at some point in the past?). And the reason for that choice
is precisely this situation: that otherwise there are problems when you
pass in a list of entities (or iterate over a mixed collection of
entities, though that one's easy to filter).
Carl
--
------------------------------------------------------------------------
Dr. Carl Ollivier-Gooch, P.Eng. Voice: +1-604-822-1854
Professor Fax: +1-604-822-2403
Department of Mechanical Engineering email: cfog at mech.ubc.ca
University of British Columbia http://www.mech.ubc.ca/~cfog
Vancouver, BC V6T 1Z4 http://tetra.mech.ubc.ca/ANSLab/
------------------------------------------------------------------------
More information about the tstt-interface
mailing list