1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +03:00

0032366: Visualization, SelectMgr_ViewerSelector3d::ToPixMap() - add option dumping surface normals

- extended functionality to dump surface normals
- added new option to vseldump command
- added tests
This commit is contained in:
mkrylova
2021-05-14 12:58:43 +03:00
committed by bugmaster
parent d16ecfe28e
commit 114e7a9022
8 changed files with 139 additions and 2 deletions

View File

@@ -13550,6 +13550,12 @@ static int VDumpSelectionImage (Draw_Interpretor& /*theDi*/,
{
aType = StdSelect_TypeOfSelectionImage_ColoredSelectionMode;
}
else if (aValue == "surfnormal"
|| aValue == "surfacenormal"
|| aValue == "normal")
{
aType = StdSelect_TypeOfSelectionImage_SurfaceNormal;
}
}
else if (aParam == "-picked"
|| aParam == "-pickeddepth"
@@ -14946,7 +14952,8 @@ void ViewerTest::ViewerCommands(Draw_Interpretor& theCommands)
"\n\t\t: object color of detected object"
"\n\t\t: owner color of detected owner"
"\n\t\t: selMode color of selection mode"
"\n\t\t: entity color of etected entity",
"\n\t\t: entity color of etected entity"
"\n\t\t: surfNormal normal direction values",
__FILE__, VDumpSelectionImage, group);
theCommands.Add ("vviewcube",