mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-02-27 13:45:38 +05:00
TC5.1.4: filter for "Curve Construction" dialog box
This commit is contained in:
parent
7e21a68ba0
commit
bb8f6db554
@ -342,6 +342,7 @@ void BasicGUI_CurveDlg::SelectionIntoArgument()
|
||||
}
|
||||
}
|
||||
else { // aMap.Extent() == 0
|
||||
if ( aShape.ShapeType() == TopAbs_VERTEX ) {
|
||||
int pos = isPointInList( myOrderedSel, aSelectedObject );
|
||||
if ( pos == -1 )
|
||||
myOrderedSel.push_back( aSelectedObject );
|
||||
@ -350,6 +351,7 @@ void BasicGUI_CurveDlg::SelectionIntoArgument()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
myPoints->length( aList.size() );
|
||||
|
||||
|
@ -80,6 +80,11 @@ Standard_Integer GEOMImpl_PolylineDriver::Execute(TFunction_Logbook& log) const
|
||||
{
|
||||
Handle(GEOM_Function) aRefPoint = aCI.GetPoint(ind);
|
||||
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) {
|
||||
aMakePoly.Add(TopoDS::Vertex(aShapePnt));
|
||||
// if (!aMakePoly.Added()) return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user