View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0028839 | Community | OCCT:Application Framework | public | 2017-06-13 09:31 | 2017-07-11 10:59 |
Reporter | Vico Liang | Assigned To | bugmaster | ||
Priority | normal | Severity | minor | ||
Status | closed | Resolution | no change required | ||
Product Version | 7.1.0 | ||||
Target Version | 7.2.0 | ||||
Summary | 0028839: TPrsStd_AISPresentation - Change material will change the transparency | ||||
Description | Steps to reproduce the issue: 1. AIS_Shape is bound to TPrsStd_AISPresentation, 2. Call TPrsStd_AISPresentation::SetMaterial(Graphic3d_NOM_TRANSPARENT) 3. Call TPrsStd_AISPresentation::Display(), Object will be transparent 4. Call TPrsStd_AISPresentation::Erase() 5. Call TPrsStd_AISPresentation::Display(), Object will be opaque | ||||
Tags | No tags attached. | ||||
Test case number | |||||
|
TPrsStd_AISPresentation is not a normal AIS presentable object, it is not intended to be modified in this way. All properties should be defined within OCAF document instead. |
|
But why the object status flip between transparent and opaque when calling Display and Erase? |
|
Do you have this issue in OCCT 7.1.0 or on current master (or both)? |
|
The problem is caused by inconsistency of transparency property of below two casses: Standard_Real AIS_Shape::Transparency() const void AIS_Shape::SetTransparency (const Standard_Real theValue) Standard_Real AIS_InteractiveObject::Transparency() const void AIS_InteractiveObject::SetTransparency(const Standard_Real aValue) Standard_Boolean AIS_InteractiveObject::IsTransparent() const { return myTransparency > 0.005; } |
|
I'm using OCCT 7.1.0 |
|
The root problem occurs in method: Standard_Boolean AIS_InteractiveObject::IsTransparent() const { return myTransparency > 0.005; } This method don't consider the transparency changes when material has been changed. |
|
Please check on current master - I can not reproduce the issue with the given code. |
|
Dear kgv, I checked the source code, the code have been changed about transparency implementation in OCCT master. Though i don't get time to build the current master to run test, i believe this issue is fixed after code analysis. |
|
Dear bugmaster, please close the issue. |
Date Modified | Username | Field | Change |
---|---|---|---|
2017-06-13 09:31 | Vico Liang | New Issue | |
2017-06-13 09:31 | Vico Liang | Assigned To | => kgv |
2017-06-13 09:33 | Vico Liang | Product Version | => 7.1.0 |
2017-06-13 09:33 | kgv | Assigned To | kgv => mpv |
2017-06-13 09:33 | kgv | Category | OCCT:Visualization => OCCT:Application Framework |
2017-06-13 09:35 | kgv | Note Added: 0067294 | |
2017-06-13 09:35 | kgv | Note Edited: 0067294 | |
2017-06-13 09:47 | Vico Liang | Note Added: 0067295 | |
2017-06-13 09:51 | kgv | Note Added: 0067296 | |
2017-06-13 09:53 | Vico Liang | Note Added: 0067297 | |
2017-06-13 09:54 | Vico Liang | Note Added: 0067298 | |
2017-06-13 09:59 | Vico Liang | Note Added: 0067299 | |
2017-06-13 10:09 | kgv | Note Added: 0067300 | |
2017-06-13 10:09 | kgv | Assigned To | mpv => Vico Liang |
2017-06-13 10:09 | kgv | Status | new => feedback |
2017-06-13 10:27 | Vico Liang | Note Added: 0067302 | |
2017-07-10 11:31 | kgv | Note Added: 0068149 | |
2017-07-10 11:31 | kgv | Assigned To | Vico Liang => bugmaster |
2017-07-10 11:31 | kgv | Resolution | open => no change required |
2017-07-11 10:59 | bugmaster | Status | feedback => closed |