Compare commits
333 Commits
CR25936_1
...
NewGEOM_2.
Author | SHA1 | Date | |
---|---|---|---|
|
9e5394288d | ||
|
3b5f0ca372 | ||
|
6c672f4cd0 | ||
|
1384cb64c9 | ||
|
d222f955df | ||
|
56b5a03379 | ||
|
1a060fcf21 | ||
|
575e33ceba | ||
|
b9f21bee94 | ||
|
258faef5fc | ||
|
5add7c09fc | ||
|
9ec3668b82 | ||
|
05ff38f667 | ||
|
ee9749a81f | ||
|
200a6865ad | ||
|
a86456de9a | ||
|
b6c4618c0e | ||
|
74e9b952a4 | ||
|
0d90638880 | ||
|
5bf1fb8dce | ||
|
fd2f5a2535 | ||
|
2fc40ae3de | ||
|
00ffff5c8c | ||
|
086964d58a | ||
|
fd87d80b23 | ||
|
9189dced18 | ||
|
c16859d7b6 | ||
|
2e6bcdaf8e | ||
|
5d3ec53550 | ||
|
55b22036f8 | ||
|
0b2fbc70d3 | ||
|
104c1cf105 | ||
|
898c424b6b | ||
|
46b15b8275 | ||
|
a4eb991a8e | ||
|
f2f478782f | ||
|
98926f98db | ||
|
68dace5e56 | ||
|
f81b508020 | ||
|
46480f36ed | ||
|
a8dabcc5f7 | ||
|
dbde431489 | ||
|
5b755bca16 | ||
|
1925eae948 | ||
|
61b0059a45 | ||
|
4c15f1799b | ||
|
ccf61b1b85 | ||
|
f6749d511e | ||
|
d833925587 | ||
|
81c75bf30d | ||
|
c3a1713672 | ||
|
a99ae14b48 | ||
|
32b95ded37 | ||
|
af6b493fc9 | ||
|
409de561cd | ||
|
f435c40bc8 | ||
|
0b94a4f33d | ||
|
4ce07e4ec6 | ||
|
23ea021260 | ||
|
d18c866246 | ||
|
f206b65145 | ||
|
da871fb5c9 | ||
|
1c9e5ae0f1 | ||
|
e84806af3b | ||
|
4ae88e723d | ||
|
134735be7b | ||
|
b01be5abf8 | ||
|
574ea6faba | ||
|
a2361eda86 | ||
|
d0af00dc66 | ||
|
e965d0c73c | ||
|
17e64c3080 | ||
|
fec4763816 | ||
|
3884c1d394 | ||
|
52ee6a456b | ||
|
1c6adc4f1e | ||
|
e297ccbaa1 | ||
|
e09a591f48 | ||
|
cc19ba1caf | ||
|
11fd45038f | ||
|
41d16f029b | ||
|
8b04c979b2 | ||
|
7c2cc7228d | ||
|
eb20feb3bc | ||
|
dd531ee973 | ||
|
ec356f5273 | ||
|
1ba2234442 | ||
|
08c65c2355 | ||
|
86fc2729b8 | ||
|
73bc951212 | ||
|
5d59062054 | ||
|
c93109fe43 | ||
|
1ecda52ad7 | ||
|
c19a07bc44 | ||
|
a2e99c91fa | ||
|
f85265c252 | ||
|
9926d83075 | ||
|
9b22664c02 | ||
|
e646e2af68 | ||
|
c57360a7ce | ||
|
d3fab23ba9 | ||
|
c6a60baab7 | ||
|
c633105394 | ||
|
9780f0e177 | ||
|
58c3e0dcd4 | ||
|
6063352953 | ||
|
271eca4e51 | ||
|
06fe939893 | ||
|
f6ec43465e | ||
|
24bda0a60b | ||
|
1a8e73d756 | ||
|
a010375290 | ||
|
efe826bff1 | ||
|
534beb0a8d | ||
|
bc479df6c7 | ||
|
233b69d788 | ||
|
2c74997d54 | ||
|
91378854c3 | ||
|
704116ecb1 | ||
|
76b8e79250 | ||
|
d0da782fe1 | ||
|
067a4a33d8 | ||
|
9af6ab1e5c | ||
|
f6c4ac4b8d | ||
|
838a9fca4b | ||
|
a1b71d7f53 | ||
|
f9b5dde31f | ||
|
de2f4c61bf | ||
|
f2d0720f0e | ||
|
e5e388ac07 | ||
|
4a934783ee | ||
|
e55cd82c8e | ||
|
9f87ad8c86 | ||
|
cf4520ebc6 | ||
|
039add17a8 | ||
|
c1f20b28fe | ||
|
5fcc7382dc | ||
|
b44e3bbd33 | ||
|
bd7987d5dd | ||
|
06ce88fdef | ||
|
168bef440d | ||
|
7e66f8d719 | ||
|
954e19f009 | ||
|
587c15bd7d | ||
|
026dbb46c9 | ||
|
5050c82886 | ||
|
3e673cffa9 | ||
|
ae5635ca15 | ||
|
edab390e05 | ||
|
44d4c9e586 | ||
|
4b2089edec | ||
|
de7efa01cc | ||
|
ff70447591 | ||
|
6658b677bc | ||
|
5719c9ecc4 | ||
|
6670aadd5d | ||
|
84c9d28189 | ||
|
b97a779a9f | ||
|
b5913c3c89 | ||
|
5520ae9665 | ||
|
f44d9449e4 | ||
|
b96d3ed29d | ||
|
5b27fad6ce | ||
|
9f1bb68f68 | ||
|
6c3dff3505 | ||
|
114aa0dcf6 | ||
|
8b318a2ed9 | ||
|
1edc472052 | ||
|
7197da1a33 | ||
|
b34ca16935 | ||
|
c8dad3b06c | ||
|
6d3066d9b8 | ||
|
f8fdf72ad2 | ||
|
f0ab769c94 | ||
|
fd75a870c5 | ||
|
0fcd05c599 | ||
|
15655a8ba3 | ||
|
bcd2ec1031 | ||
|
213046ff8a | ||
|
ab1be48a6a | ||
|
f00e46680f | ||
|
295990967f | ||
|
49c44da2ad | ||
|
7f2a0207a7 | ||
|
813378a1a4 | ||
|
24b4a814bf | ||
|
00e18bf7e4 | ||
|
a72c4cb0e7 | ||
|
06b2381dc9 | ||
|
0ccb5dcc03 | ||
|
e5db9d8f50 | ||
|
72d472e0c7 | ||
|
bd7a454d6c | ||
|
83f70fe2b4 | ||
|
e32b64f095 | ||
|
bcbb5d9ba4 | ||
|
cbb329c42c | ||
|
b3b55601fb | ||
|
2cf5ec3f1c | ||
|
2124e769d1 | ||
|
b767425413 | ||
|
ec81011f5b | ||
|
d4aaad5b82 | ||
|
9319499b57 | ||
|
bf3977c9f9 | ||
|
2157d6ac63 | ||
|
35c4a17c46 | ||
|
30a7308729 | ||
|
28ee613b27 | ||
|
fe3a29bc9a | ||
|
2ff806d1ab | ||
|
edbca3bf00 | ||
|
c070aa3915 | ||
|
9d32c463ad | ||
|
4946f2d8ef | ||
|
0bbdddae85 | ||
|
a7f510bfae | ||
|
11bf7051d9 | ||
|
0df8756310 | ||
|
ff0a70a157 | ||
|
2f697f2f74 | ||
|
95db72f1f6 | ||
|
1c22cc2d27 | ||
|
7693827d4a | ||
|
97f3106c05 | ||
|
63073e35ce | ||
|
c259930b8e | ||
|
2683e647de | ||
|
4422364ec3 | ||
|
29e2c6d247 | ||
|
2b5097c676 | ||
|
16f82a28dc | ||
|
806b45f2f2 | ||
|
31024507f6 | ||
|
ec26bf88a2 | ||
|
cd37e04879 | ||
|
985aed12ec | ||
|
d66bd706ce | ||
|
905522eef8 | ||
|
76a2b7d1fb | ||
|
6ab722979b | ||
|
46b2b6afa0 | ||
|
7b1c1b7cbb | ||
|
062d7dfd62 | ||
|
96f3baccc5 | ||
|
6b5b88d707 | ||
|
f47b8d2b37 | ||
|
5e18f91719 | ||
|
7ab159522a | ||
|
e99a2f7cae | ||
|
6ca1fa7070 | ||
|
0a66e59dad | ||
|
ae3eaf7b15 | ||
|
ecd58be64a | ||
|
7cb899171d | ||
|
08f906ff37 | ||
|
38a0206f60 | ||
|
b85b0b0731 | ||
|
c87535af15 | ||
|
57c718c4b9 | ||
|
d721c8eb3d | ||
|
681cfe76b0 | ||
|
75d1222c2f | ||
|
032158d63d | ||
|
b0deeecfba | ||
|
35d1221827 | ||
|
f3981c67c3 | ||
|
8d64c0cc40 | ||
|
b3c433fea3 | ||
|
2afd4e9888 | ||
|
c3715b7477 | ||
|
74f91efccd | ||
|
58978f9bef | ||
|
699239e457 | ||
|
3eac3f55a5 | ||
|
cc2b0ec0e3 | ||
|
687574c09d | ||
|
867acdec68 | ||
|
5682a02934 | ||
|
5ae01c8551 | ||
|
67680042bc | ||
|
0c015ee26c | ||
|
9dfbbfe673 | ||
|
c40b7d580e | ||
|
d2d0f00268 | ||
|
f25b82d624 | ||
|
8ba678133b | ||
|
af65fb1941 | ||
|
ce77f9998a | ||
|
494782f666 | ||
|
7bb2b8293a | ||
|
a21ab2c1a1 | ||
|
4057f898f7 | ||
|
85a975f112 | ||
|
cf537aacf7 | ||
|
1d19db8dad | ||
|
346cf025a5 | ||
|
124ee9c962 | ||
|
42f8ba5632 | ||
|
3186aee9b6 | ||
|
43ebf89c22 | ||
|
f483f2ed11 | ||
|
91c60b5790 | ||
|
5b055f07b3 | ||
|
306f5893ea | ||
|
d585e74e51 | ||
|
138ac5300a | ||
|
6f7c5420f8 | ||
|
b5ef9d9151 | ||
|
536d98e224 | ||
|
24e40cc2dc | ||
|
e9e33e9167 | ||
|
cbca8a98e6 | ||
|
447c411576 | ||
|
d1db9125d0 | ||
|
aa9d6bec4e | ||
|
41ed1ed236 | ||
|
f751596e46 | ||
|
7a91ad6e81 | ||
|
7e859dff1b | ||
|
e135a1559a | ||
|
a2e4f780c2 | ||
|
44ef962bdd | ||
|
d4271fe56f | ||
|
269e9c3640 | ||
|
e1c659da58 | ||
|
dc5bfeae8b | ||
|
53a701974a | ||
|
65360da3db | ||
|
fd372378a1 | ||
|
1804bb99a6 | ||
|
ef0bfc15cc | ||
|
a3ee6e9f77 |
@@ -10,6 +10,18 @@ endif()
|
||||
|
||||
set (CMAKE_CONFIGURATION_TYPES ${BUILD_CONFIGURATION} CACHE INTERNAL "" FORCE)
|
||||
|
||||
# set type of OCCT libraries
|
||||
if (NOT BUILD_LIBRARY_TYPE)
|
||||
set (BUILD_LIBRARY_TYPE "Shared" CACHE STRING "The type of OCCT libraries" FORCE)
|
||||
SET_PROPERTY(CACHE BUILD_LIBRARY_TYPE PROPERTY STRINGS Shared Static)
|
||||
endif()
|
||||
|
||||
if ("${BUILD_LIBRARY_TYPE}" STREQUAL "Shared")
|
||||
set (BUILD_SHARED_LIBS ON)
|
||||
else()
|
||||
unset (BUILD_SHARED_LIBS)
|
||||
endif()
|
||||
|
||||
# the name of the project
|
||||
project (OCCT)
|
||||
|
||||
|
@@ -179,6 +179,15 @@ macro (THIRDPARTY_PRODUCT PRODUCT_NAME HEADER_NAME LIBRARY_NAME LIBRARY_NAME_DEB
|
||||
else()
|
||||
install (FILES "${3RDPARTY_${PRODUCT_NAME}_LIBRARY}" DESTINATION "${INSTALL_DIR}/${OS_WITH_BIT}/${COMPILER}/lib${BUILD_POSTFIX}")
|
||||
endif()
|
||||
|
||||
set (USED_3RDPARTY_${PRODUCT_NAME}_DIR "")
|
||||
else()
|
||||
# the library directory for using by the executable
|
||||
if (WIN32)
|
||||
set (USED_3RDPARTY_${PRODUCT_NAME}_DIR "${3RDPARTY_${PRODUCT_NAME}_DLL_DIR}")
|
||||
else()
|
||||
set (USED_3RDPARTY_${PRODUCT_NAME}_DIR "${3RDPARTY_${PRODUCT_NAME}_LIBRARY_DIR}")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
mark_as_advanced (3RDPARTY_${PRODUCT_NAME}_LIBRARY 3RDPARTY_${PRODUCT_NAME}_DLL)
|
||||
|
@@ -3,12 +3,13 @@ echo off
|
||||
if "%VCVER%" == "@COMPILER@" (
|
||||
if "%ARCH%" == "@COMPILER_BITNESS@" (
|
||||
if "%CASDEB%" == "@BUILD_POSTFIX@" (
|
||||
set "TCL_DIR=@3RDPARTY_TCL_DLL_DIR@"
|
||||
set "FREETYPE_DIR=@3RDPARTY_FREETYPE_DLL_DIR@"
|
||||
set "FREEIMAGE_DIR=@3RDPARTY_FREEIMAGE_DLL_DIR@"
|
||||
set "GL2PS_DIR=@3RDPARTY_GL2PS_DLL_DIR@"
|
||||
set "TBB_DIR=@3RDPARTY_TBB_DLL_DIR@"
|
||||
set "VTK_DIR=@3RDPARTY_VTK_DLL_DIR@"
|
||||
set "TCL_DIR=@USED_3RDPARTY_TCL_DIR@"
|
||||
set "FREETYPE_DIR=@USED_3RDPARTY_FREETYPE_DIR@"
|
||||
set "FREEIMAGE_DIR=@USED_3RDPARTY_FREEIMAGE_DIR@"
|
||||
set "FREEIMAGEPLUS_DIR=@USED_3RDPARTY_FREEIMAGEPLUS_DIR@"
|
||||
set "GL2PS_DIR=@USED_3RDPARTY_GL2PS_DIR@"
|
||||
set "TBB_DIR=@USED_3RDPARTY_TBB_DIR@"
|
||||
set "VTK_DIR=@USED_3RDPARTY_VTK_DIR@"
|
||||
)
|
||||
)
|
||||
)
|
||||
|
@@ -3,12 +3,12 @@
|
||||
if [ "$COMPILER" == "@COMPILER@" ]; then
|
||||
if [ "$ARCH" == "@COMPILER_BITNESS@" ]; then
|
||||
if [ "$CASDEB" == "@BUILD_POSTFIX@" ]; then
|
||||
export TCL_DIR="@3RDPARTY_TCL_LIBRARY_DIR@"
|
||||
export FREETYPE_DIR="@3RDPARTY_FREETYPE_LIBRARY_DIR@"
|
||||
export FREEIMAGE_DIR="@3RDPARTY_FREEIMAGE_LIBRARY_DIR@"
|
||||
export GL2PS_DIR="@3RDPARTY_GL2PS_LIBRARY_DIR@"
|
||||
export TBB_DIR="@3RDPARTY_TBB_LIBRARY_DIR@"
|
||||
export VTK_DIR="@3RDPARTY_VTK_LIBRARY_DIR@"
|
||||
export TCL_DIR="@USED_3RDPARTY_TCL_DIR@"
|
||||
export FREETYPE_DIR="@USED_3RDPARTY_FREETYPE_DIR@"
|
||||
export FREEIMAGE_DIR="@USED_3RDPARTY_FREEIMAGE_DIR@"
|
||||
export GL2PS_DIR="@USED_3RDPARTY_GL2PS_DIR@"
|
||||
export TBB_DIR="@USED_3RDPARTY_TBB_DIR@"
|
||||
export VTK_DIR="@USED_3RDPARTY_VTK_DIR@"
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
@@ -22,12 +22,13 @@ if ["%CASROOT%"] == [""] set "CASROOT=%SCRIPTROOT%"
|
||||
|
||||
set "ORIGIN_PATH=%PATH%"
|
||||
|
||||
if not ["%TCL_DIR%"] == [""] set "PATH=%TCL_DIR%;%PATH%"
|
||||
if not ["%FREETYPE_DIR%"] == [""] set "PATH=%FREETYPE_DIR%;%PATH%"
|
||||
if not ["%FREEIMAGE_DIR%"] == [""] set "PATH=%FREEIMAGE_DIR%;%PATH%"
|
||||
if not ["%GL2PS_DIR%"] == [""] set "PATH=%GL2PS_DIR%;%PATH%"
|
||||
if not ["%TBB_DIR%"] == [""] set "PATH=%TBB_DIR%;%PATH%"
|
||||
if not ["%VTK_DIR%"] == [""] set "PATH=%VTK_DIR%;%PATH%"
|
||||
if not ["%TCL_DIR%"] == [""] set "PATH=%TCL_DIR%;%PATH%"
|
||||
if not ["%FREETYPE_DIR%"] == [""] set "PATH=%FREETYPE_DIR%;%PATH%"
|
||||
if not ["%FREEIMAGE_DIR%"] == [""] set "PATH=%FREEIMAGE_DIR%;%PATH%"
|
||||
if not ["%FREEIMAGEPLUS_DIR%"] == [""] set "PATH=%FREEIMAGEPLUS_DIR%;%PATH%"
|
||||
if not ["%GL2PS_DIR%"] == [""] set "PATH=%GL2PS_DIR%;%PATH%"
|
||||
if not ["%TBB_DIR%"] == [""] set "PATH=%TBB_DIR%;%PATH%"
|
||||
if not ["%VTK_DIR%"] == [""] set "PATH=%VTK_DIR%;%PATH%"
|
||||
|
||||
rem ----- Set path to 3rd party and OCCT libraries -----
|
||||
set "BIN_TAIL=win%ARCH%/%VCVER%/bin%CASDEB%"
|
||||
|
@@ -223,6 +223,15 @@ if (INSTALL_FREETYPE)
|
||||
else()
|
||||
install (FILES "${3RDPARTY_FREETYPE_LIBRARY}" DESTINATION "${INSTALL_DIR}/${OS_WITH_BIT}/${COMPILER}/lib${BUILD_POSTFIX}")
|
||||
endif()
|
||||
|
||||
set (USED_3RDPARTY_FREETYPE_DIR "")
|
||||
else()
|
||||
# the library directory for using by the executable
|
||||
if (WIN32)
|
||||
set (USED_3RDPARTY_FREETYPE_DIR ${3RDPARTY_FREETYPE_DLL_DIR})
|
||||
else()
|
||||
set (USED_3RDPARTY_FREETYPE_DIR ${3RDPARTY_FREETYPE_LIBRARY_DIR})
|
||||
endif()
|
||||
endif()
|
||||
|
||||
# unset all redundant variables
|
||||
|
@@ -63,6 +63,8 @@ macro (OCCT_MAKE_COMPILER_SHORT_NAME)
|
||||
set (COMPILER vc11)
|
||||
elseif (MSVC12)
|
||||
set (COMPILER vc12)
|
||||
elseif (MSVC14)
|
||||
set (COMPILER vc14)
|
||||
endif()
|
||||
elseif (DEFINED CMAKE_COMPILER_IS_GNUCC)
|
||||
set (COMPILER gcc)
|
||||
|
@@ -236,6 +236,15 @@ if (INSTALL_TBB)
|
||||
else()
|
||||
install (FILES ${3RDPARTY_TBB_LIBRARY} ${3RDPARTY_TBBMALLOC_LIBRARY} DESTINATION "${INSTALL_DIR}/${OS_WITH_BIT}/${COMPILER}/lib${BUILD_POSTFIX}")
|
||||
endif()
|
||||
|
||||
set (USED_3RDPARTY_TBB_DIR "")
|
||||
else()
|
||||
# the library directory for using by the executable
|
||||
if (WIN32)
|
||||
set (USED_3RDPARTY_TBB_DIR ${3RDPARTY_TBB_DLL_DIR})
|
||||
else()
|
||||
set (USED_3RDPARTY_TBB_DIR ${3RDPARTY_TBB_LIBRARY_DIR})
|
||||
endif()
|
||||
endif()
|
||||
|
||||
mark_as_advanced (3RDPARTY_TBB_LIBRARY 3RDPARTY_TBBMALLOC_LIBRARY 3RDPARTY_TBB_DLL 3RDPARTY_TBBMALLOC_DLL)
|
||||
|
@@ -318,6 +318,15 @@ if (INSTALL_TCL)
|
||||
message (STATUS "\nWarning: tclX.X and tkX.X subdirs won't be copyied during the installation process.")
|
||||
message (STATUS "Try seeking tcl within another folder by changing 3RDPARTY_TCL_DIR variable.")
|
||||
endif()
|
||||
|
||||
set (USED_3RDPARTY_TCL_DIR "")
|
||||
else()
|
||||
# the library directory for using by the executable
|
||||
if (WIN32)
|
||||
set (USED_3RDPARTY_TCL_DIR ${3RDPARTY_TCL_DLL_DIR})
|
||||
else()
|
||||
set (USED_3RDPARTY_TCL_DIR ${3RDPARTY_TCL_LIBRARY_DIR})
|
||||
endif()
|
||||
endif()
|
||||
|
||||
mark_as_advanced (3RDPARTY_TCL_LIBRARY 3RDPARTY_TK_LIBRARY 3RDPARTY_TCL_DLL 3RDPARTY_TK_DLL)
|
||||
|
@@ -151,6 +151,15 @@ if (INSTALL_VTK)
|
||||
install(FILES "${3RDPARTY_VTK_LIBRARY_DIR}/lib${VTK_DLL_NAME}" DESTINATION "${INSTALL_DIR}/${OS_WITH_BIT}/${COMPILER}/lib${BUILD_POSTFIX}" RENAME "lib${VTK_DLL_NAME}")
|
||||
endforeach()
|
||||
endif()
|
||||
|
||||
set (USED_3RDPARTY_VTK_DIR "")
|
||||
else()
|
||||
# the library directory for using by the executable
|
||||
if (WIN32)
|
||||
set (USED_3RDPARTY_VTK_DIR ${3RDPARTY_VTK_DLL_DIR})
|
||||
else()
|
||||
set (USED_3RDPARTY_VTK_DIR ${3RDPARTY_VTK_LIBRARY_DIR})
|
||||
endif()
|
||||
endif()
|
||||
|
||||
mark_as_advanced (VTK_INCLUDE_DIRS VTK_LIBRARY_DIRS VTK_DIR)
|
||||
|
@@ -35,41 +35,6 @@ This feature can be activated by defining environment variable *CSF_DEBUG_BOP*,
|
||||
|
||||
The diagnostic code checks validity of the input arguments and the result of each Boolean operation. When an invalid situation is detected, the report consisting of argument shapes and a DRAW script to reproduce the problematic operation is saved to the directory pointed by *CSF_DEBUG_BOP*.
|
||||
|
||||
@section occt_debug_commands DRAW debugging commands
|
||||
|
||||
In this section description and usage of several debug commands represented.
|
||||
|
||||
@subsection occt_debug_commands_xdist "xdist" commands family
|
||||
|
||||
Commands with prefix "xdist" provides functionality to check distance between two objects on even grid:
|
||||
|
||||
* xdistef - distance between edge and face.
|
||||
* xdistcs - distance between curve and surface. This means that projection to surface of each sample point computed.
|
||||
* xdistcc - distance between two 3d curves.
|
||||
* xdistcc2ds - distance between 3d curve and 2d curve on surface.
|
||||
* xdistc2dc2dss - distance between two 2d curves on surface.
|
||||
|
||||
**Usage:**
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~{.cpp}
|
||||
xdistef edge face
|
||||
xdistcs curve surface firstParam lastParam [NumberOfSamplePoints]
|
||||
xdistcc curve1 curve2 startParam finishParam [NumberOfSamplePoints]
|
||||
xdistcc2ds c curve2d surf startParam finishParam [NumberOfSamplePoints]
|
||||
xdistc2dc2dss curve2d_1 curve2d_2 surface_1 surface_2 startParam finishParam [NumberOfSamplePoints]
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
It is assumed that curves have same parametrization range and startParam < finishParam.
|
||||
|
||||
**Examples:**
|
||||
~~~~~
|
||||
bopcurves b1 b2 -2d
|
||||
mksurf s1 b1
|
||||
mksurf s2 b2
|
||||
xdistcs c_1 s1 0 1 100
|
||||
xdistcc2ds c_1 c2d2_1 s2 0 1
|
||||
xdistc2dc2dss c2d1_1 c2d2_1 s1 s2 0 1 1000
|
||||
~~~~~
|
||||
|
||||
@section occt_debug_call Functions for calling from debugger
|
||||
|
||||
Modern interactive debuggers provide the possibility to execute application code at a program break point. This feature can be used to analyse the temporary objects available only in the context of the debugged code. OCCT provides several global functions that can be used in this way.
|
||||
|
@@ -140,7 +140,8 @@ dev_guides/svn/svn.md
|
||||
|
||||
@section OCCT_DOC_SECTION_5 Additional Resources
|
||||
|
||||
More information about OCCT can be found at http://www.opencascade.org
|
||||
More information about OCCT can be found at http://www.opencascade.com and http://dev.opencascade.org sites.
|
||||
|
||||
|
||||
The information on formula syntax can be found at:
|
||||
http://en.wikipedia.org/wiki/Help:Displaying_a_formula
|
||||
|
@@ -69,8 +69,8 @@ Example:
|
||||
Draw[]> testgrid
|
||||
~~~~~
|
||||
|
||||
For running only a subset of test cases, give masks for group, grid, and test case names to be executed.
|
||||
Each argument is a list of comma- or space-separated file masks; by default "*" is assumed.
|
||||
To run only a subset of test cases, give masks for group, grid, and test case names to be executed.
|
||||
Each argument is a list of file masks separated with commas or spaces; by default "*" is assumed.
|
||||
|
||||
Example:
|
||||
|
||||
@@ -78,7 +78,6 @@ Example:
|
||||
Draw[]> testgrid bugs caf,moddata*,xde
|
||||
~~~~~
|
||||
|
||||
|
||||
As the tests progress, the result of each test case is reported.
|
||||
At the end of the log a summary of test cases is output,
|
||||
including the list of detected regressions and improvements, if any.
|
||||
@@ -102,13 +101,13 @@ Example:
|
||||
The tests are considered as non-regressive if only OK, BAD (i.e. known problem), and SKIPPED (i.e. not executed, typically because of lack of a data file) statuses are reported. See <a href="#testmanual_3_5">Interpretation of test results</a> for details.
|
||||
|
||||
The results and detailed logs of the tests are saved by default to a new subdirectory of the subdirectory *results* in the current folder, whose name is generated automatically using the current date and time, prefixed by Git branch name (if Git is available and current sources are managed by Git).
|
||||
If necessary, a non-default output directory can be specified using option <i> –outdir</i> followed by a path to the directory. This directory should be new or empty; use option –overwrite to allow writing results in existing non-empty directory.
|
||||
If necessary, a non-default output directory can be specified using option <i> –outdir</i> followed by a path to the directory. This directory should be new or empty; use option <i>–overwrite</i> to allow writing results in the existing non-empty directory.
|
||||
|
||||
Example:
|
||||
~~~~~
|
||||
Draw[]> testgrid -outdir d:/occt/last_results -overwrite
|
||||
~~~~~
|
||||
In the output directory, a cumulative HTML report summary.html provides links to reports on each test case. An additional report in JUnit-style XML format can be output for use in Jenkins or other continuous integration system.
|
||||
In the output directory, a cumulative HTML report <i>summary.html</i> provides links to reports on each test case. An additional report in JUnit-style XML format can be output for use in Jenkins or other continuous integration system.
|
||||
|
||||
Type <i>help testgrid</i> in DRAW prompt to get help on options supported by *testgrid* command:
|
||||
|
||||
@@ -144,7 +143,7 @@ Note that normally an intermediate output of the script is not shown. The detail
|
||||
To see intermediate commands and their output during the test execution, add one more argument
|
||||
<i>"echo"</i> at the end of the command line. Note that with this option the log is not collected and summary is not produced.
|
||||
|
||||
Type <i>help testgrid</i> in DRAW prompt to get help on options supported by *testgrid* command:
|
||||
Type <i>help test</i> in DRAW prompt to get help on options supported by *test* command:
|
||||
|
||||
~~~~~
|
||||
Draw[3]> help test
|
||||
@@ -170,10 +169,10 @@ test: Run specified test case
|
||||
|
||||
The detailed rules of creation of new tests are given in <a href="#testmanual_3">section 3</a>. The following short description covers the most typical situations:
|
||||
|
||||
Use prefix "bug" followed by Mantis issue ID and, if necessary, additional suffixes, for naming the test script and DRAW commands specific for this test case.
|
||||
Use prefix <i>bug</i> followed by Mantis issue ID and, if necessary, additional suffixes, for naming the test script and DRAW commands specific for this test case.
|
||||
|
||||
1. If the test requires C++ code, add it as new DRAW command(s) in one of files in *QABugs* package. Note that this package defines macros *QVERIFY* and *QCOMPARE*, thus code created for QTest or GoogleTest frameworks can be used with minimal modifications.
|
||||
2. Add script(s) for the test case in grid (subfolder) corresponding to the relevant OCCT module of the group bugs <i>($CASROOT/tests/bugs)</i>. See <a href="#testmanual_5_2">the correspondence map</a>.
|
||||
2. Add script(s) for the test case in the subfolder corresponding to the relevant OCCT module of the group bugs <i>($CASROOT/tests/bugs)</i>. See <a href="#testmanual_5_2">the correspondence map</a>.
|
||||
3. In the test script:
|
||||
* Load all necessary DRAW modules by command *pload*.
|
||||
* Use command *locate_data_file* to get a path to data files used by test script. (Make sure to have this command not inside catch statement if it is used.)
|
||||
@@ -213,7 +212,7 @@ checkshape result
|
||||
Standard OCCT tests are located in subdirectory tests of the OCCT root folder ($CASROOT).
|
||||
|
||||
Additional test folders can be added to the test system by defining environment variable *CSF_TestScriptsPath*. This should be list of paths separated by semicolons (*;*) on Windows
|
||||
or colons (*:*) on Linux or Mac. Upon DRAW launch, path to tests sub-folder of OCCT is added at the end of this variable automatically.
|
||||
or colons (*:*) on Linux or Mac. Upon DRAW launch, path to tests subfolder of OCCT is added at the end of this variable automatically.
|
||||
|
||||
Each test folder is expected to contain:
|
||||
* Optional file parse.rules defining patterns for interpretation of test results, common for all groups in this folder
|
||||
@@ -456,15 +455,15 @@ If the new test corresponds to a functionality already covered by the existing s
|
||||
|
||||
@subsection testmanual_3_2 Adding Data Files Required for a Test
|
||||
|
||||
It is advisable to make self-contained test scripts whenever possible, so as they could be used in environments where data files are not available. For that simple geometric objects and shapes can be created using DRAW commands in the test script itself.
|
||||
It is advisable to make self-contained test scripts whenever possible, so as they could be used in the environments where data files are not available. For that simple geometric objects and shapes can be created using DRAW commands in the test script itself.
|
||||
|
||||
If the test requires a data file, it should be put to directory listed in environment variable *CSF_TestDataPath*.
|
||||
If the test requires a data file, it should be put to the directory listed in environment variable *CSF_TestDataPath*.
|
||||
Alternatively, it can be put to subdirectory *data* of the test grid.
|
||||
It is recommended to prefix the data file with the corresponding issue id prefixed by *bug*, e.g. *bug12345_face1.brep*, to avoid possible conflicts with names of existing data files.
|
||||
|
||||
Note that when the test is integrated to the master branch, OCC team will move the data file to data files repository, so as to keep OCCT sources repository clean from data files.
|
||||
Note that when the test is integrated to the master branch, OCC team will move the data file to the data files repository, to keep OCCT sources repository clean from data files.
|
||||
|
||||
When preparing a test script, try to minimize the size of involved data model. For instance, if the problem detected on a big shape can be reproduced on a single face extracted from that shape, use only that face in the test.
|
||||
When you prepare a test script, try to minimize the size of involved data model. For instance, if the problem detected on a big shape can be reproduced on a single face extracted from that shape, use only that face in the test.
|
||||
|
||||
|
||||
@subsection testmanual_3_3 Adding new DRAW commands
|
||||
@@ -475,7 +474,7 @@ If the test cannot be implemented using available DRAW commands, consider the fo
|
||||
* Otherwise the new command implementing the actions needed for this particular test should be added in *QABugs* package. The command name should be formed by the Mantis issue ID prefixed by *bug*, e.g. *bug12345*.
|
||||
|
||||
Note that a DRAW command is expected to return 0 in case of a normal completion, and 1 (Tcl exception) if it is incorrectly used (e.g. a wrong number of input arguments). Thus if the new command needs to report a test error, this should be done by outputting an appropriate error message rather than by returning a non-zero value.
|
||||
Also file names must not be encoded in DRAW command but in script, and passed to DRAW command as argument.
|
||||
File names must be encoded in the script rather than in the DRAW command and passed to the DRAW command as an argument.
|
||||
|
||||
@subsection testmanual_3_4 Script Implementation
|
||||
|
||||
@@ -522,13 +521,16 @@ stepread [locate_data_file CAROSKI_COUPELLE.step] a *
|
||||
~~~~~
|
||||
|
||||
When the test needs to produce some snapshots or other artefacts, use Tcl variable *imagedir* as the location where such files should be put.
|
||||
Command *testgrid* sets this variable to the subdirectory of the results folder corresponding to the grid.
|
||||
Command *test* by default creates dedicated temporary directory in the system temporary folder (normally the one specified by environment variable *TempDir*, *TEMP*, or *TMP*) for each execution, and sets *imagedir* to that location.
|
||||
However if variable *imagedir* is defined on top level of Tcl interpretor, command *test* will use it instead of creating a new directory.
|
||||
* Command *testgrid* sets this variable to the subdirectory of the results folder corresponding to the grid.
|
||||
* Command *test* by default creates a dedicated temporary directory in the system temporary folder (normally the one specified by environment variable *TempDir*, *TEMP*, or *TMP*) for each execution, and sets *imagedir* to that location.
|
||||
|
||||
However if variable *imagedir* is defined on the top level of Tcl interpretor, command *test* will use it instead of creating a new directory.
|
||||
|
||||
Use Tcl variable *casename* to prefix all files produced by the test.
|
||||
This variable is set to the name of the test case.
|
||||
For the image file (snapshot) to be recognized by the test system (for inclusion in HTML log and differences), its name should start with name of the test case (use variable *casename*), optionally followed by underscore or dash and arbitrary suffix.
|
||||
|
||||
The test system can recognize an image file (snapshot) and include it in HTML log and differences if its name starts with the name of the test case (use variable *casename*), optionally followed by underscore or dash and arbitrary suffix.
|
||||
|
||||
The image format (defined by extension) should be *png*.
|
||||
|
||||
Example:
|
||||
@@ -550,9 +552,9 @@ A1-front.png
|
||||
Note that OCCT must be built with FreeImage support to be able to produce usable images.
|
||||
|
||||
Other Tcl variables defined during the test execution are:
|
||||
- *groupname*: name of the test group
|
||||
- *gridname*: name of the test grid
|
||||
- *dirname*: path to the root directory of the current set of test scripts
|
||||
- *groupname*: name of the test group;
|
||||
- *gridname*: name of the test grid;
|
||||
- *dirname*: path to the root directory of the current set of test scripts.
|
||||
|
||||
In order to ensure that the test works as expected in different environments, observe the following additional rules:
|
||||
* Avoid using external commands such as *grep, rm,* etc., as these commands can be absent on another system (e.g. on Windows); use facilities provided by Tcl instead.
|
||||
@@ -576,7 +578,7 @@ The new test created for an unsolved problem should return BAD. The new test cre
|
||||
|
||||
@subsection testmanual_3_6 Marking BAD cases
|
||||
|
||||
If the test produces an invalid result at a certain moment then corresponding bug should be created in the OCCT issue tracker located at http://tracker.dev.opencascade.org, and the problem should be marked as TODO in the test script.
|
||||
If the test produces an invalid result at a certain moment then the corresponding bug should be created in the OCCT issue tracker located at http://tracker.dev.opencascade.org, and the problem should be marked as TODO in the test script.
|
||||
|
||||
The following statement should be added to such a test script:
|
||||
~~~~~
|
||||
@@ -585,7 +587,7 @@ puts "TODO BugNumber ListOfPlatforms: RegularExpression"
|
||||
|
||||
Here:
|
||||
* *BugNumber* is the bug ID in the tracker. For example: #12345.
|
||||
* *ListOfPlatforms* is a list of platforms at which the bug is reproduced (e.g. Mandriva2008, Windows or All). Note that the platform name is custom for the OCCT test system; it corresponds to the value of environment variable *os_type* defined in DRAW.
|
||||
* *ListOfPlatforms* is a list of platforms, at which the bug is reproduced (e.g. Mandriva2008, Windows or All). Note that the platform name is custom for the OCCT test system; it corresponds to the value of environment variable *os_type* defined in DRAW.
|
||||
|
||||
Example:
|
||||
~~~~~
|
||||
@@ -593,7 +595,7 @@ Draw[2]> puts $env(os_type)
|
||||
windows
|
||||
~~~~~
|
||||
|
||||
* RegularExpression is a regular expression which should be matched against the line indicating the problem in the script output.
|
||||
* RegularExpression is a regular expression, which should be matched against the line indicating the problem in the script output.
|
||||
|
||||
Example:
|
||||
~~~~~
|
||||
@@ -620,7 +622,7 @@ puts "TODO OCC22817 All: TEST INCOMPLETE"
|
||||
|
||||
@subsection testmanual_4_1 Running Tests on Older Versions of OCCT
|
||||
|
||||
Sometimes it might be necessary to run tests on previous versions of OCCT (<= 6.5.4) that do not include this test system. This can be done by adding DRAW configuration file *DrawAppliInit* in the directory which is current by the moment of DRAW start-up, to load test commands and to define necessary environment.
|
||||
Sometimes it might be necessary to run tests on the previous versions of OCCT (<= 6.5.4) that do not include this test system. This can be done by adding DRAW configuration file *DrawAppliInit* in the directory, which is current by the moment of DRAW start-up, to load test commands and to define the necessary environment.
|
||||
|
||||
Note: in OCCT 6.5.3, file *DrawAppliInit* already exists in <i>$CASROOT/src/DrawResources</i>, new commands should be added to this file instead of a new one in the current directory.
|
||||
|
||||
@@ -634,7 +636,7 @@ set env(CSF_TestDataPath) $env(CASROOT)/data;d:/test-data
|
||||
return
|
||||
~~~~~
|
||||
|
||||
Note that on older versions of OCCT the tests are run in compatibility mode and not all output of the test command can be captured; this can lead to absence of some error messages (can be reported as either a failure or an improvement).
|
||||
Note that on older versions of OCCT the tests are run in compatibility mode and thus not all output of the test command can be captured; this can lead to absence of some error messages (can be reported as either a failure or an improvement).
|
||||
|
||||
@subsection testmanual_4_2 Adding custom tests
|
||||
|
||||
@@ -988,7 +990,7 @@ This group allows testing extended data exchange packages.
|
||||
| Visualization | TKService, TKV2d, TKV3d, TKOpenGl, TKMeshVS, TKNIS, TKVoxel | vis |
|
||||
|
||||
|
||||
@subsection testmanual_5_2 Recommended approaches to checking test results
|
||||
@subsection testmanual_5_3 Recommended approaches to checking test results
|
||||
|
||||
@subsubsection testmanual_5_3_1 Shape validity
|
||||
|
||||
@@ -999,6 +1001,36 @@ Example
|
||||
checkshape result
|
||||
~~~~~
|
||||
|
||||
To check the number of faults in the shape command *checkfaults* can be used.
|
||||
|
||||
Use: checkfaults shape source_shape [ref_value=0]
|
||||
|
||||
The default syntax of *checkfaults* command:
|
||||
~~~~~
|
||||
checkfaults results a_1
|
||||
~~~~~
|
||||
|
||||
The command will check the number of faults in the source shape (*a_1*) and compare it
|
||||
with number of faults in the resulting shape (*result*). If shape *result* contains
|
||||
more faults, you will get an error:
|
||||
~~~~~
|
||||
checkfaults results a_1
|
||||
Error : Number of faults is 5
|
||||
~~~~~
|
||||
It is possible to set the reference value for comparison (reference value is 4):
|
||||
|
||||
~~~~~
|
||||
checkfaults results a_1 4
|
||||
~~~~~
|
||||
|
||||
If number of faults in the resulting shape is unstable, reference value should be set to "-1".
|
||||
As a result command *checkfaults* will return the following error:
|
||||
|
||||
~~~~~
|
||||
checkfaults results a_1 -1
|
||||
Error : Number of faults is UNSTABLE
|
||||
~~~~~
|
||||
|
||||
@subsubsection testmanual_5_3_2 Shape tolerance
|
||||
The maximal tolerance of sub-shapes of each kind of the resulting shape can be extracted from output of tolerance command as follows:
|
||||
|
||||
@@ -1009,6 +1041,33 @@ regexp { *EDGE +: +MAX=([-0-9.+eE]+)} $tolerance dummy max_edgee
|
||||
regexp { *VERTEX +: +MAX=([-0-9.+eE]+)} $tolerance dummy max_vertex
|
||||
~~~~~
|
||||
|
||||
It is possible to use command *checkmaxtol* to check maximal tolerance of shape and compare it with reference value.
|
||||
|
||||
Use: checkmaxtol shape ref_value [source_shapes={}] [options...]
|
||||
|
||||
Allowed options are:
|
||||
* -min_tol: minimum tolerance for comparison
|
||||
* -multi_tol: tolerance multiplier
|
||||
|
||||
Argument "source_shapes" is a list of shapes to compare with.
|
||||
It can be empty to skip comparison of tolerance with these shapes.
|
||||
|
||||
The default syntax of *checkmaxtol* command for comparison with the reference value:
|
||||
~~~~~
|
||||
checkmaxtol result 0.00001
|
||||
~~~~~
|
||||
|
||||
There is an opportunity to compare max tolerance of resulting shape with max tolerance of source shape.
|
||||
In the following example command *checkmaxtol* gets max tolerance among objects *a_1* and *a_2*.
|
||||
Then it chooses the maximum value between founded tolerance and value -min_tol (0.000001)
|
||||
and multiply it on the coefficient -multi_tol (i.e. 2):
|
||||
|
||||
~~~~~
|
||||
checkmaxtol result 0.00001 {a_1 a_2} -min_tol 0.000001 -multi_tol 2
|
||||
~~~~~
|
||||
|
||||
If the value of maximum tolerance more than founded tolerance for comparison, the command will return an error.
|
||||
|
||||
@subsubsection testmanual_5_3_3 Shape volume, area, or length
|
||||
|
||||
Use command *vprops, sprops,* or *lprops* to correspondingly measure volume, area, or length of the shape produced by the test. The value can be extracted from the result of the command by *regexp*.
|
||||
@@ -1058,3 +1117,82 @@ vdump $imagedir/${casename}_shading.png
|
||||
~~~~~
|
||||
|
||||
This image will be included in the HTML log produced by *testgrid* command and will be checked for non-regression through comparison of images by command *testdiff*.
|
||||
|
||||
@subsubsection testmanual_5_3_6 Number of free edges
|
||||
|
||||
To check the number of free edges run the command *checkfreebounds*.
|
||||
|
||||
It compares number of free edges with reference value.
|
||||
|
||||
Use: checkfreebounds shape ref_value [options...]
|
||||
|
||||
Allowed options are:
|
||||
* -tol N: used tolerance (default -0.01)
|
||||
* -type N: used type, possible values are "closed" and "opened" (default "closed")
|
||||
|
||||
~~~~~
|
||||
checkfreebounds result 13
|
||||
~~~~~
|
||||
|
||||
Option -tol N is used to set tolerance for command *freebounds*, which is used within command *checkfreebounds*.
|
||||
|
||||
Option -type N is used to select the type of counted free edges - closed or opened.
|
||||
|
||||
If the number of free edges in the resulting shape is unstable, reference value should be set to "-1".
|
||||
As a result command *checkfreebounds* will return the following error:
|
||||
|
||||
~~~~~
|
||||
checkfreebounds result -1
|
||||
Error : Number of free edges is UNSTABLE
|
||||
~~~~~
|
||||
|
||||
@subsubsection testmanual_5_3_7 Compare numbers
|
||||
|
||||
Procedure to check equality of two reals with some tolerance (relative and absolute)
|
||||
|
||||
Use: checkreal name value expected tol_abs tol_rel
|
||||
|
||||
~~~~~
|
||||
checkreal "Some important value" $value 5 0.0001 0.01
|
||||
~~~~~
|
||||
|
||||
@subsubsection testmanual_5_3_8 Check number of sub-shapes
|
||||
|
||||
Compare number of sub-shapes in "shape" with given reference data
|
||||
|
||||
Use: checknbshapes shape [options...]
|
||||
Allowed options are:
|
||||
* -vertex N
|
||||
* -edge N
|
||||
* -wire N
|
||||
* -face N
|
||||
* -shell N
|
||||
* -solid N
|
||||
* -compsolid N
|
||||
* -compound N
|
||||
* -shape N
|
||||
* -t: compare the number of sub-shapes in "shape" counting
|
||||
the same sub-shapes with different location as different sub-shapes.
|
||||
* -m msg: print "msg" in case of error
|
||||
|
||||
~~~~~
|
||||
checknbshapes result -vertex 8 -edge 4
|
||||
~~~~~
|
||||
|
||||
@subsubsection testmanual_5_3_9 Check pixel color
|
||||
|
||||
To check pixel color command *checkcolor* can be used.
|
||||
|
||||
Use: checkcolor x y red green blue
|
||||
|
||||
x y - pixel coordinates
|
||||
|
||||
red green blue - expected pixel color (values from 0 to 1)
|
||||
|
||||
This procedure checks color with tolerance (5x5 area)
|
||||
|
||||
Next example will compare color of point with coordinates x=100 y=100 with RGB color R=1 G=0 B=0.
|
||||
If colors are not equal, procedure will check the nearest ones points (5x5 area)
|
||||
~~~~~
|
||||
checkcolor 100 100 1 0 0
|
||||
~~~~~
|
||||
|
@@ -480,8 +480,11 @@ This automatically takes you to the root directory of the workbench
|
||||
|
||||
@subsubsection occt_wok_3_3_8 Using Existing Resources
|
||||
Before creating new data types, you should look for existing components that you can reuse. In particular, you should look through the existing resources of your Open CASCADE Technology platform to see if any of the required components already exist, or if any existing generic components can be suitably implemented. This search can be conducted using the online documentation. You should note the packages and classes, which you can reuse.
|
||||
|
||||
@subsection occt_wok_3_4 Creating Software Components
|
||||
|
||||
@subsubsection occt_wok_3_4_1 Creating a Package
|
||||
|
||||
To develop new software components, you usually need to create one or more packages. You do this, by using the following command:
|
||||
~~~~~
|
||||
> ucreate –p <MyPackage>
|
||||
@@ -613,6 +616,7 @@ The umake steps for development units of package type are explained below.
|
||||
* *obj.lib* Generates the shared library for the development unit.
|
||||
|
||||
@subsubsection occt_wok_3_4_2 Creating a Nocdlpack
|
||||
|
||||
If your executable requires the use of a nocdlpack, create a development unit of nocdlpack type and move to its structure using the commands below:
|
||||
~~~~~
|
||||
> ucreate -n <MyNoCDLPack>
|
||||
@@ -656,7 +660,8 @@ The *umake* steps for development units of *nocdlpack* type are explained below.
|
||||
+ Implementation dependencies in terms of the unit suppliers. (Unit.ImplDep)
|
||||
* *obj.lib* Generates the shared library for the unit.
|
||||
|
||||
@subsubsection occt_wok_3_3_3 Creating a Schema
|
||||
@subsubsection occt_wok_3_4_3 Creating a Schema
|
||||
|
||||
If the application, which you intend to build, stores data in a file, you need to define a schema for the persistent data types that are known.
|
||||
|
||||
You create a schema and go to its root directory using the commands:
|
||||
@@ -735,7 +740,9 @@ The umake steps for development units of schema type are explained below.
|
||||
* *obj.idep* Generates dependency information for the schema.
|
||||
|
||||
@subsection occt_wok_3_5 Building an Executable
|
||||
|
||||
@subsubsection occt_wok_3_5_1 Creating an Executable
|
||||
|
||||
To make an executable from one or more of the packages, which you have created, write a .cdl file to specify the packages to use.
|
||||
|
||||
#### Writing an Executable
|
||||
@@ -805,7 +812,9 @@ The umake steps for development units of executable type are explained below.
|
||||
* *exec.link* Links each part of the executable.
|
||||
|
||||
@subsection occt_wok_3_6 Test Environments
|
||||
@subsubsection occt_wok_3_3_1 Testing an Executable
|
||||
|
||||
@subsubsection occt_wok_3_6_1 Testing an Executable
|
||||
|
||||
To test an executable, you create an executable development unit and move to its structure.
|
||||
|
||||
When you write the .cdl file for your test executable, specify the packages to test, for example:
|
||||
|
Before Width: | Height: | Size: 6.6 KiB After Width: | Height: | Size: 4.8 KiB |
Before Width: | Height: | Size: 9.5 KiB After Width: | Height: | Size: 10 KiB |
@@ -3,6 +3,11 @@
|
||||
|
||||
@tableofcontents
|
||||
|
||||
@htmlonly<center>@endhtmlonly
|
||||
@image html /resources/occt_logo.png
|
||||
@image latex /resources/occt_logo.png
|
||||
@htmlonly</center>@endhtmlonly
|
||||
|
||||
@section OCCT_OVW_SECTION_1 Welcome
|
||||
|
||||
Welcome to Open CASCADE Technology (OCCT), a software development platform
|
||||
@@ -11,16 +16,10 @@ visualization. Most of OCCT functionality is available in the form of C++
|
||||
libraries. OCCT can be best applied in development of software dealing with 3D
|
||||
modeling (CAD), manufacturing / measuring (CAM) or numerical simulation (CAE).
|
||||
|
||||
@htmlonly<center>@endhtmlonly
|
||||
http://www.opencascade.org
|
||||
@image html /resources/occt_logo.png
|
||||
@image latex /resources/occt_logo.png
|
||||
@htmlonly</center>@endhtmlonly
|
||||
|
||||
@section OCCT_OVW_SECTION_2 Copyrights
|
||||
|
||||
Open CASCADE Technology and all materials, including this documentation, is
|
||||
Copyright (c) 1999-2013 by OPEN CASCADE S.A.S. All rights reserved.
|
||||
Copyright (c) 1999-2015 by OPEN CASCADE S.A.S. All rights reserved.
|
||||
|
||||
@htmlonly<center>@endhtmlonly
|
||||
http://www.opencascade.com
|
||||
@@ -168,44 +167,19 @@ See @ref occt_dev_guides__documentation "OCCT Documentation Guide" for details o
|
||||
**Generation of HTML documentation**
|
||||
|
||||
To generate HTML documentation from sources contained in *dox* subdirectory,
|
||||
you need to have Tcl and Doxygen 1.8.4 (or above) installed on your system.
|
||||
you need to have Tcl and Doxygen 1.8.5 (or above) installed on your system.
|
||||
|
||||
In Tcl prompt, cd to OCCT root folder and run
|
||||
Use script **gendoc** (batch file on Windows, shell script on Linux / Mac OSX) to generate documentation.
|
||||
|
||||
tclsh> source dox/start.tcl
|
||||
To generate Overview documentation:
|
||||
|
||||
On Windows you can also run batch script **gendoc.bat**.
|
||||
cmd> gendoc -overview
|
||||
|
||||
To generate Reference manual:
|
||||
|
||||
**Generation of reference documentation**
|
||||
cmd> gendoc -refman
|
||||
|
||||
Reference documentation can be generated with help of WOK tool that
|
||||
is available for download from www.opencascade.org and dev.opencascade.org sites.
|
||||
|
||||
Prerequisites:
|
||||
|
||||
* Doxygen version 1.8.4 or higher
|
||||
* Graphviz version 2.28.0 or higher
|
||||
|
||||
Run WOK (cd \<WOK_INSTALL_DIR\>/site folder):
|
||||
|
||||
* Using WOK TCL shell:
|
||||
> wok_tclsh.sh
|
||||
|
||||
* Using Emacs editor:
|
||||
> wok_emacs.sh
|
||||
|
||||
In the WOK prompt, step into your workbench:
|
||||
|
||||
> wokcd <your workbench>
|
||||
|
||||
In your workbench, use **wgendoc** command with –h argument to get information about arguments of **wgendoc** command:
|
||||
|
||||
> wgendoc -h
|
||||
|
||||
then run **wgendoc** command with required arguments, for instance:
|
||||
|
||||
> wgendoc -output=d:/occt/doc {-m=Draw Visualization}
|
||||
Run this command without arguments to get help on supported options.
|
||||
|
||||
@section OCCT_OVW_SECTION_5 Requirements
|
||||
|
||||
@@ -224,7 +198,7 @@ for which OCCT is certified to work.
|
||||
| Minimum memory | 512 MB, 1 GB recommended |
|
||||
| Free disk space (complete installation) | 600 MB approx. |
|
||||
| Video card | See \ref overview_req_graphics |
|
||||
| Graphic library | OpenGL 1.1+ (OpenGL 2.1+ is recommended)|
|
||||
| Graphic library | OpenGL 3.3+, OpenGL ES 2.0+ |
|
||||
| C++ | GNU gcc 4.0. - 4.7.3. |
|
||||
| TCL (for testing tools) | Tcl/Tk 8.5 or 8.6 http://www.tcl.tk/software/tcltk/download.html |
|
||||
| Qt (for demonstration tools) | Qt 4.8.6 http://qt-project.org/downloads |
|
||||
@@ -243,7 +217,7 @@ for which OCCT is certified to work.
|
||||
| Minimum memory | 512 MB, 1 GB recommended |
|
||||
| Free disk space (complete installation) | 600 MB approx. |
|
||||
| Video card | See \ref overview_req_graphics |
|
||||
| Graphic library | OpenGL 1.1+ (OpenGL 2.1+ is recommended)|
|
||||
| Graphic library | OpenGL 3.3+, OpenGL ES 2.0+ |
|
||||
| C++ | Microsoft Visual Studio: 2005 SP1, 2008 SP1, 2010 SP1 \*, 2012 Update 3, 2013 <br>Intel C++ Composer XE 2013 SP1 |
|
||||
| TCL (for testing tools) | Tcl/Tk 8.5 or 8.6 http://www.tcl.tk/software/tcltk/download.html |
|
||||
| Qt (for demonstration tools) | Qt 4.8.6 http://qt-project.org/downloads |
|
||||
@@ -253,7 +227,7 @@ for which OCCT is certified to work.
|
||||
| Intel TBB (optional, for multithreaded algorithms) | TBB 3.x or 4.x http://www.threadingbuildingblocks.org/ |
|
||||
| VTK (for VTK Integration Services | VTK 6.1.0 http://www.vtk.org/VTK/resources/software.html |
|
||||
|
||||
* VC++ 10 32-bit is used for certification of contributions and for building
|
||||
* VC++ 10 64-bit is used for certification of contributions and for building
|
||||
binary package of official release of OCCT on Windows.
|
||||
|
||||
@subsection OCCT_OVW_SECTION_5_3 MAC OS X
|
||||
@@ -331,14 +305,14 @@ OCCT installation with reference documentation requires 1,4 Gb on disk.
|
||||
* Launch the installer and follow the instructions.
|
||||
|
||||
The includes and binaries of third-party libraries necessary for building and launching
|
||||
OCCT are included into binary distribution (built with Visual C++ 2008).
|
||||
OCCT are included into binary distribution (built with Visual C++ 2010).
|
||||
When the installation is complete, you will find the directories for 3rd party products
|
||||
(some might be absent in case of custom installation) and the main **OCCT** directory:
|
||||
|
||||
@image html /overview/images/overview_3rdparty.png
|
||||
@image latex /overview/images/overview_3rdparty.png
|
||||
|
||||
The contents of the OCCT-6.8.0 directory (called further "OCCT root", or $CASROOT) are as follows:
|
||||
The contents of the OCCT-6.9.0 directory (called further "OCCT root", or $CASROOT) are as follows:
|
||||
|
||||
@image html /overview/images/overview_installation.png "The directory tree"
|
||||
@image latex /overview/images/overview_installation.png "The directory tree"
|
||||
@@ -354,7 +328,7 @@ The contents of the OCCT-6.8.0 directory (called further "OCCT root", or $CASROO
|
||||
* **samples** This folder contains sample applications.
|
||||
* **src** This folder contains OCCT source files. They are organized in folders, one per development unit;
|
||||
* **tests** This folder contains scripts for OCCT testing.
|
||||
* **win32/vc10** This folder contains executable and library files built in optimize mode for Windows platform by Visual C++ 2010;
|
||||
* **win64/vc10** This folder contains executable and library files built in optimize mode for Windows platform by Visual C++ 2010;
|
||||
|
||||
@section OCCT_OVW_SECTION_4_2 Environment Variables
|
||||
|
||||
|
BIN
dox/technical_overview/images/0001.png
Normal file
After Width: | Height: | Size: 103 KiB |
BIN
dox/technical_overview/images/0002.png
Normal file
After Width: | Height: | Size: 57 KiB |
BIN
dox/technical_overview/images/0003.png
Normal file
After Width: | Height: | Size: 260 KiB |
BIN
dox/technical_overview/images/0004.png
Normal file
After Width: | Height: | Size: 84 KiB |
BIN
dox/technical_overview/images/0008.png
Normal file
After Width: | Height: | Size: 80 KiB |
BIN
dox/technical_overview/images/0012.png
Normal file
After Width: | Height: | Size: 97 KiB |
BIN
dox/technical_overview/images/0013.png
Normal file
After Width: | Height: | Size: 45 KiB |
BIN
dox/technical_overview/images/0014.png
Normal file
After Width: | Height: | Size: 118 KiB |
Before Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 6.7 KiB |
Before Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 4.7 KiB |
Before Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 7.4 KiB |
Before Width: | Height: | Size: 4.6 KiB |
Before Width: | Height: | Size: 7.1 KiB |
Before Width: | Height: | Size: 9.5 KiB |
Before Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 47 KiB |
Before Width: | Height: | Size: 30 KiB |
Before Width: | Height: | Size: 5.7 KiB |
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 17 KiB |
Before Width: | Height: | Size: 89 KiB |
Before Width: | Height: | Size: 14 KiB |
@@ -717,7 +717,7 @@ Congratulations! Your bottle is complete. Here is the result snapshot of the Tut
|
||||
@image latex /tutorial/images/tutorial_image019.png
|
||||
|
||||
We hope that this tutorial has provided you with a feel for the industrial strength power of Open CASCADE Technology.
|
||||
If you want to know more and develop major projects using Open CASCADE Technology, we invite you to study our training, support, and consulting services on our site at http://www.opencascade.org/support. Our professional services can maximize the power of your Open CASCADE Technology applications.
|
||||
If you want to know more and develop major projects using Open CASCADE Technology, we invite you to study our training, support, and consulting services on our site at http://www.opencascade.com/content/technology-support. Our professional services can maximize the power of your Open CASCADE Technology applications.
|
||||
|
||||
|
||||
@section sec6 Appendix
|
||||
|
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 59 KiB |
Before Width: | Height: | Size: 4.0 KiB After Width: | Height: | Size: 60 KiB |
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 32 KiB |
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 36 KiB |
Before Width: | Height: | Size: 4.6 KiB After Width: | Height: | Size: 68 KiB |
Before Width: | Height: | Size: 4.9 KiB After Width: | Height: | Size: 69 KiB |
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 35 KiB |
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 38 KiB |
BIN
dox/user_guides/boolean_operations/images/boolean_image080.png
Normal file
After Width: | Height: | Size: 2.2 KiB |
BIN
dox/user_guides/boolean_operations/images/boolean_image081.png
Normal file
After Width: | Height: | Size: 3.5 KiB |
BIN
dox/user_guides/boolean_operations/images/boolean_image082.png
Normal file
After Width: | Height: | Size: 1.6 KiB |
BIN
dox/user_guides/boolean_operations/images/boolean_image083.png
Normal file
After Width: | Height: | Size: 825 B |
BIN
dox/user_guides/boolean_operations/images/boolean_image084.png
Normal file
After Width: | Height: | Size: 2.2 KiB |
BIN
dox/user_guides/boolean_operations/images/boolean_image085.png
Normal file
After Width: | Height: | Size: 828 B |
BIN
dox/user_guides/boolean_operations/images/boolean_image086.png
Normal file
After Width: | Height: | Size: 3.4 KiB |
BIN
dox/user_guides/boolean_operations/images/boolean_image087.png
Normal file
After Width: | Height: | Size: 1.4 KiB |
BIN
dox/user_guides/boolean_operations/images/boolean_image088.png
Normal file
After Width: | Height: | Size: 940 B |
BIN
dox/user_guides/boolean_operations/images/boolean_image089.png
Normal file
After Width: | Height: | Size: 1.6 KiB |
BIN
dox/user_guides/boolean_operations/images/boolean_image090.png
Normal file
After Width: | Height: | Size: 1.4 KiB |
BIN
dox/user_guides/boolean_operations/images/boolean_image091.png
Normal file
After Width: | Height: | Size: 2.8 KiB |
BIN
dox/user_guides/boolean_operations/images/boolean_image092.png
Normal file
After Width: | Height: | Size: 1.3 KiB |
BIN
dox/user_guides/boolean_operations/images/boolean_image093.png
Normal file
After Width: | Height: | Size: 2.7 KiB |
BIN
dox/user_guides/boolean_operations/images/boolean_image094.png
Normal file
After Width: | Height: | Size: 1.4 KiB |
BIN
dox/user_guides/boolean_operations/images/boolean_image095.png
Normal file
After Width: | Height: | Size: 3.8 KiB |
BIN
dox/user_guides/boolean_operations/images/boolean_image096.png
Normal file
After Width: | Height: | Size: 1.3 KiB |
BIN
dox/user_guides/boolean_operations/images/boolean_image097.png
Normal file
After Width: | Height: | Size: 3.9 KiB |
BIN
dox/user_guides/boolean_operations/images/boolean_image098.png
Normal file
After Width: | Height: | Size: 1.3 KiB |
BIN
dox/user_guides/boolean_operations/images/boolean_image099.png
Normal file
After Width: | Height: | Size: 2.6 KiB |
BIN
dox/user_guides/boolean_operations/images/boolean_image100.png
Normal file
After Width: | Height: | Size: 1.3 KiB |
BIN
dox/user_guides/boolean_operations/images/boolean_image101.png
Normal file
After Width: | Height: | Size: 2.5 KiB |
BIN
dox/user_guides/boolean_operations/images/boolean_image102.png
Normal file
After Width: | Height: | Size: 1.3 KiB |
BIN
dox/user_guides/boolean_operations/images/boolean_image103.png
Normal file
After Width: | Height: | Size: 1.9 KiB |
BIN
dox/user_guides/boolean_operations/images/boolean_image104.png
Normal file
After Width: | Height: | Size: 1.3 KiB |
BIN
dox/user_guides/boolean_operations/images/boolean_image105.png
Normal file
After Width: | Height: | Size: 4.0 KiB |
BIN
dox/user_guides/boolean_operations/images/boolean_image106.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
dox/user_guides/boolean_operations/images/boolean_image107.png
Normal file
After Width: | Height: | Size: 4.2 KiB |
BIN
dox/user_guides/boolean_operations/images/boolean_image108.png
Normal file
After Width: | Height: | Size: 1.3 KiB |
BIN
dox/user_guides/boolean_operations/images/boolean_image109.png
Normal file
After Width: | Height: | Size: 3.3 KiB |
BIN
dox/user_guides/boolean_operations/images/boolean_image110.png
Normal file
After Width: | Height: | Size: 1.4 KiB |
BIN
dox/user_guides/boolean_operations/images/boolean_image111.png
Normal file
After Width: | Height: | Size: 3.8 KiB |
BIN
dox/user_guides/boolean_operations/images/boolean_image112.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
dox/user_guides/boolean_operations/images/boolean_image113.png
Normal file
After Width: | Height: | Size: 4.9 KiB |
BIN
dox/user_guides/boolean_operations/images/boolean_image114.png
Normal file
After Width: | Height: | Size: 1.4 KiB |
BIN
dox/user_guides/boolean_operations/images/boolean_image115.png
Normal file
After Width: | Height: | Size: 5.1 KiB |
BIN
dox/user_guides/boolean_operations/images/boolean_image116.png
Normal file
After Width: | Height: | Size: 1.3 KiB |
BIN
dox/user_guides/boolean_operations/images/boolean_image117.png
Normal file
After Width: | Height: | Size: 5.0 KiB |
BIN
dox/user_guides/boolean_operations/images/boolean_image118.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
dox/user_guides/boolean_operations/images/boolean_image119.png
Normal file
After Width: | Height: | Size: 4.3 KiB |
BIN
dox/user_guides/boolean_operations/images/boolean_image120.png
Normal file
After Width: | Height: | Size: 1.3 KiB |
BIN
dox/user_guides/boolean_operations/images/boolean_image121.png
Normal file
After Width: | Height: | Size: 79 KiB |
BIN
dox/user_guides/boolean_operations/images/boolean_image122.png
Normal file
After Width: | Height: | Size: 77 KiB |
BIN
dox/user_guides/boolean_operations/images/boolean_image123.png
Normal file
After Width: | Height: | Size: 51 KiB |
BIN
dox/user_guides/boolean_operations/images/boolean_image124.png
Normal file
After Width: | Height: | Size: 135 KiB |
BIN
dox/user_guides/boolean_operations/images/boolean_image125.png
Normal file
After Width: | Height: | Size: 20 KiB |