mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-24 21:10:33 +05:00
don't use optional.value for MacOS < 10.14
This commit is contained in:
parent
66de9d4510
commit
b22ae4f90d
@ -404,7 +404,7 @@ DLL_HEADER void ExportNgOCC(py::module &m)
|
|||||||
auto it = OCCGeometry::global_shape_properties.find(self.TShape());
|
auto it = OCCGeometry::global_shape_properties.find(self.TShape());
|
||||||
Vec<3> col(0.2, 0.2, 0.2);
|
Vec<3> col(0.2, 0.2, 0.2);
|
||||||
if (it != OCCGeometry::global_shape_properties.end() && it->second.col)
|
if (it != OCCGeometry::global_shape_properties.end() && it->second.col)
|
||||||
col = it->second.col.value();
|
col = *it->second.col; // .value();
|
||||||
return std::vector<double> ( { col(0), col(1), col(2) } );
|
return std::vector<double> ( { col(0), col(1), col(2) } );
|
||||||
}, [](const TopoDS_Shape & self, std::vector<double> c) {
|
}, [](const TopoDS_Shape & self, std::vector<double> c) {
|
||||||
Vec<3> col(c[0], c[1], c[2]);
|
Vec<3> col(c[0], c[1], c[2]);
|
||||||
|
Loading…
Reference in New Issue
Block a user