src/Geometry/clipConvexFacetedVolumeByPlanes3d.cc
//------------------------------------------------------------------------------
// Grab the starting vertex for the edge corresponding to the encoded id.
//------------------------------------------------------------------------------
Grab the starting vertex for the edge corresponding to the encoded id.
Grab the starting vertex for the edge corresponding to the encoded id .
inline
int
startVertex(const int id, const vector<pair<int, int>>& edges) {
  if (id < 0) {
    CHECK(~id < edges.size());
    return edges[~id].second;
  } else {
    CHECK(id < edges.size());
    return edges[id].first;
  }
}
inline int startVertex ( const int id , const vector < pair < int , int > > & edges ) { if ( id < 0 ) { CHECK ( ~ id < edges . size ( ) ) ; return edges [ ~ id ] . second ; } else { CHECK ( id < edges . size ( ) ) ; return edges [ id ] . first ; } }
Grab the starting vertex for the edge corresponding to the encoded id.
Grab the starting vertex for the edge corresponding to the encoded id .