Hide menu
Loading...
Searching...
No Matches
cadex::ModelData::Solid Class Reference

Defines a topological solid. More...

#include <cadex/ModelData/Solid.hxx>

Inheritance diagram for cadex::ModelData::Solid:
cadex::ModelData::Shape cadex::BaseObject

Public Member Functions

 Solid (const Shell &theShell)
 Constructor.
 
bool Append (const Shell &theShell)
 Adds a shell to the solid.
 
bool Append (const std::vector< Shell > &theShells)
 Adds a shells to the solid.
 
- Public Member Functions inherited from cadex::ModelData::Shape
ShapeType Type () const
 Returns a shape type. For a null object returns Undefined.
 
ShapeOrientation Orientation () const
 Returns orientation flag.
 
Shape Reversed () const
 Returns a shape that shares the same geometry and subshape graph but has opposite orientation.
 
Shape Oriented (ShapeOrientation theOrientation) const
 Returns a shape that shares the same geometry and subshape graph and has specified orientation.
 
bool IsEqual (const Shape &theOther) const
 Returns true if the shape shares the same geometry and subshape graph, and has equal orientation.
 
bool IsSame (const Shape &theOther) const
 Returns true if the shape shares the same geometry and subshape graph.
 
void SetName (const UTF16String &theName)
 
UTF16String Name () const
 
- Public Member Functions inherited from cadex::BaseObject
size_t Id () const
 Return unique identifier of public object.
 
internal::BaseObjectImpl * Impl () const
 
bool IsNull () const
 
 operator bool () const
 
template<typename T >
bool IsOfType () const
 
template<typename T >
T * Impl () const
 Reserved for internal use.
 

Static Public Member Functions

static const SolidCast (const Shape &theShape)
 
static SolidCast (Shape &theShape)
 
static bool CompareType (const 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 (const BaseObject &theObject)
 Check the type of object. Returns true if the specified object is this class type.
 

Additional Inherited Members

- Public Types inherited from cadex::BaseObject
typedef std::shared_ptr< internal::BaseObjectImpl > ImplType
 
- Protected Member Functions inherited from cadex::ModelData::Shape
 Shape (const ImplType &theImpl)
 
- Protected Member Functions inherited from cadex::BaseObject
 BaseObject (const ImplType &theImpl)
 

Detailed Description

Member Function Documentation

◆ Append() [1/2]

bool cadex::ModelData::Solid::Append ( const Shell & theShell)

Adds a shell to the solid.

There must be single outer (external) shell and zero, one or more inner shells (i.e. voids). It is strongly recommended (although not required) that the first shell being added is an outer shell. Solids with voids may have limited support in CAD Exchanger and other systems.

Returns false if theShell is null and true otherwise.

◆ Append() [2/2]

bool cadex::ModelData::Solid::Append ( const std::vector< Shell > & theShells)

Adds a shells to the solid.

There must be single outer (external) shell and zero, one or more inner shells (i.e. voids). It is strongly recommended (although not required) that the first shell being added is an outer shell. Solids with voids may have limited support in CAD Exchanger and other systems.

Returns false if one of theShells is null and true otherwise.