mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-01-22 11:50:34 +05:00
Modified test of wire closeness
This commit is contained in:
parent
5c5579d6c8
commit
f9d4ef6d53
@ -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");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user