If a convex SFML shape covers a very small area, the edges are drawn outside the shape. I don't know whether this is an OpenGL limitation or a bug internal to SFML.
Minimal and complete example:
#include <SFML/Graphics.hpp>
int main()
{
sf::RenderWindow window(sf::VideoMode(640, 480), "SFML Shape Bug");
sf::ConvexShape shape(3);
shape.setPoint(0, sf::Vector2f(0.f, 0.f));
shape.setPoint(1, sf::Vector2f(0.1f, 100.f));
shape.setPoint(2, sf::Vector2f(0.f, 200.f));
shape.setPosition(100.f, 100.f);
shape.setFillColor(sf::Color::Transparent);
shape.setOutlineThickness(1.f);
shape.setOutlineColor(sf::Color::Yellow);
while (window.isOpen())
{
sf::Event event;
while (window.pollEvent(event))
{
if (event.type == sf::Event::KeyPressed || event.type == sf::Event::Closed)
return 0;
}
window.clear();
window.draw(shape);
window.display();
}
}