Skip to content

Commit

Permalink
Sketcher: BSpline SnellsLaw - unsupported
Browse files Browse the repository at this point in the history
  • Loading branch information
abdullahtahiriyo committed Jan 15, 2017
1 parent f935f33 commit 2e789dc
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/Mod/Sketcher/Gui/CommandConstraints.cpp
Expand Up @@ -3517,6 +3517,15 @@ void CmdSketcherConstrainSnellsLaw::activated(int iMsg)
strError = QObject::tr("Incompatible geometry is selected!", dmbg);
throw(Base::Exception(""));
};

const Part::Geometry *geo = Obj->getGeometry(GeoId3);

if( geo && geo->getTypeId() == Part::GeomBSplineCurve::getClassTypeId() ){
// unsupported until normal to BSpline at any point implemented.
QMessageBox::warning(Gui::getMainWindow(), QObject::tr("Wrong selection"),
QObject::tr("SnellsLaw on BSpline edge currently unsupported."));
return;
}

double n2divn1=0;

Expand Down

0 comments on commit 2e789dc

Please sign in to comment.