Discussion on pad/pocket up-to-face from datum-based sketch

About the development of the Part Design module/workbench. PLEASE DO NOT POST HELP REQUESTS HERE!
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
User avatar
jnxd
Posts: 951
Joined: Mon Mar 30, 2015 2:30 pm
Contact:

Discussion on pad/pocket up-to-face from datum-based sketch

Post by jnxd »

Based on ickby's suggestion, posting a private conversation between him and I on the title of this thread.
jnxd wrote:Hi ickby.

I was looking through the code of PartDesign, with a target to figure out the cause behind issue #2441, and trying to use the files in this post as the minimal files. While I wasn't able to figure out the reason for #2441, I did discover a bug where pockets and pads up to a face could not be made, and tried solve it. Whenever I tried to do it, through the GUI or console, I'd get an error "Not supported sub-shape type". The problem seems to come from ProfileBased::getSupportFace(), particularly when Toposhape::getSubShape() is called. I made an educated guess as of what to return, and heve put my edits in this commit. Could you look through the code and tell me if I'm doing it right?

Thanks
Ickby's comments can be found on the commit itself. Any input from the rest of the community?
My latest (or last) project: B-spline Construction Project.
Post Reply