I am running into some unexpected results when using wires.
I now think the root of the problem is that apparently the faces of my solid objects (such as eg a box created with makeBox) consist of a wire that is not closed.
Code: Select all
>>> b=Part.makeBox(2,3,4)
>>> b.Faces[1].Wires
[<Wire object at 0x760f8f0>]
>>> b.Faces[1].Wires[0].Vertexes
[<Vertex object at 0x5b7d8a0>, <Vertex object at 0x1e45190>, <Vertex object at 0x6b9b670>, <Vertex object at 0x5923c80>]
>>> b.Faces[1].Wires[0].Vertexes[0].Point
Vector (2.0, 0.0, 4.0)
>>> b.Faces[1].Wires[0].Vertexes[1].Point
Vector (2.0, 0.0, 0.0)
>>> b.Faces[1].Wires[0].Vertexes[2].Point
Vector (2.0, 3.0, 4.0)
>>> b.Faces[1].Wires[0].Vertexes[3].Point
Vector (2.0, 3.0, 0.0)
>>> b.Faces[1].Wires[0].isClosed()
False
>>> b.Faces[1].isValid()
True
OS: Linux Mint 15 Olivia
Platform: 64-bit
Version: 0.14.2632 (Git)
Branch: master
Hash: 939bc92acb02662901e9dee4b5ba5d2fddead360
Python version: 2.7.4
Qt version: 4.8.4
Coin version: 3.1.3
SoQt version: 1.5.0
OCC version: 6.5.0