I am not sure whether it is a rendering bug on right side (joint walls):
import Arch,Draft
Arch.makeWall(Draft.makeWire([FreeCAD.Vector(13110,1500,0),FreeCAD.Vector(5615,1500,0),FreeCAD.Vector(5615,0,0),FreeCAD.Vector(0,0,0),FreeCAD.Vector(0,11175,0),FreeCAD.Vector(13110,11175,0),FreeCAD.Vector(13110,0,0)],closed=False),align="Left")
For verification of DWire marks outside:
Draft.makeWire([FreeCAD.Vector(-100,0,0),FreeCAD.Vector(15000,0,0)],closed=False)
Draft.makeWire([FreeCAD.Vector(13110,-100,0),FreeCAD.Vector(13110,15000,0)],closed=False)
Draft.makeWire([FreeCAD.Vector(0,-100,0),FreeCAD.Vector(0,15000,0)],closed=False)
Draft.makeWire([FreeCAD.Vector(-100,1500,0),FreeCAD.Vector(15000,1500,0)],closed=False)
Yes, first Vector could also be (13110-width, 1500, 0) but IMHO that means the walls are not joint (and can clap easier apart if loaded "wrongly" ...).
Rendering bug?
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
Rendering bug?
- Attachments
-
- freecad_rendering_bug.png (2.96 KiB) Viewed 4001 times
Re: Rendering bug?
When you post your code like that, for me at least, PHPBB does not line wrap it, so I could not see half the code without first setting your post to edit mode. If you wrap your code in the "code" tag you get a horizontal scroll bar.
I tried this code and FreeCAD produced something totally different for the wall, I just got a 1mm cube for a wall.
If I select the wire which the code above produces, in the GUI and click wall, I do get a wall though.
What version of FreeCAD etc. are you tying this in? Perhaps you could post your FreeCAD help about data?
OS: Ubuntu 12.04.4 LTS
Platform: 64-bit
Version: 0.14.3203 (Git)
Branch: master
Hash: 83caf9d67ba419e0ab8769106a89a8f427e11a74
Python version: 2.7.3
Qt version: 4.8.2
Coin version: 3.1.3
SoQt version: 1.5.0
OCC version: 6.7.0
Code: Select all
import Arch,Draft
Arch.makeWall(Draft.makeWire([FreeCAD.Vector(13110,1500,0),FreeCAD.Vector(5615,1500,0),FreeCAD.Vector(5615,0,0),FreeCAD.Vector(0,0,0),FreeCAD.Vector(0,11175,0),FreeCAD.Vector(13110,11175,0),FreeCAD.Vector(13110,0,0)],closed=False),align="Left")
If I select the wire which the code above produces, in the GUI and click wall, I do get a wall though.
What version of FreeCAD etc. are you tying this in? Perhaps you could post your FreeCAD help about data?
OS: Ubuntu 12.04.4 LTS
Platform: 64-bit
Version: 0.14.3203 (Git)
Branch: master
Hash: 83caf9d67ba419e0ab8769106a89a8f427e11a74
Python version: 2.7.3
Qt version: 4.8.2
Coin version: 3.1.3
SoQt version: 1.5.0
OCC version: 6.7.0
Re: Rendering bug?
jmaustpc wrote:I tried this code and FreeCAD produced something totally different for the wall, I just got a 1mm cube for a wall.
Code: Select all
>>> Arch.makeWall(Draft.makeWire([FreeCAD.Vector(13110,1500,0),FreeCAD.Vector(5615,1500,0),FreeCAD.Vector(5615,0,0),FreeCAD.Vector(0,0,0),FreeCAD.Vector(0,11175,0),FreeCAD.Vector(13110,11175,0),FreeCAD.Vector(13110,0,0)],closed=False),align="Left")
<Part::PartFeature>
>>> Gui.SendMsgToActiveView("ViewFit")
>>> FreeCAD.getDocument("Unnamed").getObject("Wall").Width = '199 mm'
>>> FreeCAD.getDocument("Unnamed").getObject("Wall").Width = '200 mm'
>>> FreeCAD.getDocument("Unnamed").getObject("Wall").Width = '200 mm'
>>> FreeCAD.getDocument("Unnamed").getObject("Wall").Offset = '0 mm'
>>> FreeCAD.getDocument("Unnamed").getObject("Wall").Height = '3000 mm'
>>> Gui.SendMsgToActiveView("ViewFit")
https://pmbs.links2linux.de/package/rdi ... tra&rev=69jmaustpc wrote:What version of FreeCAD etc. are you tying this in? Perhaps you could post your FreeCAD help about data?
OS: "openSUSE 13.1 (Bottle) (x86_64)"
Platform: 64-bit
Version: 0.14.3210 (Git)
Branch: master
Hash: 63f930cb53887406def9533668390701aa572347
Python version: 2.7.5
Qt version: 4.8.5
Coin version: 3.1.3
SoQt version: 1.5.0
OCC version: 6.7.0
Re: Rendering bug?
Hi, I have the same behaviour here.
OS: Ubuntu 12.04.4 LTS
Platform: 64-bit
Version: 0.14.3245 (Git)
Branch: master
Hash: d632eb2843da9ccc8060df54ad36f5fd05264be1
Python version: 2.7.3
Qt version: 4.8.1
Coin version: 3.1.3
SoQt version: 1.5.0
OCC version: 6.5.1
I make a FCStd file with 3 identically Dwire and a different align of his wall.
And there is also 3 identically Sketch. We see that align middle and left create a hole in wall...
OS: Ubuntu 12.04.4 LTS
Platform: 64-bit
Version: 0.14.3245 (Git)
Branch: master
Hash: d632eb2843da9ccc8060df54ad36f5fd05264be1
Python version: 2.7.3
Qt version: 4.8.1
Coin version: 3.1.3
SoQt version: 1.5.0
OCC version: 6.5.1
I make a FCStd file with 3 identically Dwire and a different align of his wall.
And there is also 3 identically Sketch. We see that align middle and left create a hole in wall...
Formations - Assistance - Développement : https://freecad-france.com
Re: Rendering bug?
Hm yeah, that is because self-intersections always create bad extrusions. So I use a function of OCC that "fixes" self-intersections before extruding. Unfortunately that fix function often gives that, it "removes" a piece of overlapping faces. Until now I didn't find a better solution...
At the moment, the best way to avoid this problem is, instead of using one big wire as a base, make smaller wall segments and unite them together with tha Arch Add tool.
At the moment, the best way to avoid this problem is, instead of using one big wire as a base, make smaller wall segments and unite them together with tha Arch Add tool.
Re: Rendering bug?
Ok, Thank you to clarify this.
Formations - Assistance - Développement : https://freecad-france.com