mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-04 18:06:22 +03:00
1) Added method Graphic3d_Camera::FrustumPoints() returning corner points of camera frustum. 2) Refactored methods OpenGl_BVHTreeSelector::isFullOut(...) and OpenGl_BVHTreeSelector::CacheClipPtsProjections() 3) Changed computation algorithm of frustum planes (build them by corner points) 4) Added interactive object AIS_CameraFrustum to draw camera frustum. 5) Extended Draw command "vcamera" with option displaying camera frustum.
33 lines
670 B
Plaintext
33 lines
670 B
Plaintext
puts "============="
|
|
puts "0030412: Visualization, TKV3d - add presentation of camera frustum"
|
|
puts "============="
|
|
|
|
pload MODELING VISUALIZATION
|
|
vclear
|
|
vinit View1
|
|
|
|
vfront
|
|
vcamera -persp
|
|
|
|
set THE_NB_BOXES 5
|
|
puts "Creating [expr $THE_NB_BOXES * $THE_NB_BOXES * $THE_NB_BOXES] boxes..."
|
|
for {set i 0} {$i < $THE_NB_BOXES} {incr i} {
|
|
for {set j 0} {$j < $THE_NB_BOXES} {incr j} {
|
|
for {set k 0} {$k < $THE_NB_BOXES} {incr k} {
|
|
box b$i$j$k 3.*$i 3.*$j 3.*$k 1 1 1
|
|
vdisplay -noupdate -dispMode 1 b$i$j$k
|
|
}
|
|
}
|
|
}
|
|
|
|
vfit
|
|
vzoom 1.5
|
|
vcamera cam
|
|
|
|
vright
|
|
vfit
|
|
vdump $::imagedir/${::casename}_cam_right.png
|
|
|
|
vaxo
|
|
vfit
|
|
vdump $::imagedir/${::casename}_cam_axo.png |