[Dune] Re: Flyspray task #66 - Implement GeometryType as a small class
Oliver Sander
sander at mi.fu-berlin.de
Tue Dec 13 13:21:03 CET 2005
Hallo Adrian!
Was wären denn die Vorteile dieser Implementierung?
Grüße,
Oliver
************************************************************************
* Oliver Sander ** *
* Freie Universität Berlin ** email: sander at math.fu-berlin.de *
* Institut für Mathematik II ** phone: + 49 (30) 838 75217 *
* Arnimallee 2-6 ** fax : + 49 (30) 838 54977 *
* 14195 Berlin, Germany ** URL : www.math.fu-berlin.de/~sander *
************************************************************************
On Tue, 13 Dec 2005 dune at hal.iwr.uni-heidelberg.de wrote:
> THIS IS AN AUTOMATICALLY GENERATED MESSAGE, DO NOT REPLY
> ------------------------------------------------------------------------
>
> Notice from Dune
>
> Adrian Burri (burriad) has added the following comment to this task.
> You are receiving this because you are on the notification list.
>
> Task #66: Implement GeometryType as a small class
> -----
> My proposal:
>
> class GeometryHandler
> {
> public:
> enum GeometryType {vertex, line, triangle, quadrilateral,
> tetrahedron, pyramid prism, hexahedron, unknown};
> enum TopologyType {simplex, cube, both, none};
>
> public:
> GeometryHandler(GeometryType geo);
> GeometryHandler(TopologyType topo, int dim);
>
> TopologyType topology() const;
> GeometryType geometry() const;
> int dim() const;
>
> private:
> TopologyType toTopology(GeometryType geo);
> GeometryType toGeometry(TopologyType topo, int dim);
>
> private:
> GeometryType geo_;
> TopologyType topo_;
> int dim_;
> };
>
> Or the same in two classes which are convertible into one another.
> -----
> http://hal.iwr.uni-heidelberg.de/flyspray/index.php?do=details&id=66&area=comments#tabs
>
More information about the Dune
mailing list