Draw occ geometry. Change edge color to black

This commit is contained in:
Christopher Lackner 2021-12-02 12:10:57 +01:00
parent 7bea19057e
commit 5cc3ce3300
2 changed files with 5 additions and 1 deletions

View File

@ -166,6 +166,10 @@ DLL_HEADER void ExportNgOCC(py::module &m)
{
self.SetFaceMaxH(fnr, meshsize);
}, "Set maximum meshsize for face fnr. Face numbers are 0 based.")
.def("Draw", [](shared_ptr<OCCGeometry> geo)
{
ng_geometry = geo;
})
.def("_visualizationData", [] (shared_ptr<OCCGeometry> occ_geo)
{
std::vector<float> vertices;

View File

@ -86,7 +86,7 @@ namespace netgen
// Added clipping planes to Geometry view
SetClippingPlane();
GLfloat matcoledge[] = { 0, 0, 1, 1};
GLfloat matcoledge[] = { 0, 0, 0, 1};
GLfloat matcolhiedge[] = { 1, 0, 0, 1};
glMaterialfv (GL_FRONT_AND_BACK, GL_AMBIENT_AND_DIFFUSE, matcoledge);