MantisBT - Open CASCADE
View Issue Details
0029837Open CASCADE[OCCT] OCCT:Visualizationpublic2018-06-04 16:202019-06-27 11:34
ski 
tizmaylo 
normalminor 
assignedopen 
[OCCT] 6.8.0 
[OCCT] 7.4.0* 
0029837: Visualization, TKOpenGl - Fit All operation works not correct
Fit All operation works not correct with attached shape after using of vviewparams operations.
pload VISUALIZATION
brestore shape.brep s
vclear
vinit View1
vtop
vdisplay s
vpoint p0 0 0 0
vfit
# OK
vremove p0
vfit
# KO nothing is displayed


pload ALL
vinit

brestore C:/shape.brep s
vdisplay s

vviewparams -up 1 0 0
vviewparams -proj 0 0 1
vfit
No tags attached.
duplicate of 0026154assigned tizmaylo Open CASCADE Visualization - v3d viewer grid disappears due to automatic z-fit 
related to 0025063closed bugmaster Open CASCADE Visualization - 2D objects are not displayed at some camera positions 
has duplicate 0029985new kgv Community Visualization - Wrong result of V3d_View::FitAll() for a straight line segment 
related to 0029388assigned tizmaylo Open CASCADE Visualization - Setting camera eye position to (0,0,0) kills the application 
? shape.brep (22,400) 2018-06-04 16:20
https://tracker.dev.opencascade.org/
? flat.brep (42,886) 2019-06-21 09:25
https://tracker.dev.opencascade.org/
Issue History
2018-06-04 16:20skiNew Issue
2018-06-04 16:20skiAssigned To => kgv
2018-06-04 16:20skiFile Added: shape.brep
2018-06-04 16:30kgvSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=19219#r19219
2018-06-04 16:30kgvSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=19220#r19220
2018-06-04 16:37kgvRelationship addedduplicate of 0026154
2018-06-04 16:38kgvSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=19221#r19221
2018-06-04 16:41kgvProduct Version => 6.8.0
2018-06-04 16:41kgvSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=19222#r19222
2018-06-14 17:51kgvRelationship addedrelated to 0029388
2018-07-25 11:47kgvRelationship addedhas duplicate 0029985
2019-06-21 09:24amlNote Added: 0085187
2019-06-21 09:25amlFile Added: flat.brep
2019-06-24 18:43kgvAssigned Tokgv => tizmaylo
2019-06-24 18:43kgvStatusnew => assigned
2019-06-25 19:52tizmayloRelationship addedrelated to 0025063
2019-06-25 20:03gitNote Added: 0085305
2019-06-26 10:29tizmayloNote Added: 0085311
2019-06-26 10:29tizmayloAssigned Totizmaylo => kgv
2019-06-26 10:29tizmayloStatusassigned => resolved
2019-06-27 11:31kgvRelationship addedrelated to 0024393
2019-06-27 11:34kgvNote Added: 0085318
2019-06-27 11:34kgvAssigned Tokgv => tizmaylo
2019-06-27 11:34kgvStatusresolved => assigned

Notes
(0085187)
aml   
2019-06-21 09:24   
One more test case:

restore d:/flat.brep a
vinit
vright
vviewparams -proj 1 0 0 -up 0.0 0.99754686591938924 -0.070001787794343212
vdisplay a
vfit
(0085305)
git   
2019-06-25 20:03   
Branch CR29837 has been created by tizmaylo.

SHA-1: 7c6d89d8c12c73ab4ac0c5e9655381aae0e7eb8f


Detailed log of new commits:

Author: tiv
Date: Tue Jun 25 19:46:26 2019 +0300

    0029837: Visualization, TKOpenGl - Fit All operation works not correct
    
    Minimal distance from camera eye to camera center is calculated now relatively to the distance from origin to camera center (to prevent problems with floating-point precision).
(0085311)
tizmaylo   
2019-06-26 10:29   
Patch is ready for review: http://jenkins-test-12.nnov.opencascade.com:8080/view/CR29837-master-TIV/view/ALL/ [^]
(0085318)
kgv   
2019-06-27 11:34   
The patch might downgrade camera manipulations with enhanced precision (when camera eye is moved to ZLayer origin) - to be checked/corrected.