View Issue Details

IDProjectCategoryView StatusLast Update
0030566CommunityOCCT:Visualizationpublic2019-03-14 10:58
ReporterVico Liang Assigned Tobugmaster  
PrioritynormalSeverityblock 
Status closedResolutionno change required 
PlatformAndroidOSAndoird 
Product Version7.4.0 
Target Version7.4.0 
Summary0030566: Visualization - Prs3d_PointAspect never take affect on Android.
DescriptionIt 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.
TagsNo tags attached.
Test case number

Relationships

child of 0029570 closedapn Open CASCADE Visualization, Graphic3d_Aspect - merge Graphic3d_Group aspects 

Activities

kgv

2019-03-13 09:42

developer   ~0082893

Please provide a complete code computing presentation group, and comment if issue is specific to Android or only tested on Android platform.

Vico Liang

2019-03-13 10:49

developer   ~0082898

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 .

kgv

2019-03-13 11:02

developer   ~0082900

Yes, take a look onto porting instructions:
https://dev.opencascade.org/doc/overview/html/occt_dev_guides__upgrade.html#upgrade_740_aspects

Vico Liang

2019-03-13 11:09

developer   ~0082901

Dear kgv, Thank you for the guide. Please close this.

Issue History

Date Modified Username Field Change
2019-03-13 08:59 Vico Liang New Issue
2019-03-13 08:59 Vico Liang Assigned To => kgv
2019-03-13 09:00 Vico Liang OS => Andoird
2019-03-13 09:00 Vico Liang Platform => Android
2019-03-13 09:00 Vico Liang Product Version => 7.4.0
2019-03-13 09:42 kgv Note Added: 0082893
2019-03-13 09:42 kgv Assigned To kgv => Vico Liang
2019-03-13 09:42 kgv Status new => feedback
2019-03-13 10:49 Vico Liang Note Added: 0082898
2019-03-13 11:02 kgv Note Added: 0082900
2019-03-13 11:02 kgv Relationship added child of 0029570
2019-03-13 11:02 kgv Resolution open => no change required
2019-03-13 11:09 Vico Liang Note Added: 0082901
2019-03-13 11:12 kgv Assigned To Vico Liang => bugmaster
2019-03-14 10:58 bugmaster Status feedback => closed