From 4309c1c6564b0ffd507d73ad990bb10c72c2722b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20Sch=C3=B6berl?= Date: Fri, 23 Jun 2017 22:09:50 +0200 Subject: [PATCH] facets for 0D elements --- libsrc/include/nginterface_v2_impl.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libsrc/include/nginterface_v2_impl.hpp b/libsrc/include/nginterface_v2_impl.hpp index 22815720..d31fb55d 100644 --- a/libsrc/include/nginterface_v2_impl.hpp +++ b/libsrc/include/nginterface_v2_impl.hpp @@ -53,6 +53,10 @@ NGX_INLINE DLL_HEADER Ng_Element Ngx_Mesh :: GetElement<0> (size_t nr) const ret.faces.num = 0; ret.faces.ptr = NULL; + + ret.facets.num = 1; + ret.facets.base = 1; + ret.facets.ptr = (int*)&el.pnum; return ret; }