Extrude Wire along normal is not working
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
Extrude Wire along normal is not working
In the attached model, the intention is to create a variable height wall.
I have created three wires => extrude along normal (100 mm for all 3 walls) => convert to wall
All good except Extrude Wire002 along normal is not working (strange extrusion in plan – Image 1 & Image 2)
It will work if the custom direction is used along X: 100mm
Am I missing something or is it possible bug? Can someone confirms please
One more Question: is their any approach to model the variable wall height better than my approach I have used
I have created three wires => extrude along normal (100 mm for all 3 walls) => convert to wall
All good except Extrude Wire002 along normal is not working (strange extrusion in plan – Image 1 & Image 2)
It will work if the custom direction is used along X: 100mm
Am I missing something or is it possible bug? Can someone confirms please
One more Question: is their any approach to model the variable wall height better than my approach I have used
- Attachments
-
- Image 1.jpg (295.68 KiB) Viewed 1405 times
-
- Image 2.jpg (397.8 KiB) Viewed 1405 times
-
- Variable Height Wall.FCStd
- (18.42 KiB) Downloaded 21 times
Re: Extrude Wire along normal is not working
Oops, it is Part Extrude problem, @kunda any idea who to ping to have a a look please ?
Alternatively, use Arch Panel to directly 'thicken' the Wire Face you make without the need of using Part Extrude
Alternatively, use Arch Panel to directly 'thicken' the Wire Face you make without the need of using Part Extrude
- thomas-neemann
- Veteran
- Posts: 11958
- Joined: Wed Jan 22, 2020 6:03 pm
- Location: Osnabrück DE 🇩🇪
- Contact:
Re: Extrude Wire along normal is not working
Re: Extrude Wire along normal is not working
It is not Part workbench alone. If I downgrade+upgrade I get again a wire and it can be extruded along normal. If I convert it to a sketch, it can be extruded as well.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Re: Extrude Wire along normal is not working
Can it be a problem that the wire has only 3 edges, and not 4?
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Re: Extrude Wire along normal is not working
The problem is caused by this portion of the Part code:
https://github.com/FreeCAD/FreeCAD/blob ... #L197-L203
It is assumed that the shape of a Part_Part2DObject always lies on the XY plane defined by its Placement. For a Draft_Wire that need not be the case.
Test code:
https://github.com/FreeCAD/FreeCAD/blob ... #L197-L203
It is assumed that the shape of a Part_Part2DObject always lies on the XY plane defined by its Placement. For a Draft_Wire that need not be the case.
Test code:
Code: Select all
import FreeCAD as App
import Draft
doc = App.ActiveDocument
pts = [App.Vector (0.0, 0.0, 0.0),
App.Vector (5.0, 0.0, 3.0),
App.Vector (5.0, 5.0, 0.0)]
wire1 = Draft.make_wire(pts)
wire1.Closed = True
wire1.MakeFace = False
doc.recompute()
extr1 = doc.addObject("Part::Extrusion", "Extrude_wire1")
extr1.Base = wire1
extr1.DirMode = "Normal"
extr1.LengthFwd = 2.0
extr1.Solid = True
doc.recompute()
Re: Extrude Wire along normal is not working
Roy_043 wrote: ↑Sat Aug 20, 2022 2:42 pm It is assumed that the shape of a Part_Part2DObject always lies on the XY plane defined by its Placement. For a Draft_Wire that need not be the case.
The rest of 2 wires do not lie on XY plane either but have no problem ?