View Issue Details

IDProjectCategoryView StatusLast Update
0029985CommunityOCCT:Visualizationpublic2020-08-31 09:39
ReporterFreeman Assigned Tobugmaster  
PrioritynormalSeverityminor 
Status closedResolutionduplicate 
PlatformWindowsOSVC++ 2015 
Product Version7.3.0 
Target Version7.5.0 
Summary0029985: Visualization - Wrong result of V3d_View::FitAll() for a straight line segment
DescriptionWhen I try to display a line laying on the plane (0, 0, 1, -4000), the FitALL function goes wrong (I can't see anything on the View window because of clipping). I think this is related to the calculation of zNear/zFar.
Steps To Reproduce
pload MODELING VISUALIZATION
vclear
vinit View1
vtop
vpoint p1   0 0 4000
vpoint p2 200 0 4000
vsegment s p1 p2
vfit


1) Set orientation of projection:
  myView->setProj(V3d_Zpos);
2) Make an edge:
  TopoDS_Edge edge = BRepBuilderAPI_MakeEdge(gp_Pnt(0.0, 0.0, 4000.0), gp_Pnt(200.0, 0.0, 4000.0));
3) Display the shape:
 Handle(AIS_Shape) edgeShape = new AIS_Shape(edge);
 myContext->Display(edgeShape, true);
4) Call fitALL:
 myView->FitALL();
TagsNo tags attached.
Test case number

Relationships

duplicate of 0029837 closedbugmaster Open CASCADE Visualization, Graphic3d_Camera - Fit All operation works incorrectly on flat object 

Activities

kgv

2020-08-04 16:29

developer   ~0093430

Dear bugmaster,

please close the bug as duplicate of 0029837 - the bug is no more reproducible.

Issue History

Date Modified Username Field Change
2018-07-25 08:06 Freeman New Issue
2018-07-25 08:06 Freeman Assigned To => kgv
2018-07-25 11:45 kgv Summary Wrong result of V3d_View::FitAll => Visualization - Wrong result of V3d_View::FitAll() for a straight line segment
2018-07-25 11:45 kgv Steps to Reproduce Updated
2018-07-25 11:47 kgv Relationship added duplicate of 0029837
2018-07-25 11:48 kgv Resolution open => duplicate
2018-07-25 11:48 kgv Target Version => 7.4.0
2019-09-04 15:36 abv Target Version 7.4.0 => 7.5.0
2020-08-04 16:29 kgv Note Added: 0093430
2020-08-04 16:29 kgv Assigned To kgv => bugmaster
2020-08-04 16:29 kgv Status new => feedback
2020-08-31 09:39 bugmaster Status feedback => closed