mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-02-27 17:15:37 +05:00
TC5.1.4: filter for "Curve Construction" dialog box
This commit is contained in:
parent
7e21a68ba0
commit
bb8f6db554
@ -342,10 +342,12 @@ void BasicGUI_CurveDlg::SelectionIntoArgument()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else { // aMap.Extent() == 0
|
else { // aMap.Extent() == 0
|
||||||
int pos = isPointInList( myOrderedSel, aSelectedObject );
|
if ( aShape.ShapeType() == TopAbs_VERTEX ) {
|
||||||
if ( pos == -1 )
|
int pos = isPointInList( myOrderedSel, aSelectedObject );
|
||||||
myOrderedSel.push_back( aSelectedObject );
|
if ( pos == -1 )
|
||||||
aList.push_back( aSelectedObject );
|
myOrderedSel.push_back( aSelectedObject );
|
||||||
|
aList.push_back( aSelectedObject );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -80,6 +80,11 @@ Standard_Integer GEOMImpl_PolylineDriver::Execute(TFunction_Logbook& log) const
|
|||||||
{
|
{
|
||||||
Handle(GEOM_Function) aRefPoint = aCI.GetPoint(ind);
|
Handle(GEOM_Function) aRefPoint = aCI.GetPoint(ind);
|
||||||
TopoDS_Shape aShapePnt = aRefPoint->GetValue();
|
TopoDS_Shape aShapePnt = aRefPoint->GetValue();
|
||||||
|
if (aShapePnt.ShapeType() != TopAbs_VERTEX) {
|
||||||
|
Standard_TypeMismatch::Raise
|
||||||
|
("Polyline creation aborted : arguments are not a vertexes");
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
if (aShapePnt.ShapeType() == TopAbs_VERTEX) {
|
if (aShapePnt.ShapeType() == TopAbs_VERTEX) {
|
||||||
aMakePoly.Add(TopoDS::Vertex(aShapePnt));
|
aMakePoly.Add(TopoDS::Vertex(aShapePnt));
|
||||||
// if (!aMakePoly.Added()) return 0;
|
// if (!aMakePoly.Added()) return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user