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

Defines a polygonal shape consisting of polylines. More...

#include <cadex/ModelData/Polyline2dSet.hxx>

Inheritance diagram for cadex::ModelData::Polyline2dSet:
cadex::ModelData::MeshShape cadex::BaseObject

Public Types

typedef Geom::Polyline2d PolylineType
 
- Public Types inherited from cadex::BaseObject
typedef std::shared_ptr< internal::BaseObjectImpl > ImplType
 

Public Member Functions

 Polyline2dSet ()
 Constructor.
 
 Polyline2dSet (const Geom::Polyline2d &thePolyline)
 
void AddPolyline (const Geom::Polyline2d &thePolyline)
 Adds a polyline into a polyline set.
 
void AddPolylines (const Polyline2dSet &theSet)
 Adds polylines from theSet into a polyline set.
 
const Geom::Polyline2dPolyline (size_t theIndex) const
 Returns the polyline at position theIndex in polyline set.
 
size_t NumberOfPolylines () const
 Returns a number of polylines in polyline set.
 
- 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 bool CompareType (const BaseObject &theObject)
 

Additional Inherited Members

- Protected Member Functions inherited from cadex::ModelData::MeshShape
 MeshShape (const ImplType &theImpl)
 
- Protected Member Functions inherited from cadex::BaseObject
 BaseObject (const ImplType &theImpl)
 

Detailed Description

Defines a polygonal shape consisting of polylines.

Examples
exploring/mesh/Program.cs, and exploring/mesh/main.cxx.

Constructor & Destructor Documentation

◆ Polyline2dSet() [1/2]

cadex::ModelData::Polyline2dSet::Polyline2dSet ( )
inline

Constructor.

Creates not initialized object, for which IsNull() returns true.

◆ Polyline2dSet() [2/2]

cadex::ModelData::Polyline2dSet::Polyline2dSet ( const Geom::Polyline2d & thePolyline)

Constructor. Creates a polyline set from polyline thePolyline.

Member Function Documentation

◆ Polyline()

const Geom::Polyline2d & cadex::ModelData::Polyline2dSet::Polyline ( size_t theIndex) const

Returns the polyline at position theIndex in polyline set.

theIndex must be in the range [0, NumberOfPolylines()-1]. Otherwise the result is undefined.

Examples
exploring/mesh/Program.cs, and exploring/mesh/main.cxx.