// Create wire from edges
GeomShapePtr aWire = GeomAlgoAPI_WireBuilder::wire(anEdges);
- if (!aWire.get()) {
- setError("Error: Result polyline is empty.");
- return;
- }
+ if (!aWire.get()) {
+ setError("Error: Result polyline is empty.");
+ return;
+ }
// Check the wire.
if (GeomAlgoAPI_WireBuilder::isSelfIntersected(aWire)) {