]> SALOME platform Git repositories - modules/shaper.git/commit - src/PartSet/PartSet_WidgetShapeSelector.cpp
Salome HOME
Issue #351 constraint is not applied on preselected segments
authornds <natalia.donis@opencascade.com>
Tue, 20 Jan 2015 14:54:42 +0000 (17:54 +0300)
committernds <natalia.donis@opencascade.com>
Tue, 20 Jan 2015 14:54:42 +0000 (17:54 +0300)
commitd9f1514edde38ead795c3f657fa522e9184e619c
tree2db06257a8e395d7ac6b32564187e8723f5ba487
parentc83711b84608b7bcc43251790268b4e3d268e328
Issue #351 constraint is not applied on preselected segments

The reason: lost selection of the circle center.
The decision: do not perform redisplay the AIS presentation in the AIS_InteractiveContext(displayer) if the shapes are equal. Here the GeomAPI realisation is necessary. The TopoDS_Shape realisation of the isEqual method is not enough because different TShapes instances are created and isEqual returns false.
A correction in the widget shape selector to avoid the distance presentation update by set an object(before set an attribute). In the previous version, the distance was jumped by selecting two points on lines. The reason is the distance calculation between point-object by setObject and after that point-point by setAttr
src/GeomAlgoAPI/GeomAlgoAPI_PointBuilder.cpp
src/PartSet/PartSet_WidgetShapeSelector.cpp