Defines a connected set of faces. More...
#include <cadex/ModelData_Shell.hxx>
Public Member Functions | |
ModelData_Shell (const ModelData_Face &theFace) | |
Constructor. | |
ModelData_Shell (const TopoDS_Shell &) | |
operator const TopoDS_Shell & () const | |
operator TopoDS_Shell & () | |
bool | Append (const ModelData_Face &theFace) |
Adds a face to the shell. | |
![]() | |
ModelData_Shape () | |
Constructor. | |
ModelData_Shape (const ModelData_Shape &theOther) | |
Constructor. | |
ModelData_Shape (ModelData_Shape &&theOther) | |
Move constructor. | |
~ModelData_Shape () | |
Destructor. | |
ModelData_Shape & | operator= (const ModelData_Shape &theOther) |
Assignment operator. | |
ModelData_Shape & | operator= (ModelData_Shape &&theOther) |
Move assignment operator. | |
operator const TopoDS_Shape & () const | |
Casts this object to TopoDS_Shape. | |
ModelData_ShapeType | Type () const |
Returns a shape type. | |
ModelData_ShapeOrientation | Orientation () const |
Returns orientation flag. | |
ModelData_Shape | Reversed () const |
Returns a shape that shares the same geometry and subshape graph but has opposite orientation. | |
ModelData_Shape | Oriented (ModelData_ShapeOrientation theOrientation) const |
Returns a shape that shares the same geometry and subshape graph and has specified orientation. | |
void | Nullify () |
Nullifies the object. | |
bool | IsNull () const |
Returns true if the object has not been initialized yet. | |
operator bool () const | |
Returns true if the object is not null. | |
bool | IsEqual (const ModelData_Shape &theOther) const |
Returns true if the shape shares the same geometry and subshape graph, and has equal orientation. | |
bool | IsSame (const ModelData_Shape &theOther) const |
Returns true if the shape shares the same geometry and subshape graph. | |
internal::ModelData_ShapeImpl * | Impl () const |
Returns internal implementation object. | |
Static Public Member Functions | |
static const ModelData_Shell & | Cast (const ModelData_Shape &theShape) |
static ModelData_Shell & | Cast (ModelData_Shape &theShape) |
Additional Inherited Members | |
![]() | |
ModelData_Shape (const TopoDS_Shape &theOther, bool) | |
Constructor. | |
ModelData_Shape (internal::ModelData_ShapeImpl *theImpl) | |
Constructor. | |
![]() | |
internal::Base_Handle | myImpl |
Internal implementation object. | |
Defines a connected set of faces.
The following image depicts an example of a shell:
Direct children of shell are faces which must be connected with each other (i.e. have common edges) and consistently oriented (i.e. each common edge must be forward in one face and reversed in the other).
Although the data model can describe a non-manifold topology (i.e. a common edge shared by more than two faces), it is strongly not recommended to construct such.
Shell bounding a solid must be closed. A shell not belonging to a solid may have free edges (i.e. shared by one face only).
bool cadex::ModelData_Shell::Append | ( | const ModelData_Face & | theFace | ) |
Adds a face to the shell.
There is no requirement that theFace must be connected to faces already added to the shell. However all the faces in the shell must be connected and properly oriented after adding all faces.
Returns false if theFace is null and true otherwise.