From f9d4ef6d5305ce5455a4e24272d110fe31f997f5 Mon Sep 17 00:00:00 2001 From: rnc Date: Fri, 2 Mar 2012 10:00:38 +0000 Subject: [PATCH] Modified test of wire closeness --- src/GEOMImpl/GEOMImpl_PrismDriver.cxx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/GEOMImpl/GEOMImpl_PrismDriver.cxx b/src/GEOMImpl/GEOMImpl_PrismDriver.cxx index 6387f7df9..f6c2b5a53 100644 --- a/src/GEOMImpl/GEOMImpl_PrismDriver.cxx +++ b/src/GEOMImpl/GEOMImpl_PrismDriver.cxx @@ -229,6 +229,11 @@ Standard_Integer GEOMImpl_PrismDriver::Execute(TFunction_Logbook& log) const Standard_ConstructionError::Raise("The input sketch is neither a wire nor an edge"); } + TopoDS_Vertex aV1, aV2; + TopExp::Vertices(aWire, aV1, aV2); + if ( !aV1.IsNull() && !aV2.IsNull() && aV1.IsSame(aV2) ) + aWire.Closed( true ); + if (!aWire.Closed()) Standard_ConstructionError::Raise("The wire has to be closed"); -- 2.39.2