X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSketchPlugin%2FSketchPlugin_Feature.cpp;h=6e0f7111d1c29125622aae6885db76c5e1003b5e;hb=da48589c09ee2677d988a1eec0e3edcca3d4e70f;hp=42c5956b85da8181c408d3b2659c72a7bf5b2830;hpb=4783f146b71a48c651523fcf0e12367bcf3d1fa8;p=modules%2Fshaper.git diff --git a/src/SketchPlugin/SketchPlugin_Feature.cpp b/src/SketchPlugin/SketchPlugin_Feature.cpp index 42c5956b8..6e0f7111d 100644 --- a/src/SketchPlugin/SketchPlugin_Feature.cpp +++ b/src/SketchPlugin/SketchPlugin_Feature.cpp @@ -1,3 +1,5 @@ +// Copyright (C) 2014-20xx CEA/DEN, EDF R&D --> + #include "SketchPlugin_Feature.h" #include "SketchPlugin_Sketch.h" #include @@ -29,19 +31,3 @@ SketchPlugin_Sketch* SketchPlugin_Feature::sketch() return mySketch; } -AISObjectPtr SketchPlugin_Feature::simpleAISObject(std::shared_ptr theRes, - AISObjectPtr thePrevious) -{ - std::shared_ptr aConstr = std::dynamic_pointer_cast< - ModelAPI_ResultConstruction>(theRes); - - std::shared_ptr aPreview; - if (aConstr) - aPreview = aConstr->shape(); - - AISObjectPtr aResult = thePrevious; - if (!aResult) - aResult = AISObjectPtr(new GeomAPI_AISObject()); - aResult->createShape(aPreview); - return aResult; -}