MantisBT - Community
View Issue Details
0026958Community[OCCT] OCCT:Visualizationpublic2015-12-07 10:492020-08-28 14:30
Vico Liang 
[OCCT] 6.9.1 
[OCCT] 7.6.0* 
0026958: Visualization - Extend Grid visualization to fill the whole view automatically
OCCT provides the capability to create two kinds of grids: CircularGrid and RectangularGrid. To create a grid, user have to specify the cell size and the grid extent. In most situation, user expects the grid to extend to fill the whole view automatically expecially after the camera zooming, rotation, and panning.
No tags attached.
related to 0026154closed bugmaster Open CASCADE Visualization - v3d viewer grid disappears due to automatic z-fit 
related to 0028405closed bugmaster Community Visualization, V3d_Viewer - changes to Grid immediately updates view 
related to 0030979assigned mzernova Open CASCADE Visualization - introduce customized grid presentations 
png 3D Builder.png (65,696) 2016-11-30 12:32
Issue History
2015-12-07 10:49Vico LiangNew Issue
2015-12-07 10:49Vico LiangAssigned To => kgv
2015-12-07 11:40Vico LiangNote Added: 0048776
2015-12-07 11:45Vico LiangSummaryExtend Grid visualization to fill the whole view automalically => Extend Grid visualization to fill the whole view automatically
2015-12-07 11:56kgvNote Added: 0048778
2015-12-07 12:28Vico LiangNote Added: 0048783
2015-12-09 14:53kgvNote Added: 0048909
2015-12-09 14:53kgvPrioritynormal => low
2015-12-09 14:53kgvTarget Version7.0.0 => 7.1.0
2015-12-09 14:53kgvNote Edited: 0048909bug_revision_view_page.php?bugnote_id=48909#r12496
2015-12-09 14:53kgvNote Edited: 0048909bug_revision_view_page.php?bugnote_id=48909#r12497
2015-12-12 13:48Vico LiangNote Added: 0049069
2016-06-16 21:58kgvRelationship addedrelated to 0026154
2016-10-25 09:36kgvTarget Version7.1.0 => 7.2.0
2016-11-30 07:21Vico LiangNote Added: 0060876
2016-11-30 12:31TimoNote Added: 0060893
2016-11-30 12:32TimoFile Added: 3D Builder.png
2016-11-30 12:37TimoNote Edited: 0060893bug_revision_view_page.php?bugnote_id=60893#r15467
2016-12-26 12:02Vico LiangNote Added: 0062113
2017-01-30 11:21kgvRelationship addedrelated to 0028405
2017-07-10 11:36kgvSummaryExtend Grid visualization to fill the whole view automatically => Visualization - Extend Grid visualization to fill the whole view automatically
2017-07-20 11:33kgvTarget Version7.2.0 => 7.4.0
2019-09-04 12:58abvTarget Version7.4.0 => 7.5.0
2019-09-18 14:39kgvRelationship addedrelated to 0030979
2020-08-28 14:30kgvTarget Version7.5.0 => 7.6.0*

Vico Liang   
2015-12-07 11:40   
Dear kgv,

Is it possible to extend grid to fill the whole view outside occt visualization framework? I have tried to set a very huge extent, but it suffers performance issue. Do you have any good idea to implement this feature with high performance?
2015-12-07 11:56   
Dear Vico,

current implementation defines fixed presentation - object contains fixed number of lines, which means that all lines are resident in memory and should be computed at once. Making grid step too small in such a way would make its presentation extremely large and expensive.

So instead, scalable grid presentation should rely on another mechanism - adaptive number of lines visible in viewer (depending on camera position) and adaptive step (e.g. to vary step depending on lines density).
Vico Liang   
2015-12-07 12:28   
Dear kgv,

Scalable grid presentation should be a nice feature. I see most of the applications have the grid with adaptive number of lines and adaptive step. When i try to use occt embeded grid, i find it's very hard to accomplish such feature. So i think OCCT should improve its internal GRID presentation.
2015-12-09 14:53   
> Scalable grid presentation should be a nice feature.
I have to agree, however most OCCT-based applications I have seen do not use grid at all - this is why this functionality has not been evolved in OCCT for a long time.

Some projects define own OCCT OpenGl_Element for 2D grid (in case of 2D view implementation is more or less straight-forward).

Vico Liang   
2015-12-12 13:48   
Grid is essential in most CAD application. There will be more and more applications to adopt OCCT visualization package if these feature are avaiable and convinient to use.
Vico Liang   
2016-11-30 07:21   
Dear kgv,

Could you raise the priority of this issue about grid? Do you have solution about the implementation this feature? It must be a cool feature of OCCT visulization. I'm sure many applications need it. Or at least would you please give some thought about how to implement it base on OCCT visulization framework?
2016-11-30 12:31   
(edited on: 2016-11-30 12:37)
Interesting would maybe also be a chessboard grid design like in the 3D Builder app of Windows 10. See appended image.

In any case it would be good that an adaptive grid changes its step when zooming e.g. in powers of 10, so that it can help to get an idea of the size of shapes.

Vico Liang   
2016-12-26 12:02   
Is there any idea to implement an adaptive grid in OCCT visulization framework?