View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000068 | FreeCAD | Bug | public | 2010-01-24 11:41 | 2010-01-29 18:28 |
Reporter | unauthenticated | Assigned To | yorik | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Product Version | 0.9 | ||||
Fixed in Version | 0.10 | ||||
Summary | 0000068: DXF Import | ||||
Description | When I import a DXF File the arcs are not imported correct. | ||||
Additional Information | I have added an example depending of a couple of lines and arcs. Lines are connected to Lines as expleced Arcs with lines are connected to lines at one point but the direction of the arc seems to be wrong. Arcs with arcs I cant guess... Find my Testfile Spant.dxf attached | ||||
Tags | No tags attached. | ||||
FreeCAD Information | |||||
2010-01-24 11:41
|
|
|
The method drawArc() can be implemented this way: def drawArc(arc): "returns a Part shape from a dxf arc" v=FreeCAD.Vector(arc.loc[0],arc.loc[1],arc.loc[2]) firstangle=(arc.start_angle/180)*math.pi lastangle=(arc.end_angle/180)*math.pi circle=Part.Circle() circle.Center=v circle.Radius=arc.radius return circle.toShape(firstangle,lastangle) BTW, you can remove the line from PyQt4 import QtGui at the top. The script then can be used without having installed python-qt. |
|
Another problem with rotation signs. It's now fixed in r2894 |
Date Modified | Username | Field | Change |
---|---|---|---|
2010-01-24 11:41 | unauthenticated | New Issue | |
2010-01-24 11:41 | unauthenticated | File Added: spant.dxf | |
2010-01-24 15:45 | wmayer | Note Added: 0000159 | |
2010-01-24 15:45 | wmayer | Assigned To | => yorik |
2010-01-24 15:45 | wmayer | Status | new => assigned |
2010-01-29 18:28 | yorik | Note Added: 0000160 | |
2010-01-29 18:28 | yorik | Status | assigned => closed |
2010-01-29 18:28 | yorik | Resolution | open => fixed |
2010-01-29 18:28 | yorik | Fixed in Version | => 0.10 |