Extrusion direction / Arch normal

This forum section is only for IFC-related issues
Post Reply
User avatar
hlg
Posts: 39
Joined: Fri Jul 12, 2019 10:11 am

Extrusion direction / Arch normal

Post by hlg »

In FreeCAD (as well as in IFC) the length of the vector defining an extrusion direction should not be interpreted to affect the geometry of the extruded shape. However, when exporting an extrusion to IFC, the vector length is currently taken into account for the determination of the exported extrusion depth. This results in erroneous export. Moreover, I believe that also the length of the normal vector of Arch components should not affect the shape and neither the export.
extrusion-direction-scale-s.png
extrusion-direction-scale-s.png (15.7 KiB) Viewed 1477 times
The above images show four walls each, from left to right:
  1. Arch generated Wall with default normal
  2. Arch generated Wall with modified (length>1) normal
  3. Wall from extrusion with default extrusion direction
  4. Wall from extrusion with modified (length>1) extrusion direction
FreeCAD walls are shown in the top row, IFC exports in the buttom row. Left column is the current state, center column is after I have fixed IFC export, right column after fix of normal vector interpretation. For the latter I am not sure whether there is consensus. Also I only fixed wall and structure, there may be other places to check for. Suggested changes for now on Github: https://github.com/hlg/FreeCAD/commit/a ... 83a33f0b7f.
Attachments
extrusion-direction-scale.FCStd
(24.34 KiB) Downloaded 85 times
User avatar
yorik
Founder
Posts: 13665
Joined: Tue Feb 17, 2009 9:16 pm
Location: Brussels
Contact:

Re: Extrusion direction / Arch normal

Post by yorik »

Yes I think you're right and it was made to work this way. Your changes seem perfect!
User avatar
hlg
Posts: 39
Joined: Fri Jul 12, 2019 10:11 am

Re: Extrusion direction / Arch normal

Post by hlg »

I have created a pull request: https://github.com/FreeCAD/FreeCAD/pull/3676.
Post Reply