*/
unsigned int n_active_faces (const unsigned int level) const;
+
+ /**
+ * Number of lines, used or unused.
+ */
+ unsigned int n_raw_lines(const unsigned int level) const;
+
+ /**
+ * Number of quads, used or unused.
+ */
+ unsigned int n_raw_quads(const unsigned int level) const;
+
+ /**
+ * Number of hexes, used or unused.
+ */
+ unsigned int n_raw_hexs(const unsigned int level) const;
+
/**
* Return number of levels in use. This
* may be less than the number of levels
*/
const std::vector<Point<dim> > &
get_vertices () const;
-
+
/**
* Return the number of vertices
* that are presently in use,
friend class TriaRawIterator<3,TriaObjectAccessor<3, 3> >;
friend class TriaRawIterator<3,CellAccessor<3> >;
- friend class DoFHandler<dim>;
- friend class hp::DoFHandler<dim>;
- friend class MGDoFHandler<dim>;
+// friend class DoFHandler<dim>;
+// friend class hp::DoFHandler<dim>;
+// friend class MGDoFHandler<dim>;
};
}
+template <int dim>
+unsigned int Triangulation<dim>::n_raw_lines (const unsigned int level) const
+{
+ Assert(levels<n_levels(), ExcIndexRange(level,0,n_levels()));
+ return levels[level]->lines.lines.size();
+}
+
+
template <int dim>
unsigned int Triangulation<dim>::n_lines (const unsigned int level) const {
Assert (level < number_cache.n_lines_level.size(),
}
+template <int dim>
+unsigned int Triangulation<dim>::n_raw_quads (const unsigned int level) const
+{
+ return 0;
+}
+
+
+template <int dim>
+unsigned int Triangulation<dim>::n_raw_hexs (const unsigned int level) const
+{
+ return 0;
+}
+
+
template <>
unsigned int Triangulation<1>::n_active_quads (const unsigned int) const
{
}
+template <int dim>
+unsigned int Triangulation<dim>::n_raw_quads (const unsigned int level) const
+{
+ Assert(levels<n_levels(), ExcIndexRange(level,0,n_levels()));
+ return levels[level]->quads.quads.size();
+}
+
+
+template <int dim>
+unsigned int Triangulation<dim>::n_raw_hexs (const unsigned int level) const
+{
+ return 0;
+}
+
+
template <int dim>
unsigned int Triangulation<dim>::n_active_quads () const {
return number_cache.n_active_quads;
+template <int dim>
+unsigned int Triangulation<dim>::n_raw_quads (const unsigned int level) const
+{
+ Assert(levels<n_levels(), ExcIndexRange(level,0,n_levels()));
+ return levels[level]->quads.quads.size();
+}
+
+
+template <int dim>
+unsigned int Triangulation<dim>::n_raw_hexs (const unsigned int level) const
+{
+ Assert(levels<n_levels(), ExcIndexRange(level,0,n_levels()));
+ return levels[level]->hexs.hexs.size();
+}
+
+
template <int dim>
unsigned int Triangulation<dim>::n_active_hexs () const
{