itaps-parallel [Fwd: iMesh_getAdjEntities (yet another proposed iMesh change)]
Lori A. Diachin
diachin2 at llnl.gov
Thu Mar 12 10:50:45 CDT 2009
Here's the second outstanding issue that Jason brought up for
discussion. I've also attached the latest iMesh.h and iBase.h to this
email from the repository - I believe those are up to date with all the
other changes we've agreed to..
Lori
-------- Original Message --------
Subject: iMesh_getAdjEntities (yet another proposed iMesh change)
Date: Wed, 04 Feb 2009 11:33:26 -0600
From: Jason Kraftcheck <kraftche at cae.wisc.edu>
To: TSTT Interface <tstt-interface at mcs.anl.gov>
I think that we should either drop the iMesh_getAdjEntities function
entirely, or if not, then remove the 'offset' argument. This function
returns entities of the "requested" type, but not the entities of the
"requestor" type/topology.
For the "offset" information to be useful, one must also have the entities
of the "requestor" type/topology in the appropriate order. Presumably to
get that list the application must call iMesh_getEntities with the implicit
assumption that the order will be correct. But if the application has the
ordered "requestor" list, then it could just as easily call
iMesh_getEntAdjArr to get the adjacent entities without needing to make any
assumptions about functions returning entities in a consistent order.
The only case where that might be inefficient is if one wanted something
like the list of vertices adjacent to all of the entities in a set but
didn't care about the entities. But for this use case, presumably the
application would rather have a single list of unique vertex handles and
would have no use for the offset list.
- jason
-------------- next part --------------
A non-text attachment was scrubbed...
Name: iMesh.h
Type: text/x-chdr
Size: 100038 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/itaps-parallel/attachments/20090312/2f9d4f4d/attachment-0002.h>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: iBase.h
Type: text/x-chdr
Size: 3835 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/itaps-parallel/attachments/20090312/2f9d4f4d/attachment-0003.h>
More information about the itaps-parallel
mailing list