MantisBT
Mantis Bug Tracker Workflow

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0030566Community[OCCT] OCCT:Visualizationpublic2019-03-13 08:592019-03-14 10:58
ReporterVico Liang 
Assigned Tobugmaster 
PrioritynormalSeverityblock 
StatusclosedResolutionno change required 
PlatformAndroidOSAndoirdOS Version
Product Version[OCCT] 7.4.0 
Target Version[OCCT] 7.4.0Fixed in Version 
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
Attached Files

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

-  Notes
(0082893)
kgv (developer)
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 (developer)
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 (developer)
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 (developer)
2019-03-13 11:09

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


Copyright © 2000 - 2019 MantisBT Team
Powered by Mantis Bugtracker