示例#1
0
void MeshImplData::reset_element( size_t index,
                                  const std::vector<size_t>& vertices,
                                  EntityTopology topology,
                                  MsqError& err )
{
  clear_element( index, err );                   MSQ_ERRRTN(err);
  set_element( index, vertices, topology, err ); MSQ_ERRRTN(err);
}
示例#2
0
int				iterator(t_field *f, t_element **elements, int n, int deep)
{
	t_element	*el;

	el = *elements;
	if (try_place(el, f))
	{
		if (n == 1)
			return (0);
		return (iterator(f, elements + 1, n - 1, deep + 1));
	}
	else
	{
		if (deep > 0)
		{
			clear_element(elements[-1], f);
			return (iterator(f, elements - 1, n + 1, deep - 1));
		}
		else
			return (1);
	}
}
示例#3
0
void MeshImplData::delete_element( size_t index, MsqError& err )
{
  clear_element( index, err ); MSQ_ERRRTN(err);
  deletedElementList.push_back( index );
}