Skip to content

Commit

Permalink
SVG rendering of Arch pipes
Browse files Browse the repository at this point in the history
  • Loading branch information
yorikvanhavre committed Nov 10, 2016
1 parent 7f96119 commit f345501
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/Mod/Draft/Draft.py
Expand Up @@ -2283,6 +2283,19 @@ def getText(color,fontsize,fontname,angle,base,text,linespacing=0.5,align="cente
svg += '</text>\n'
n += 1

elif getType(obj) == "Pipe":
fill = stroke
lstyle = getLineStyle()
if obj.Base and obj.Diameter:
svg += getPath(obj.Base.Shape.Edges)
for f in obj.Shape.Faces:
if len(f.Edges) == 1:
if isinstance(f.Edges[0].Curve,Part.Circle):
svg += getCircle(f.Edges[0])

elif getType(obj) == "PipeConnector":
pass

elif getType(obj) == "Space":
"returns an SVG fragment for the text of a space"
c = getrgb(obj.ViewObject.TextColor)
Expand Down

0 comments on commit f345501

Please sign in to comment.