Is there a way to make a Face the SubShape of another Face?

Need help, or want to share a macro? Post here!
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
User avatar
nmt
Posts: 29
Joined: Sun Feb 19, 2017 2:45 pm

Is there a way to make a Face the SubShape of another Face?

Post by nmt »

Hello,
Is there a way (in python) to add a sub-face to a face? I want to represent conceptually the idea of a window or a wall as a sub-face to a wall face. However, I need the entity to stay as a "Part.Face" rather than a compound as I need to build a shell/solid out of it. I tried adding the outer wires and that kind of worked, but I was getting a solid face with a hole in it. Is there a way to make a "Face" the Subshape of another "Face". Any help is greatly appreciated.
User avatar
DeepSOIC
Veteran
Posts: 7896
Joined: Fri Aug 29, 2014 12:45 am
Location: used to be Saint-Petersburg, Russia

Re: Is there a way to make a Face the SubShape of another Face?

Post by DeepSOIC »

No, a face is a face. If you need two faces, you must use either a shell, or a compound.
User avatar
DeepSOIC
Veteran
Posts: 7896
Joined: Fri Aug 29, 2014 12:45 am
Location: used to be Saint-Petersburg, Russia

Re: Is there a way to make a Face the SubShape of another Face?

Post by DeepSOIC »

What you probably want is a shell of two faces, one is a frame (with hole), and the other patches the hole. Such a shell is perfectly valid for constructing a solid (assuming you add mode faces to close the shell, of course).
Post Reply