ManualArrangeRemoveCut

 

 

Name

 

            ManualArrangeRemoveCut

 

When to use it

 

            When the optimization process is NOT running.

            NOT during the OnFinish or OnAfterManualArrange event.

            After all other information has been set.

 

Prototype

 

    HRESULT ManualArrangeRemoveCut(

            IndexCut : long , /*[in]*/

            IndexRemovedWaste1: long , /*[out]*/

            IndexRemovedWaste2: long , /*[out]*/

            IndexInsertedWaste: long  /*[out]*/

    );

 

Explanations

 

            Removes a cut if this is possible. A cut can be removed only if there is no piece attached to it.

 

Parameters

 

            - IndexCut - the index of the cut to be removed.

            - IndexRemovedWaste1, IndexRemovedWaste2 - the indices of the waste rectangles that were previously separated by the cut.

            - IndexInsertedWaste - the index of the newly obtained waste rectangle. This waste was obtained by joining the waste rectangles IndexRemovedWaste1, IndexRemovedWaste2.

 

See also

 

        How to arrange pieces manually, ManualArrangeAddCut, ManualArrangeIsValidRemoveCut, OnAfterManualArrange.