This section will discribe how to define the
part object which will be nested on material.
When building part object, you should init
two variables of the part object, the geometry items and ancillary data. About
the explaination of these two variables, please refer to
Part class under NP::NestKernel::Data::Prt
namespace.
Building part from
dxf/dwg
An easy
way to build part object is to build it from dxf/dwg files, you can refer to
LoadPartFromDxfdwg function in
NestHelper class which you can find it in C++/C# DEMO
program, that function details this
procedure.
Building part from geometry
items
This
procedure is similar with building part from dxf/dwg files, anyway you should
init the geometry items and ancillary data. You can also refer to
LoadPartFromDxfdwg function in
NestHelper
class.
Notes
The part which will be nested should have a
closed boundary, otherwise it cannot be used to nest. You can use
NestFacade::HasClosedBoundary to check whether the
part has a closed boundary, please refer to the source code of the DEMO
program.