Faces wires are open?
Forum rules
Be nice to others! Read the FreeCAD code of conduct!
Be nice to others! Read the FreeCAD code of conduct!
Faces wires are open?
It looks like sometimes wires around faces are open... For example make a parametric part cube, and look at each of its wires, isClosed() returns false. The same goes for some other objects such as booleans. If you make a face specifically out of a closed wire then its wire is closed. Werner if you have a second, can you check? I'm not sure if its something we have control upon, or an OCC bug...
Re: Faces wires are open?
I have no idea why this happens. For me it seems to be a OCC bug. For me it happens when creating a parametric and non-parametric box. Is it the same for your?
The funny thing is when I doimport Part
box=Part.makeBox(10,10,10)
for i in box.Wires:
print i.isClosed()
Code: Select all
w=Part.Wire(i.Edges)
w.isClosed() # returns true
Re: Faces wires are open?
Yes, that's very curious... It seems the only way to obtain a closed wire around a face is to specifically make it from a closed wire
I'll have a look if this is the case too in pythonOCC, so we know its in OCC itself...
I'll have a look if this is the case too in pythonOCC, so we know its in OCC itself...
Re: Faces wires are open?
This is a very simple example which also says that the wires are open.
So, it must be an OCC thing.
Code: Select all
BRepPrimAPI_MakeBox mkBox(10,10,10);
TopoDS_Shape box = mkBox.Shape();
TopExp_Explorer xp(box,TopAbs_WIRE);
while (xp.More())
{
Standard_Boolean closed = xp.Current().Closed();
closed = BRep_Tool::IsClosed(xp.Current());
xp.Next();
}
Re: Faces wires are open?
Yes it gives the same result in pythonOCC too...
There is no bug tracker in OCC but I'll post something on the forum...
There is no bug tracker in OCC but I'll post something on the forum...