MantisBT - Community
View Issue Details
0023186Community[OCCT] OCCT:Visualizationpublic2012-06-01 13:052012-11-16 13:16
ihaddadene 
san 
normalminor 
closedfixed 
Microsoft WindowsWindows Seven7 pro SP1
[OCCT] 6.5.3 
[OCCT] 6.5.4[OCCT] 6.5.4 
chl 934 C0
0023186: Unable to display Graphic3d_ArrayOfPoints after migrating from OCCT 6.5.2
After migrating our project from OCCT 6.5.2 to 6.5.3, it was impossible to display a Graphic3d_ArrayOfPoints in an "AIS_InteractiveObject" derived class.

I tried with Enabling/Disabling VBO.

It seems that the MIN/MAX are evaluated since the view fit correctly but to an "invisible" object.
void AIS_MyIODerivedObject::Compute(const Handle(PrsMgr_PresentationManager3d)& aPresentationManager,
const Handle(Prs3d_Presentation)& aPresentation,
const Standard_Integer aMode)
{
    // create an array
    Handle (Graphic3d_ArrayOfPoints) anArray = new Graphic3d_ArrayOfPoints (8);

    // add vertices to the array
    anArray->AddVertex (10.0, 10.0, 10.0);
    anArray->AddVertex (10.0, 10.0, 0.0);
    anArray->AddVertex (10.0, 0.0, 10.0);
    anArray->AddVertex (10.0, 0.0, 0.0);
    anArray->AddVertex ( 0.0, 10.0, 10.0);
    anArray->AddVertex ( 0.0, 10.0, 0.0);
    anArray->AddVertex ( 0.0, 0.0, 10.0);
    anArray->AddVertex ( 0.0, 0.0, 0.0);

    // add the array to the structure
    Handle (Graphic3d_Group) aGroup = Prs3d_Root::CurrentGroup (aPresentation);
    aGroup->BeginPrimitives ();
    aGroup->AddPrimitiveArray (anArray);
    aGroup->EndPrimitives ();
}

In DRAW:
vdrawparray a points 0 v 0 0 0 v 0 0 10 v 0 10 10 v 0 10 0
Mistake in OpenGl_PrimitiveArray class resulted from equal values of GL_NONE and GL_POINTS constants corrected.
No tags attached.
? C0 (1,389) 2012-06-21 17:55
https://tracker.dev.opencascade.org/
Issue History
2012-06-01 13:05ihaddadeneNew Issue
2012-06-01 13:05ihaddadeneAssigned To => san
2012-06-19 21:38sanStatusnew => assigned
2012-06-19 21:41sanTarget Version => 6.5.4
2012-06-19 21:41sanSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=4003#r4003
2012-06-19 21:41sanAdditional Information Updatedbug_revision_view_page.php?rev_id=4005#r4005
2012-06-19 21:48sanNote Added: 0020737
2012-06-19 21:48sanAssigned Tosan => kgv
2012-06-19 21:48sanStatusassigned => resolved
2012-06-19 21:49sanSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=4006#r4006
2012-06-19 22:00kgvNote Added: 0020738
2012-06-19 22:00kgvAssigned Tokgv => bugmaster
2012-06-19 22:00kgvStatusresolved => reviewed
2012-06-20 11:44sanNote Added: 0020742
2012-06-20 14:39mkvAssigned Tobugmaster => aan
2012-06-20 17:40aanTest case number => chl 934 C0
2012-06-20 17:41aanFile Added: C0
2012-06-20 20:11aanFile Deleted: C0
2012-06-20 20:11aanFile Added: C0
2012-06-21 16:44aanNote Added: 0020748
2012-06-21 16:46aanStatusreviewed => tested
2012-06-21 17:16aanFile Deleted: C0
2012-06-21 17:16aanFile Added: C0
2012-06-21 17:55aanFile Deleted: C0
2012-06-21 17:55aanFile Added: C0
2012-06-21 17:55aanFile Deleted: C0
2012-06-21 17:55aanFile Added: C0
2012-06-25 20:05sanChangeset attached => occt master 1d03e66d
2012-06-25 20:05sanAssigned Toaan => san
2012-06-25 20:05sanStatustested => verified
2012-06-25 20:05sanResolutionopen => fixed
2012-11-16 13:15bugmasterFixed in Version => 6.5.4
2012-11-16 13:16bugmasterStatusverified => closed

Notes
(0020737)
san   
2012-06-19 21:48   
Branch CR23186 ready for reviewing.
(0020738)
kgv   
2012-06-19 22:00   
Patch is OK, though I prefer declarations of constants related to class definition like this:

class OpenGl_PrimitiveArray : public OpenGl_Element
{
public:

  static const GLint DRAW_MODE_UNDEFINED = -1;

...
};
(0020742)
san   
2012-06-20 11:44   
Note for testers: branch CR23186 has been updated once more to reflect the reviewer's remark.
(0020748)
aan   
2012-06-21 16:44   
Dear BugMaster,
The workbenches
KAS:dev:aan-23186-occt (GIT branch CR23186)
KAS:dev:aan-23186-products (GIT master)
were compiled on Linux platform and tested.

Regression:
Not detected

Improvements:
Not detected

Testing case:
Test case for this bug is chl 934 C0.
It is OK in this branch.
It is FAILED in current master (KAS:dev:products-20120615-opt).


See results in /QADisk/occttests/results/KAS/dev/aan-23186-products_20062012/lin
See reference results in /QADisk/occttests/results/KAS/dev/products-20120615-opt_15062012/lin
See test cases in /QADisk/occttests/tests/ED
N.B. In order to launch testing case you can make use the following instructions
http://doc/doku.php?id=occt:certification [^]