-boost::shared_ptr<GeomAPI_AISObject> SketchPlugin_Feature::prepareAISShape(
- boost::shared_ptr<GeomAPI_AISObject> thePrevious)
-{
- boost::shared_ptr<GeomAPI_Shape> aPreview = preview();
- boost::shared_ptr<GeomAPI_AISObject> aResult = thePrevious;
- if (!aResult)
- aResult = boost::shared_ptr<GeomAPI_AISObject>(new GeomAPI_AISObject());
- aResult->createShape(aPreview);
- return aResult;
-}