return mySketch;
}
-AISObjectPtr SketchPlugin_Feature::simpleAISObject(std::shared_ptr<ModelAPI_Result> theRes,
- AISObjectPtr thePrevious)
-{
- std::shared_ptr<ModelAPI_ResultConstruction> aConstr = std::dynamic_pointer_cast<
- ModelAPI_ResultConstruction>(theRes);
-
- std::shared_ptr<GeomAPI_Shape> aPreview;
- if (aConstr)
- aPreview = aConstr->shape();
- AISObjectPtr aResult = thePrevious;
- if (!aResult)
- aResult = AISObjectPtr(new GeomAPI_AISObject());
- aResult->createShape(aPreview);
- return aResult;
-}
+void SketchPlugin_Feature::customisePresentation(AISObjectPtr thePrs)
+{
+ // if this is an edge
+ if (thePrs->getShapeType() == 6)
+ thePrs->setWidth(3);
+ // if this is a vertex
+ else if (thePrs->getShapeType() == 7)
+ thePrs->setPointMarker(6, 2.);
+}
\ No newline at end of file