* @ingroup boundary
*
* @deprecated This method has been deprecated. Use
- * Triangulation::set_manifold() instead.
+ * Triangulation::reset_manifold() instead.
*
* @see
* @ref GlossBoundaryIndicator "Glossary entry on boundary indicators"
* It is possible to remove or replace the boundary object during the
* lifetime of a non-empty triangulation. Usually, this is done before the
* first refinement and is dangerous afterwards. Removal of a manifold
- * object is done by <tt>set_manifold(number)</tt>, i.e. the function of
- * same name but only one argument. This operation then replaces the
+ * object is done by reset_manifold(). This operation then replaces the
* manifold object given before by a straight manifold approximation.
*
* @ingroup manifold
/**
- * Reset those parts of the triangulation with the given manifold_id to use
- * a FlatManifold object. This is the default state of a triangulation, and
- * undoes assignment of a different Manifold object by the function of same
- * name and two arguments.
+ * Reset those parts of the triangulation with the given manifold_id
+ * to use a FlatManifold object. This is the default state of a
+ * non-curved triangulation, and undoes assignment of a different
+ * Manifold object by the function of same name and two arguments.
*
* @ingroup manifold
*
+ * @deprecated This method has been deprecated. Use
+ * Triangulation::reset_manifold() instead.
+ *
* @see
* @ref GlossManifoldIndicator "Glossary entry on manifold indicators"
*/
+ DEAL_II_DEPRECATED
void set_manifold (const types::manifold_id number);
+ /**
+ * Reset those parts of the triangulation with the given manifold_id
+ * to use a FlatManifold object. This is the default state of a
+ * non-curved triangulation, and undoes assignment of a different
+ * Manifold object by the function Triangulation::set_manifold()
+ *
+ * @ingroup manifold
+ *
+ * @see
+ * @ref GlossManifoldIndicator "Glossary entry on manifold indicators"
+ */
+ void reset_manifold (const types::manifold_id number);
+
+ /**
+ * Reset all parts of the trianuglation, regardless of their
+ * manifold_id, to use a FlatManifold object. This undoes assignment
+ * of all Manifold objects by the function
+ * Triangulation::set_manifold()
+ *
+ * @ingroup manifold
+ *
+ * @see
+ * @ref GlossManifoldIndicator "Glossary entry on manifold indicators"
+ */
+ void reset_all_manifolds ();
+
/**
* Set the manifold_id of all cells and faces to the given argument.
*
template <int dim, int spacedim>
void
Triangulation<dim, spacedim>::set_manifold (const types::manifold_id m_number)
+{
+ reset_manifold(m_number);
+}
+
+
+template<int dim, int spacedim>
+void Triangulation<dim, spacedim>::reset_manifold(const types::manifold_id m_number)
{
Assert(m_number < numbers::invalid_manifold_id,
ExcIndexRange(m_number,0,numbers::invalid_manifold_id));
manifold.erase(m_number);
}
+
+template<int dim, int spacedim>
+void Triangulation<dim, spacedim>::reset_all_manifolds()
+{
+ manifold.clear();
+}
+
+
template <int dim, int spacedim>
void
Triangulation<dim, spacedim>::set_all_manifold_ids (const types::manifold_id m_number)