Class for nesting computation.
More...
Inherits QObject.
Class for nesting computation.
The purpose of this class is to compute placement of several parts into a sheet. It uses GO2cam internal nesting engine and needs no specific license.
sheet.SetColor(0x0000FF)
solid.Delete()
ply.Delete()
profile.Delete()
Class to manage interactivity with GO2cam.
Definition GO2SInteract.hpp:10
GO2SEnum::GO2SError AddPart(GO2SGeometry geom, Number part_dist, Number angleStep=10.0)
Array< GO2SGeometry > Apply()
GO2SEnum::GO2SError AddSheet(GO2SGeometry sheet)
Helper class to create polygons.
Definition GO2SPolygon.hpp:58
Helper class to create profiles.
Definition GO2SProfile.hpp:45
Rectangle object.
Definition GO2SRectangle.hpp:8
Helper class to create solid.
Definition GO2SSolid.hpp:265
Creation of a coordinate reference.
Definition GO2SXYZ.hpp:93
- Version
- 2026
◆ GO2SNesting()
| GO2SNesting::GO2SNesting |
( |
| ) |
|
Default constructor
- Version
- 2026
◆ AddPart()
Add a part to be nested in the sheet. A single copy of the part is nested.
- Returns
- GO2SError.success (0) if successful, see GO2SError otherwise
- Version
- 2026
- Parameters
-
| [in] | geom | Geometry object to be nested |
| [in] | part_dist | Distance between parts |
| [in] | angleStep | Angular step in degrees to search the best orientation (<= 0 means no rotation) |
◆ AddSheet()
Create a nesting sheet from a geometry.
- Returns
- GO2SError.success (0) if successful, see GO2SError otherwise
- Version
- 2026
- Parameters
-
| [in] | sheet | geometry representing the sheet |
◆ Apply()
Apply the computed positioning of the parts
- Returns
- All the nested geometries
◆ Compute()
| void GO2SNesting::Compute |
( |
| ) |
|
Compute the nesting solution
- Version
- 2026
◆ GetNbPartsNested()
Get the number of parts successfully nested from a given geometry.
- Returns
- Number of nested parts if successful
- Version
- 2026
- Parameters
-
| [in] | solid | Geometry object used for nesting |
◆ SetPlacement()
| void GO2SNesting::SetPlacement |
( |
Number | placement | ) |
|
Set the side of the sheet towards which the parts are pushed, to keep a large free area elsewhere
- Version
- 2026
- Parameters
-
| [in] | placement | preferred placement (0 to 7) |
◆ SetTimeLimit()
| void GO2SNesting::SetTimeLimit |
( |
Number | seconds | ) |
|
Set the maximum computation time of Compute() (default: 10 seconds)
- Version
- 2026
- Parameters
-
| [in] | seconds | maximum computation time in seconds (> 0) |