MantisBT - Community
View Issue Details
0030566Community[OCCT] OCCT:Visualizationpublic2019-03-13 08:592019-03-14 10:58
Vico Liang 
bugmaster 
normalblock 
closedno change required 
AndroidAndoird
[OCCT] 7.4.0 
[OCCT] 7.4.0 
0030566: Visualization - Prs3d_PointAspect never take affect on Android.
It must be a bug introduced latest. I updated the newest code from git today. Before updating, setting of Marker aspect works as expected; after updating, it will take no effect.

I try to do it from default drawer:
const Handle(Prs3d_Drawer)& aDefaultDrawer = aContext->DefaultDrawer();
Handle(Prs3d_PointAspect) aMarkAspect = new Prs3d_PointAspect(Aspect_TOM_O, Quantity_NOC_RED, 30.0);
    aDefaultDrawer->SetPointAspect(aMarkAspect);

or do it from Graphic Group:
aGroup->SetGroupPrimitivesAspect(myPointAspect->Aspect());

Two options neither works.
No tags attached.
child of 0029570closed apn Open CASCADE Visualization, Graphic3d_Aspect - merge Graphic3d_Group aspects 
Issue History
2019-03-13 08:59Vico LiangNew Issue
2019-03-13 08:59Vico LiangAssigned To => kgv
2019-03-13 09:00Vico LiangOS => Andoird
2019-03-13 09:00Vico LiangPlatform => Android
2019-03-13 09:00Vico LiangProduct Version => 7.4.0
2019-03-13 09:42kgvNote Added: 0082893
2019-03-13 09:42kgvAssigned Tokgv => Vico Liang
2019-03-13 09:42kgvStatusnew => feedback
2019-03-13 10:49Vico LiangNote Added: 0082898
2019-03-13 11:02kgvNote Added: 0082900
2019-03-13 11:02kgvRelationship addedchild of 0029570
2019-03-13 11:02kgvResolutionopen => no change required
2019-03-13 11:09Vico LiangNote Added: 0082901
2019-03-13 11:12kgvAssigned ToVico Liang => bugmaster
2019-03-14 10:58bugmasterStatusfeedback => closed

Notes
(0082893)
kgv   
2019-03-13 09:42   
Please provide a complete code computing presentation group, and comment if issue is specific to Android or only tested on Android platform.
(0082898)
Vico Liang   
2019-03-13 10:49   
Dear kgv,

The code snippet as following:
    aGroup->SetGroupPrimitivesAspect(myPointAspect->Aspect());
    aGroup->AddPrimitiveArray(myArrayPoints, Standard_False);

    aGroup->SetGroupPrimitivesAspect(myLineAspect->Aspect());
    aGroup->AddPrimitiveArray(myArraySegments, Standard_False);

Above code snippet will reproduce the issue. but if i change the second SetGroupPrimitivesAspect to SetPrimitivesAspect, it works. After some deep digging on OCCT git, i found that it a desired behaviour since your latest merge Graphic3d_Group aspects 0029570 .
(0082900)
kgv   
2019-03-13 11:02   
Yes, take a look onto porting instructions:
https://dev.opencascade.org/doc/overview/html/occt_dev_guides__upgrade.html#upgrade_740_aspects [^]
(0082901)
Vico Liang   
2019-03-13 11:09   
Dear kgv, Thank you for the guide. Please close this.