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

Defines a connected set of faces. More...

Inheritance diagram for cadex.ModelData.Shell:
cadex.ModelData.Shape cadex.BaseObject

Public Member Functions

 Shell (global::System.IntPtr cPtr, bool cMemoryOwn)
 
 Shell (cadex.ModelData.Face theFace)
 Constructor.
 
bool Append (cadex.ModelData.Face theFace)
 
bool Append (cadex.Collections.FaceList theFaces)
 
- Public Member Functions inherited from cadex.ModelData.Shape
 Shape (global::System.IntPtr cPtr, bool cMemoryOwn)
 
override int GetHashCode ()
 
cadex.ModelData.ShapeType Type ()
 Returns a shape type. For a null object returns Undefined.
 
cadex.ModelData.ShapeOrientation Orientation ()
 Returns orientation flag.
 
cadex.ModelData.Shape Reversed ()
 Returns a shape that shares the same geometry and subshape graph but has opposite orientation.
 
cadex.ModelData.Shape Oriented (cadex.ModelData.ShapeOrientation theOrientation)
 Returns a shape that shares the same geometry and subshape graph and has specified orientation.
 
bool IsEqual (cadex.ModelData.Shape theOther)
 Returns true if the shape shares the same geometry and subshape graph, and has equal orientation.
 
bool IsSame (cadex.ModelData.Shape theOther)
 Returns true if the shape shares the same geometry and subshape graph.
 
void SetName (cadex.UTF16String theName)
 Sets the name.
 
cadex.UTF16String Name ()
 Returns the name.
 
void AddAssociatedPMI (cadex.PMI.Element theElement)
 Adds the PMI element.
 
void AddAssociatedPMI (cadex.Collections.PMIElementList theElements)
 Adds the PMI elements.
 
cadex.Collections.PMIElementList AssociatedPMI ()
 Returns the PMI elements.
 
override bool Equals (System.Object o)
 
- Public Member Functions inherited from cadex.BaseObject
 BaseObject (global::System.IntPtr cPtr, bool cMemoryOwn)
 
void Dispose ()
 
bool IsNull ()
 
ulong Id ()
 Return unique identifier of public object.
 
bool IsEqual (cadex.BaseObject theObj)
 
override int GetHashCode ()
 
override bool Equals (System.Object o)
 

Static Public Member Functions

static cadex.ModelData.Shell Cast (cadex.ModelData.Shape theShape)
 
static new bool CompareType (cadex.BaseObject theObject)
 Check the type of object. Returns true if the specified object is this class type.
 
- Static Public Member Functions inherited from cadex.ModelData.Shape
static bool CompareType (cadex.BaseObject theObject)
 Check the type of object. Returns true if the specified object is this class type.
 
static cadex.ModelData.Shape Cast (cadex.BaseObject theBase)
 

Protected Member Functions

override void Dispose (bool disposing)
 

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/brep_geometry/Program.cs, exploring/brep_geometry/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, molding/dfm_analyzer/Program.cs, molding/dfm_analyzer/main.cxx, molding/feature_recognizer/Program.cs, molding/feature_recognizer/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, and sheet_metal/unfolder/main.cxx.

Member Function Documentation

◆ Dispose()

override void cadex.ModelData.Shell.Dispose ( bool disposing)
inlineprotectedvirtual

Reimplemented from cadex.ModelData.Shape.