Hide menu
Loading...
Searching...
No Matches

Defines a connected set of faces. More...

#include <cadex/ModelData_Shell.hxx>

Inheritance diagram for cadex::ModelData_Shell:
cadex::ModelData_Shape

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.
 
- Public Member Functions inherited from cadex::ModelData_Shape
 ModelData_Shape ()
 Constructor.
 
 ModelData_Shape (const ModelData_Shape &theOther)
 Constructor.
 
 ModelData_Shape (ModelData_Shape &&theOther)
 Move constructor.
 
 ~ModelData_Shape ()
 Destructor.
 
ModelData_Shapeoperator= (const ModelData_Shape &theOther)
 Assignment operator.
 
ModelData_Shapeoperator= (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_ShellCast (const ModelData_Shape &theShape)
 
static ModelData_ShellCast (ModelData_Shape &theShape)
 

Additional Inherited Members

- Protected Member Functions inherited from cadex::ModelData_Shape
 ModelData_Shape (const TopoDS_Shape &theOther, bool)
 Constructor.
 
 ModelData_Shape (internal::ModelData_ShapeImpl *theImpl)
 Constructor.
 
- Protected Attributes inherited from cadex::ModelData_Shape
internal::Base_Handle myImpl
 Internal implementation object.
 

Detailed Description

Defines a connected set of faces.

The following image depicts an example of a shell:

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).

Examples
MTKConverter/Program.cs, MTKConverter/main.cxx, exploring/brepgeometry/Program.cs, exploring/brepgeometry/main.cxx, helpers/shape_processor.cs, helpers/shape_processor.hxx, machining/dfm_analyzer/Program.cs, machining/dfm_analyzer/main.cxx, machining/feature_recognizer/Program.cs, machining/feature_recognizer/main.cxx, modeling/assembly/Program.cs, modeling/assembly/main.cxx, modeling/brep/Program.cs, modeling/brep/main.cxx, sheet_metal/dfm_analyzer/Program.cs, sheet_metal/dfm_analyzer/main.cxx, sheet_metal/feature_recognizer/Program.cs, sheet_metal/feature_recognizer/main.cxx, sheet_metal/unfolder/Program.cs, sheet_metal/unfolder/main.cxx, wall_thickness/visualization/Program.cs, and wall_thickness/visualization/main.cxx.

Member Function Documentation

◆ Append()

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.

Examples
modeling/assembly/Program.cs, modeling/assembly/main.cxx, modeling/brep/Program.cs, and modeling/brep/main.cxx.