if (!anAttrFeature)
return aValid;
+ // B-splines are not supported by the Split yet
+ if (anAttrFeature->getKind() == SketchPlugin_BSpline::ID() ||
+ anAttrFeature->getKind() == SketchPlugin_BSplinePeriodic::ID()) {
+ theError = "Not supported";
+ return false;
+ }
+
std::set<ResultPtr> anEdgeShapes;
ModelGeomAlgo_Shape::shapesOfType(anAttrFeature, GeomAPI_Shape::EDGE, anEdgeShapes);
if (anEdgeShapes.empty() || anEdgeShapes.size() > 1 /*there case has not existed yet*/)
if (!aSketchFeature.get() || aSketchFeature->isCopy())
return aValid;
+ // B-splines are not supported by the Trim yet
+ if (aBaseFeature->getKind() == SketchPlugin_BSpline::ID() ||
+ aBaseFeature->getKind() == SketchPlugin_BSplinePeriodic::ID()) {
+ theError = "Not supported";
+ return false;
+ }
+
// point on feature
AttributePoint2DPtr aPoint = std::dynamic_pointer_cast<GeomDataAPI_Point2D>(
aTrimFeature->data()->attribute(SketchPlugin_Trim::PREVIEW_POINT()));
<source>Unknown error.</source>
<translation>Erreur inconnue.</translation>
</message>
+ <message>
+ <source>Not supported</source>
+ <translation>Non supporté</translation>
+ </message>
</context>
<context>
<name>SketchSplit:ConstraintEntityA:SketchPlugin_SplitValidator</name>
<source>Unknown error.</source>
<translation>Erreur inconnue.</translation>
</message>
+ <message>
+ <source>Not supported</source>
+ <translation>Non supporté</translation>
+ </message>
</context>
<context>