View Issue Details

IDProjectCategoryView StatusLast Update
0010064Open CASCADEOCCT:Visualizationpublic2013-04-29 15:24
ReportersanAssigned Tosan 
PrioritynormalSeveritymajor 
Status closedResolutionduplicate 
OSAll 
Target Version6.6.0Fixed in Version6.6.0 
Summary0010064: Some information is not copied from Graphic3d_Aspectxxxx to graphic group
DescriptionThe 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.
TagsNo tags attached.
Test case number

Relationships

duplicate of 0023118 closedbugmaster Incomplete face aspect data returned by Graphic3d_Group::GroupPrimitivesAspect() 

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2011-08-02 11:24 bugmaster Category OCCT:VIZ => OCCT:Visualization
2012-04-19 20:53 san Relationship added related to 0023118
2012-04-20 15:32 san Assigned To bugmaster => san
2012-04-20 15:33 san Severity trivial => major
2012-04-20 15:33 san Fixed in Version EMPTY =>
2012-04-20 15:33 san Description Updated
2012-04-20 15:33 san Target Version => 6.5.4
2012-10-21 10:58 abv Target Version 6.5.4 => 6.6.0
2012-12-11 18:20 kgv Relationship replaced duplicate of 0023118
2012-12-11 18:33 abv Status new => closed
2012-12-11 18:33 abv Resolution open => duplicate
2013-04-29 15:24 aiv Fixed in Version => 6.6.0