View Issue Details

IDProjectCategoryView StatusLast Update
0026958CommunityOCCT:Visualizationpublic2023-08-01 15:06
ReporterVico Liang Assigned Tovpozdyayev 
Status newResolutionopen 
Product Version6.9.1 
Target VersionUnscheduled 
Summary0026958: Visualization - Extend Grid visualization to fill the whole view automatically
DescriptionOCCT 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.
TagsNo tags attached.
Test case number

Attached Files

  • 3D Builder.png (65,696 bytes)


related to 0030979 assignedmzernova Open CASCADE Visualization - introduce customized grid presentations 
related to 0026154 closedbugmaster Open CASCADE Visualization - v3d viewer grid disappears due to automatic z-fit 
related to 0028405 closedbugmaster Community Visualization, V3d_Viewer - changes to Grid immediately updates view 


Vico Liang

2015-12-07 11:40

developer   ~0048776

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

developer   ~0048778

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

developer   ~0048783

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

developer   ~0048909

Last edited: 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

developer   ~0049069

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

developer   ~0060876

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

developer   ~0060893

Last edited: 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.


2016-11-30 12:32


3D Builder.png (65,696 bytes)

Vico Liang

2016-12-26 12:02

developer   ~0062113

Is there any idea to implement an adaptive grid in OCCT visulization framework?

Issue History

Date Modified Username Field Change
2015-12-07 10:49 Vico Liang New Issue
2015-12-07 10:49 Vico Liang Assigned To => kgv
2015-12-07 11:40 Vico Liang Note Added: 0048776
2015-12-07 11:45 Vico Liang Summary Extend Grid visualization to fill the whole view automalically => Extend Grid visualization to fill the whole view automatically
2015-12-07 11:56 kgv Note Added: 0048778
2015-12-07 12:28 Vico Liang Note Added: 0048783
2015-12-09 14:53 kgv Note Added: 0048909
2015-12-09 14:53 kgv Priority normal => low
2015-12-09 14:53 kgv Target Version 7.0.0 => 7.1.0
2015-12-09 14:53 kgv Note Edited: 0048909
2015-12-09 14:53 kgv Note Edited: 0048909
2015-12-12 13:48 Vico Liang Note Added: 0049069
2016-06-16 21:58 kgv Relationship added related to 0026154
2016-10-25 09:36 kgv Target Version 7.1.0 => 7.2.0
2016-11-30 07:21 Vico Liang Note Added: 0060876
2016-11-30 12:31 Timo Note Added: 0060893
2016-11-30 12:32 Timo File Added: 3D Builder.png
2016-11-30 12:37 Timo Note Edited: 0060893
2016-12-26 12:02 Vico Liang Note Added: 0062113
2017-01-30 11:21 kgv Relationship added related to 0028405
2017-07-10 11:36 kgv Summary Extend Grid visualization to fill the whole view automatically => Visualization - Extend Grid visualization to fill the whole view automatically
2017-07-20 11:33 kgv Target Version 7.2.0 => 7.4.0
2019-09-04 12:58 abv Target Version 7.4.0 => 7.5.0
2019-09-18 14:39 kgv Relationship added related to 0030979
2020-08-28 14:30 kgv Target Version 7.5.0 => 7.6.0
2021-08-24 14:13 kgv Target Version 7.6.0 => 7.7.0
2022-08-17 11:59 kgv Target Version 7.7.0 => 7.8.0
2022-10-19 15:47 smoskvin Assigned To kgv => vpozdyayev
2023-04-05 18:29 mzernova Relationship replaced duplicate of 0030979
2023-04-05 18:30 mzernova Relationship replaced related to 0030979
2023-08-01 15:06 dpasukhi Target Version 7.8.0 => Unscheduled