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

Defines a connected set of edges. More...

#include <cadex/ModelData/Wire.hxx>

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

Public Member Functions

 Wire (const Edge &theEdge)
 
bool Append (const Edge &theEdge)
 
bool Append (const std::vector< Edge > &theEdges)
 
- 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 WireCast (const Shape &theShape)
 
static WireCast (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

Defines a connected set of edges.

The following image depicts an example of a wire:

Wire

Wire can be used to define a face boundary (i.e. to define a free-form trimming of a surface underlying the face) or just a set of edges.

Wire's direct children are edges which must be connected between each other, i.e. share the same vertices between adjacent edges. Although there is no strict requirement that edges must be oriented in a tail-to-head order this is strongly recommended.

A free wire (not bounding a face) can be either open or closed. A wire bounding a face must be closed.