mirror of
https://github.com/NGSolve/netgen.git
synced 2024-11-11 16:49:16 +05:00
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:
commit
263d44ab30
@ -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;
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user