FreeCAD C++
|
#include <Mod/Part/App/FaceMaker.h>
FaceMaker class is the base class for implementing various "smart" face making routines. This was created to address the problem of multiple private implementations of making faces with holes, which are quite complex. The two most important facemaking routines then was: one in Part Extrude, and one in PartDesign (there, it is used in every sketch-based feature). Plus, another one (new) was needed for filling 2D offset.
Public Member Functions | |
virtual void | addShape (const TopoDS_Shape &sh) |
addShape: add another wire, edge, or compound. If compound is added, its internals will be treated as isolated from the rest, and the compounding structure of result will follow. More... | |
virtual void | useCompound (const TopoDS_Compound &comp) |
useCompound: add children of compound to the FaceMaker. Note that this is different from addShape(comp) - structure is lost. The compound is NOT expanded recursively. More... | |
virtual const TopoDS_Face & | Face () |
Face: returns the face (result). If result is not a single face, throws Base::TypeError. (hint: use .Shape() instead) More... | |
![]() | |
BaseClass () | |
Construction. | |
virtual | ~BaseClass () |
Destruction. | |
Protected Member Functions | |
virtual void | Build_Essence ()=0 |
Build_Essence: build routine that can assume there is no nesting. More... | |
|
virtual |
addShape: add another wire, edge, or compound. If compound is added, its internals will be treated as isolated from the rest, and the compounding structure of result will follow.
sh |
|
protectedpure virtual |
Build_Essence: build routine that can assume there is no nesting.
Implementing instructions: Add new faces (or whatever) to myShapesToReturn. The rest is done by base class's Build(). Please ignore contents of myCompounds in implementation. If special handling of nesting is required, override whole Build().
|
virtual |
Face: returns the face (result). If result is not a single face, throws Base::TypeError. (hint: use .Shape() instead)
|
virtual |
useCompound: add children of compound to the FaceMaker. Note that this is different from addShape(comp) - structure is lost. The compound is NOT expanded recursively.
comp |