CombineImprove2D - project only for edge points

This commit is contained in:
mhochsteger@cerbsim.com 2022-03-07 20:58:11 +01:00
parent 0a99c169b6
commit 262fec4601

View File

@ -477,7 +477,7 @@ namespace netgen
for (int l = 0; l < 3; l++) for (int l = 0; l < 3; l++)
{ {
auto normal = normals[el[l]]; auto normal = normals[el[l]];
if(fixed[el[l]]) if(mesh[el[l]].Type() != SURFACEPOINT)
{ {
// point possibly on edge -> multiple normal vectors (for each surface), need to calculate it to be sure // point possibly on edge -> multiple normal vectors (for each surface), need to calculate it to be sure
const int surfnr = mesh.GetFaceDescriptor (el.GetIndex()).SurfNr(); const int surfnr = mesh.GetFaceDescriptor (el.GetIndex()).SurfNr();