<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">On 01/27/2014 04:24 PM, Grindeanu,
      Iulian R. wrote:<br>
    </div>
    <blockquote
      cite="mid:BB009D978283884B95AED82EEAE7D9641449CAE5@HALAS.anl.gov"
      type="cite">
      <pre wrap="">hello,
are you using the last parameter / flag to the get_adjacency? By default it is intersect.
maybe you want "union" of the input ?

 virtual ErrorCode get_adjacencies(const Range &from_entities,
                                         const int to_dimension,
                                         const bool create_if_missing,
                                         Range &adj_entities,
                                         const int operation_type = Interface::INTERSECT);

What are you getting and you do not expect it?
Iulian
________________________________________
From: <a class="moz-txt-link-abbreviated" href="mailto:moab-dev-bounces@mcs.anl.gov">moab-dev-bounces@mcs.anl.gov</a> [<a class="moz-txt-link-abbreviated" href="mailto:moab-dev-bounces@mcs.anl.gov">moab-dev-bounces@mcs.anl.gov</a>] on behalf of Patrick Shriwise [<a class="moz-txt-link-abbreviated" href="mailto:shriwise@wisc.edu">shriwise@wisc.edu</a>]
Sent: Monday, January 27, 2014 4:08 PM
To: <a class="moz-txt-link-abbreviated" href="mailto:moab-dev@mcs.anl.gov">moab-dev@mcs.anl.gov</a>
Subject: [MOAB-dev] get_adjacencies of same dim

Hey all,

Quick question. Working on a couple tests for ReadCGM and calling for
the adjacencies of an entity which are the same dimension of the entity
itself but I'm not getting the result I'm expecting. Any this special to
know in this case?

Cheers,

--
Patrick C. Shriwise
Research Assistant
University of Wisconsin - Madison
Engineering Research Building - Rm. 428
1500 Engineering Drive
Madison, WI 53706
(608) 446-8173

</pre>
    </blockquote>
    I'm calling for the adjacencies of a triangle which I would expect
    to return a vector of entity handles of size 3, but it seems to be
    returning a vector of size 1.<br>
    <br>
    To be specific I'm using:<br>
    <br>
    <meta http-equiv="content-type" content="text/html;
      charset=ISO-8859-1">
    <br>
    <pre wrap="">virtual ErrorCode get_adjacencies(const Range &from_entities,
                                         const int to_dimension,
                                         const bool create_if_missing,
                                         std::vector<EntityHandle> &adj_entities,
                                         const int operation_type = Interface::INTERSECT);

and here's my call: get_adjacencies( tri, 1, 2, false, adj_tris);
</pre>
    <pre class="moz-signature" cols="72">-- 
Patrick C. Shriwise
Research Assistant
University of Wisconsin - Madison
Engineering Research Building - Rm. 428
1500 Engineering Drive
Madison, WI 53706
(608) 446-8173
</pre>
  </body>
</html>