DiscussionsIssue archiveOCCT:Visualization

Archived issue #0027060

Visualization issue with TopoDS_Vertex after call of AIS_Shape::SetColor

CommunityOCCT:Visualizationclosed7 public notes

Search issues

Description

Since OCCT 6.9.0, I noticed a change in the visualization of a TopoDS_Vertex.

In older versions, the vertex is displayed as a cross. Since 6.9.0, the vertex is displayed as a small point only (one pixel size).

This only happens, if the method AIS_Shape::SetColor is called.

As a workaround, changing the shape color can be performed using AIS_InteractiveContext::SetColor(shape, color), which does not alter the visualization type.

Steps to reproduce

Can not be reproduced in DRAW.

Reproduce e.g. with Qt Tutorial:
 - Return a TopoDS_Vertex in MakeBottle (instead of the bottle shape)
 - Insert AISBottle->SetColor(Quantity_NOC_ALICEBLUE); in DocumentTut.cxx

Public activity

7 archived notes

Participants are labeled by their role within this record.

01Commenter 2
Branch [archived branch] has been created by Commenter 3.

[revision removed]


Detailed log of new commits:

Author: Commenter 3
Date: Wed Jan 6 21:29:32 2016 +0300

    0027060: Visualization issue with TopoDS_Vertex after call of AIS_Shape::SetColor()
02Commenter 3
Dear Martin,

could you please check if patch in branch CR27060 fixes your problem?
03Author
Dear kgv,

I checked the patch. This fixes the issue for me.

Thank you!
04Commenter 2
Branch [archived branch] has been updated forcibly by Commenter 3.

[revision removed]
05Commenter 3
Dear Commenter 1,

please test the patch. Test case is not needed.
06Commenter 6
Dear Commenter 1,

Branch CR27060 from occt git-repository (and master from products git-repository) was compiled on Linux, MacOS and Windows platforms and tested.
[revision removed]

Number of compiler warnings:
occt component:
   Linux: 0 (0 on master)
   Windows: 0 (0 on master)
   MasOS: 134 (134 on master)
products component:
   Linux: 37 (37 on master)
   Windows: 0 (0 on master)

Regressions/Differences:
Not detected

Testing cases:
Not needed

Testing on Linux:
Total MEMORY difference: 89315486 / 89878586 [-0.63%]
Total CPU difference: 19092.129999999957 / 19263.630000000092 [-0.89%]

Testing on Windows:
Total MEMORY difference: 57211609 / 57466837 [-0.44%]
Total CPU difference: 17814.690195998974 / 18535.555216899113 [-3.89%]
07Commenter 2
Branch [archived branch] has been deleted by Commenter 3.

[revision removed]