Contains information about nesting sheet. More...
#include <cadex/Nesting_Sheet.hxx>
Public Types | |
| typedef cadex::internal::NestingImpl_Sheet | ImplType |
Public Member Functions | |
| Nesting_Sheet () | |
| Constructor. | |
| Nesting_Sheet (double theWidth, double theHeight) | |
| Constructor. | |
| Nesting_Sheet (const Drawing::Sheet &theSheet) | |
| Constructor. | |
| Nesting_Sheet (std::shared_ptr< ImplType > theImpl) | |
| Constructor. | |
| double | PlacementEfficiency () const |
| Returns the placement efficiency of patterns on the sheet. | |
| size_t | NestedParts () const |
| double | SheetArea () const |
| double | Scrap () const |
| double | Width () const |
| double | Height () const |
| const Drawing::Sheet & | ToDrawingSheet () const |
Contains information about nesting sheet.
| cadex::Nesting_Sheet::Nesting_Sheet | ( | ) |
| cadex::Nesting_Sheet::Nesting_Sheet | ( | double | theWidth, |
| double | theHeight ) |
Constructor.
Creates a Nesting_Sheet with theWidth and theHeight size.
| cadex::Nesting_Sheet::Nesting_Sheet | ( | const Drawing::Sheet & | theSheet | ) |
Constructor.
Creates a Nesting_Sheet from Drawing::Sheet. Only size of theSheet used in Nesting_Sheet object.
| size_t cadex::Nesting_Sheet::NestedParts | ( | ) | const |
Returns the nested parts count in sheet.
| double cadex::Nesting_Sheet::PlacementEfficiency | ( | ) | const |
Returns the placement efficiency of patterns on the sheet.
Defined as a ration of the total patterns area to the area of the bounding box of placed patterns. Returns 0 if there are no patterns on the sheet.
| double cadex::Nesting_Sheet::Scrap | ( | ) | const |
Returns the fraction of free area on the sheet in the [0, 1] range.
| double cadex::Nesting_Sheet::SheetArea | ( | ) | const |
Returns the areas of sheet in mm^2 .
| const Drawing::Sheet & cadex::Nesting_Sheet::ToDrawingSheet | ( | ) | const |
Returns the drawing.