I have a script that used to work before I updated to the latest version available on the Fedora repos. This script generates a rather complex part, and I run into errors when trying to use the makePipeShell function (I didn't have those problems before).
Below is the type of error I get:
The following script is enough to re-create this error:Traceback (most recent call last):
File "<input>", line 1, in <module>
File "/home/jeanbaptiste/bu/Senior Design Project/JB_proto/test.py", line 13, in <module>
wedge = W.makePipeShell([triangle],True,True)
Part.OCCError: BRep_Tool:: TopoDS_Vertex hasn't gp_Pnt
Code: Select all
from FreeCAD import Base
from FreeCAD import Vector as vec
import Part
trpts = [vec(0,0,0),vec(20.0,0,0),vec(0,0,10.0), vec(0,0,0)]
triangle= Part.makePolygon(trpts)
line = [Part.Line(vec(0,0,0), vec(0,30.0,0))]
S = Part.Shape(line)
W = Part.Wire(S.Edges)
wedge = W.makePipeShell([triangle],True,True)
The new auto-generated documentation doesn't give a lot of useful information:
https://www.freecadweb.org/api/d1/de8/c ... 903b24d915
OS: "Fedora release 29 (Twenty Nine)"
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.Unknown
Build type: Unknown
Python version: 2.7.15
Qt version: 4.8.7
Coin version: 3.1.3
OCC version: 6.9.1.oce-0.18
Locale: English/UnitedStates (en_US)