View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0010064 | Open CASCADE | OCCT:Visualization | public | 2005-09-22 20:03 | 2013-04-29 15:24 |
Reporter | Assigned To | ||||
Priority | normal | Severity | major | ||
Status | closed | Resolution | duplicate | ||
OS | All | ||||
Target Version | 6.6.0 | Fixed in Version | 6.6.0 | ||
Summary | 0010064: Some information is not copied from Graphic3d_Aspectxxxx to graphic group | ||||
Description | The following code in Compute() method of an interactive object leads to graphic data loss (this problem has been detected while developing a custom interactive object for MTWZ company): ... Handle(Graphic3d_AspectFillArea3d) aFill = new Graphic3d_AspectFillArea3d(); aFill->SetTextureMapOn(); aFill->SetTextureMap( aTexture ); aCurrentGroup->SetPrimitivesAspect( aFill ); ... In this example, information about texture data is not copied properly into Graphic3d_Group. aFill variable is destroyed at the end of Compute() like any other local variable. Therefore, texture information is lost, and the texture is not displayed as expected. At the same time, other graphic attributes are copied properly (colors, etc.). A workaround for this problem is to store all newly created aspects in the object's drawer. However, this is rather tricky, and forgetting about this workaround results in programming errors which are very difficult to find. It is proposed to analyze all SetPrimitivesAspect() methods of Graphic3d_Group and implement correct copying of all data from the aspects. | ||||
Tags | No tags attached. | ||||
Test case number | |||||
Date Modified | Username | Field | Change |
---|---|---|---|
2011-08-02 11:24 | bugmaster | Category | OCCT:VIZ => OCCT:Visualization |
2012-04-19 20:53 |
|
Relationship added | related to 0023118 |
2012-04-20 15:32 |
|
Assigned To | bugmaster => san |
2012-04-20 15:33 |
|
Severity | trivial => major |
2012-04-20 15:33 |
|
Fixed in Version | EMPTY => |
2012-04-20 15:33 |
|
Description Updated | |
2012-04-20 15:33 |
|
Target Version | => 6.5.4 |
2012-10-21 10:58 |
|
Target Version | 6.5.4 => 6.6.0 |
2012-12-11 18:20 | kgv | Relationship replaced | duplicate of 0023118 |
2012-12-11 18:33 |
|
Status | new => closed |
2012-12-11 18:33 |
|
Resolution | open => duplicate |
2013-04-29 15:24 |
|
Fixed in Version | => 6.6.0 |