MantisBT - Community
View Issue Details
0007928Community[OCCT] OCCT:Visualizationpublic2005-01-31 07:592014-11-10 12:18
san 
bugmaster 
normalfeature 
closedfixed 
All
 
[OCCT] 6.8.0[OCCT] 6.8.0 
0007928: Forum 7411: Improved display lists management for the trihedron display
This improvement has been reported by Open Source community user Sangsu Lee on
the Forum, see thread 7411:

http://www.opencascade.org/org/forum/thread_7411 [^]

The idea is not to re-create display lists for drawing trihedron arrows each
time a 3D view is updated.
Instead, a map-like behavior could be implemented (unfortunately, available
object-oriented map implementations cannot be re-used in C code of OpenGl
package), with an OpenGL rendering context (GLRC) ID being a key, and a
structure containing current geometrical trihedron parameters and current
display list ID(s) being a data.

When some of trihedron's geometrical parameters changes for the given GLRC,
corresponding display lists could be replaced with new ones, and old ones
deleted.

During view updates, existing display lists could be re-used, with help of
their IDs taken from the map.

On 3D view destruction, it is necessary to take care of removing trihedron data
for relevant GLRC.

Original posting:

-----------------------
Sangsu Lee:

To OCC developers,

I think this code can be improved.
If we make the display lists only when it is made at first or user redefine the
triedron, and just call the lists when redrawing, and destroy it in the
v3d_viewer's destructor, it would be more fast and efficient.

Currently, it is always recreated and deleted again and it is not so efficient.
No tags attached.
related to 0007726closed  Community Forum 7411: Memory leak with the trihedron display 
related to 0024291closed apn Open CASCADE Visualization - move Z-buffer trihedron presentation from TKOpenGl to TKV3d 
related to 0023484closed bugmaster Open CASCADE Visualization, TKOpenGl - primitive arrays to become the only way to render geometry 
related to 0025162closed bugmaster Open CASCADE Visualization, TKOpenGl - drop GLU library dependency 
Issue History
2005-03-10 09:13bugmasterAssigned Tobugmaster => san
2005-03-10 09:13bugmasterStatusnew => assigned
2005-03-21 10:23sanAssigned Tosan => skt
2010-07-01 11:39bugmastergroupset1 => 4096
2010-07-01 11:39bugmasterCustomer => Community
2011-04-07 18:10bugmasterAssigned Toskt => apl
2011-08-02 11:24bugmasterCategoryOCCT:VIZ => OCCT:Visualization
2012-02-06 08:25abvRelationship addedrelated to 0007726
2012-10-23 10:32kgvRelationship addedrelated to 0023484
2012-10-23 10:47abvFixed in VersionEMPTY =>
2012-10-23 10:47abvTarget Version => 6.6.0
2012-10-23 10:47abvDescription Updatedbug_revision_view_page.php?rev_id=4373#r4373
2013-02-26 18:44sanTarget Version6.6.0 => 6.7.0
2013-11-06 14:51kgvTarget Version6.7.0 => 6.7.1
2014-02-05 14:52kgvRelationship addedrelated to 0024291
2014-04-04 18:16abvTarget Version6.7.1 => 6.8.0
2014-09-24 15:05kgvRelationship addedrelated to 0025162
2014-10-29 13:59kgvTarget Version6.8.0 => 7.1.0
2014-11-07 15:09kgvNote Added: 0034159
2014-11-07 15:09kgvAssigned Toapl => bugmaster
2014-11-07 15:09kgvStatusassigned => feedback
2014-11-07 15:09kgvResolutionopen => fixed
2014-11-07 15:09kgvFixed in Version => 6.8.0
2014-11-07 15:09kgvTarget Version7.1.0 => 6.8.0
2014-11-07 15:10kgvNote Edited: 0034159bug_revision_view_page.php?bugnote_id=34159#r8572
2014-11-10 12:18bugmasterStatusfeedback => closed

Notes
(0034159)
kgv   
2014-11-07 15:09   
(edited on: 2014-11-07 15:10)
Dear bugmaster,

please close the issue - original problem in description does not exist anymore.
Since 0024381 trihedron uses OpenGl_PrimitiveArray for rendering primitives, so resources are now re-used without display lists.