Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
Checking an edge is bounded by 2 vertice
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
03-18-2010 12:08 AM
How do I check whether an edge is bounded by 2 vertice?
I want to know is there an edge connecting the 2 vertice I created using ACIS function and not graphic display.
Thank you.
Re: Checking an edge is bounded by 2 vertice
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
03-18-2010 04:29 AM
EDGE* bound_by_2_vertice(const VERTEX* v1, const VERTEX* v2)
{
ENTITY_LIST v1edgelist, v2edgelist;
api_q_edges_around_vertex(v1, &v1edgelist);
api_q_edges_around_vertex(v2, &v2edgelist);
ENITITY* e;
v1edgelist.init();
while( (e = v1edgelist.next()) != NULL )
{
if (v2edgelist.lookup(e) >= 0)
break;
}
return e;
}

