Code: Select all
s1 = doc.addObject("Part::Feature", "s1")
s1.Shape = Part.makeCompound([Part.Shape([Part.Line(dts2[0], dts2[1]),
Part.Line(e3.Shape.Vertexes[0].Point, e3.Shape.Vertexes[1].Point),
Part.Line(e6.Shape.Vertexes[0].Point, e6.Shape.Vertexes[1].Point)]),
Part.makeSphere(mediumPointRadius, dts2[0]),
Part.makeSphere(mediumPointRadius, dts2[1])])
s1.ViewObject.LineWidth = width2
s1.ViewObject.DisplayMode = 'Shaded'
This causes all the edges to disappear and just leaves the sphere visible in this display mode.
How should i go about making this kind of structure?