- /// Returns true of the feature is created basing on the external shape of not-this-sketch object
- inline bool isExternal() const
- {
- AttributeSelectionPtr aAttr = data()->selection(EXTERNAL_ID());
- if (aAttr)
- return aAttr->context().get() != NULL;
- return false;
- }
-
- /// Customize presentation of the feature
- virtual void customisePresentation(AISObjectPtr thePrs)
- {
- // if this is an edge
- if (thePrs->getShapeType() == 6) {
- thePrs->setWidth(3);
- if (isExternal())
- thePrs->setColor(0,255,0);
- }
- // if this is a vertex
- //else if (thePrs->getShapeType() == 7)
- // thePrs->setPointMarker(6, 2.);
- }
-