예제 #1
0
void	ConnectedTri::write	( Iff & iff ) const
{
	IndexedTri::write(iff);

	iff.insertChunkData( getIndex() );

	iff.insertChunkData( getNeighborIndex(0) );
	iff.insertChunkData( getNeighborIndex(1) );
	iff.insertChunkData( getNeighborIndex(2) );
}
예제 #2
0
파일: EFAElement.C 프로젝트: Biyss/moose
void
EFAElement::addCrackTipNeighbor(EFAElement * neighbor_elem)
{
  //Find out what side the specified element is on, and add it as a crack tip neighbor
  //element for that side.
  unsigned int neighbor_index = getNeighborIndex(neighbor_elem);
  bool crack_tip_neighbor_exist = false;
  for (unsigned int i = 0; i < _crack_tip_neighbors.size(); ++i)
  {
    if (_crack_tip_neighbors[i] == neighbor_index)
    {
      crack_tip_neighbor_exist = true;
      break;
    }
  }
  if (!crack_tip_neighbor_exist)
    _crack_tip_neighbors.push_back(neighbor_index);
}