From 74cc6ce87f83b532e7c8c5570c8761ae9acfe90f Mon Sep 17 00:00:00 2001 From: Bastien Gorissen <bastien.gorissen@cenaero.be> Date: Wed, 5 Dec 2012 15:57:14 +0000 Subject: [PATCH] Added stub for revert() function on MPyramidN --- Geo/MPyramid.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Geo/MPyramid.h b/Geo/MPyramid.h index e59ff396e4..e732321c69 100644 --- a/Geo/MPyramid.h +++ b/Geo/MPyramid.h @@ -306,6 +306,19 @@ class MPyramidN : public MPyramid { if(_order == 9 && _vs.size() + 5 == 385) return MSH_PYR_385; return 0; } + virtual void revert() + { +/* MVertex *tmp; + tmp = _v[1]; _v[1] = _v[2]; _v[2] = tmp; + std::vector<MVertex*> inv(_vs.size()); + std::vector<int> reverseIndices = _getReverseIndices(_order); + for (unsigned int i = 0; i< _vs.size(); i++) + inv[i] = _vs[reverseIndices[i + 4] - 4]; + _vs = inv;*/ + + Msg::Error("Revert not implemented yet for MPyramidN"); + + } virtual void getEdgeRep(int num, double *x, double *y, double *z, SVector3 *n); virtual int getNumEdgesRep(); virtual void getFaceRep(int num, double *x, double *y, double *z, SVector3 *n); -- GitLab