Hide menu
Loading...
Searching...
No Matches
cadex::Nesting_Sheet Class Reference

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::SheetToDrawingSheet () const
 

Detailed Description

Contains information about nesting sheet.

See also
Nesting_Computer

Constructor & Destructor Documentation

◆ Nesting_Sheet() [1/3]

cadex::Nesting_Sheet::Nesting_Sheet ( )

Constructor.

Creates a Nesting_Sheet with standard paper size A4.

See also
PaperSizeType

◆ Nesting_Sheet() [2/3]

cadex::Nesting_Sheet::Nesting_Sheet ( double theWidth,
double theHeight )

Constructor.

Creates a Nesting_Sheet with theWidth and theHeight size.

◆ Nesting_Sheet() [3/3]

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.

Member Function Documentation

◆ NestedParts()

size_t cadex::Nesting_Sheet::NestedParts ( ) const

Returns the nested parts count in sheet.

◆ PlacementEfficiency()

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.

See also
Scrap

◆ Scrap()

double cadex::Nesting_Sheet::Scrap ( ) const

Returns the fraction of free area on the sheet in the [0, 1] range.

◆ SheetArea()

double cadex::Nesting_Sheet::SheetArea ( ) const

Returns the areas of sheet in mm^2 .

◆ ToDrawingSheet()

const Drawing::Sheet & cadex::Nesting_Sheet::ToDrawingSheet ( ) const

Returns the drawing.