Merge branch 'draw_occgeo' into 'master'

Draw occ geometry. Change edge color to black

See merge request jschoeberl/netgen!460
This commit is contained in:
Joachim Schöberl 2021-12-02 16:31:51 +00:00
commit 263d44ab30
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);