#1169 constructing the geometrytype from the number of vertices
Metadata
Property | Value |
---|---|
Reported by | Christian Engwer (christi@conan.iwr.uni-heidelberg.de) |
Reported at | Aug 13, 2012 08:37 |
Type | Discussion |
Version | Git (pre2.4) [autotools] |
Operating System | Unspecified / All |
Last edited by | Christian Engwer (christi@conan.iwr.uni-heidelberg.de) |
Last edited at | Oct 7, 2012 13:13 |
Closed by | Christian Engwer (christi@conan.iwr.uni-heidelberg.de) |
Closed at | Oct 7, 2012 13:13 |
Closed in version | Unknown |
Resolution | Implemented |
Comment |
Description
The GeometryType can be constructed in various ways. One way which is need quite often (at least I do so), but is not part of the type code is the construction of the GeometryType for a given dimension and number of vertices.
Instead of copying the code again and again, I'd like to move this code to the GeometryType as a method void makeFormVertices(unsigned int dim, unsigned int vertices)
This is first part. If nobody objects, I'd move this code during the next days.
One problem I stumbled upon when trying to change the code to support other dimensions than 0-3, is that from dim=5 on the TopologyId is not unique. I can find different TopologyIds to define an object with the same number of vertices. I'm not sure about the implications, but at a first glance it seems this will also lead to different ReferenceElements for the same object. Perhaps this is problem, perhaps not.