mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-24 21:10:33 +05:00
surface color to mesh from geometry
This commit is contained in:
parent
e8ec2b3550
commit
95be76d8ee
@ -785,6 +785,8 @@ namespace netgen
|
|||||||
{
|
{
|
||||||
auto & face = *faces[k];
|
auto & face = *faces[k];
|
||||||
FaceDescriptor fd(k+1, face.domin+1, face.domout+1, k+1);
|
FaceDescriptor fd(k+1, face.domin+1, face.domout+1, k+1);
|
||||||
|
if(face.properties.col)
|
||||||
|
fd.SetSurfColour(*face.properties.col);
|
||||||
mesh.AddFaceDescriptor(fd);
|
mesh.AddFaceDescriptor(fd);
|
||||||
mesh.SetBCName(k, face.properties.GetName());
|
mesh.SetBCName(k, face.properties.GetName());
|
||||||
if(face.primary == &face)
|
if(face.primary == &face)
|
||||||
|
Loading…
Reference in New Issue
Block a user