mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-03 17:56:21 +03:00
Possibility to customize layout of installation of OCCT is introduced by: - variable INSTALL_DIR_LAYOUT - select one of the two predefined layouts: either Windows (classic OCCT layout) or Unix (Linux standard) - variables INSTALL_DIR_* (BIN, LIB, INCLUDE, RESOURCE, DOC, TESTS, SCRIPT, SAMPLES, DATA) - specify locations of relevant components - variable INSTALL_DIR_WITH_VERSION (bool) - specifies whether full version of OCCT should be used in paths in Unix layout Files LICENSE_LGPL_21.txt and OCCT_LGPL_EXCEPTION.txt are always installed. Environment is extended to support non-default layouts. For that, environment variables "CSF_OCCT*Path" are defined, corresponding to CMake variables INSTALL_DIR_* described above. Visual Studio environment, DRAW, tests, samples are amended to use these variables instead of (or as alternative to) CASROOT. Settings of Products-specific vars are removed from environment scripts. File genconf.bat was corrected to avoid error message for the case when path to TCL contains spaces. Product name in rc files changed to "Open CASCADE Technology".
Viewer2d sample demonstrates how the functionality of TKV3d package can be used for 2D visualization. It provides samples of 2D objects visualization, dynamic selection and highlighting. It illustrates how to: 1) implement 2D view behavior with V3d_View class, with interactive zooming and panning of the 2D scene; 2) draw 2D primitives like rectangles, lines, curves; 3) draw different types of markers; 4) draw text defined by its font, height, style, angle; 5) display 2D curves of a face' edges and group them using orientation criterion; 6) display zoomable images; 6) display circular and rectangular grids . Viewer2d support zooming ,panning of displayed objects and circular and rectangular grids.