mirror of
https://github.com/NGSolve/netgen.git
synced 2025-02-04 17:10:33 +05:00
* Optimisation of the face colour user interface
* Trivial change inside menu option "Special"
This commit is contained in:
parent
6e65bbe80a
commit
99ad65f885
@ -777,8 +777,13 @@ menu .ngmenu.special
|
||||
}
|
||||
.ngmenu.special add command -label "Helmholtz Mesh grading" \
|
||||
-command { Ng_HelmholtzMesh; }
|
||||
.ngmenu.special add command -label "Colour-based boundary conditions" \
|
||||
-command { Ng_AutoColourBcProps; redraw }
|
||||
.ngmenu.special add cascade -label "Colour-based boundary conditions" -menu .ngmenu.special.colbndcond
|
||||
|
||||
menu .ngmenu.special.colbndcond
|
||||
.ngmenu.special.colbndcond add command -label "Automatic Assignment" \
|
||||
-command { Ng_AutoColourBcProps auto; redraw }
|
||||
.ngmenu.special.colbndcond add command -label "Profile based Assignment" \
|
||||
-command { Ng_AutoColourBcProps profile netgen.ocf; redraw }
|
||||
|
||||
|
||||
# menu .mbar.stl.menu
|
||||
|
16
ng/ngpkg.cpp
16
ng/ngpkg.cpp
@ -1571,13 +1571,27 @@ namespace netgen
|
||||
Tcl_Interp * interp,
|
||||
int argc, tcl_const char *argv[])
|
||||
{
|
||||
if(argc < 1)
|
||||
{
|
||||
Tcl_SetResult (interp, (char *)"Ng_AutoColourBcProps needs arguments", TCL_STATIC);
|
||||
return TCL_ERROR;
|
||||
}
|
||||
|
||||
if(!mesh.Ptr())
|
||||
{
|
||||
Tcl_SetResult (interp, (char *)"Ng_AutoColourBcProps: Valid netgen mesh required...please mesh the Geometry first", TCL_STATIC);
|
||||
return TCL_ERROR;
|
||||
}
|
||||
|
||||
AutoColourBcProps(*mesh, "netgen.ocf");
|
||||
if(strcmp(argv[1], "auto") == 0)
|
||||
{
|
||||
AutoColourBcProps(*mesh, 0);
|
||||
}
|
||||
|
||||
if(strcmp(argv[1], "profile") == 0)
|
||||
{
|
||||
AutoColourBcProps(*mesh, argv[2]);
|
||||
}
|
||||
|
||||
return TCL_OK;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user