Optalog :

- nuova versione con aggiunta dei vincoli textile CNS_SetPartStripYconstraint e CNS_SetPartStripXconstraint.
This commit is contained in:
DarioS
2021-12-19 18:41:54 +01:00
parent d6a8e2d79e
commit b5961fa308
6 changed files with 62 additions and 1 deletions
+10 -1
View File
@@ -1220,8 +1220,17 @@ extern "C" {
CNS_EXPORT void CNS_API
CNS_SetPartCommonCutMaxBlockSize(CNS_PartPtr part,
unsigned max_number_of_parts_in_block);
/**
* Allows to disable some advanced common cut checks.
*
* Warning: this can allows to generate small holes between common cuts.
*/
CNS_EXPORT void CNS_API
CNS_SetCommonCutAdvancedQualityCheck(CNS_LaunchingOrderPtr order,
int advanced_quality_check);
/**
* return the number of common cuts in the given nesting.
+36
View File
@@ -0,0 +1,36 @@
#ifndef CNS_TEXTILE_HPP_
#define CNS_TEXTILE_HPP_
#include "cns.h"
#ifdef __cplusplus
extern "C" {
#endif
/**
* Defines a regular set of possible y values for part position
* The intended usage is when using textile with horizontal stripes or plaids patterns having an influence on part position
* Setting this constraint on a part means that the point @ref of part @part will always have
* final coordinate when nested ref_nested_position.y = strip_start + k * strip_repeat for some k
* This constraint is set on parts and not sheet.
* It means it should only be used when the problem has only 1 sheet, or a set of sheets with same stripes patterns
* and same sheet border gaps.
*/
CNS_EXPORT void CNS_API
CNS_SetPartStripYconstraint(CNS_PartPtr part, CNS_Point ref, double strip_start, double strip_repeat);
/**
* Same as CNS_SetPartStripYconstraint but for vertical stripes and x_values of ref point.
* When combined with CNS_SetPartStripYconstraint it allows to manage also plaid patterns.
*/
CNS_EXPORT void CNS_API
CNS_SetPartStripXconstraint(CNS_PartPtr part, CNS_Point ref, double strip_start, double strip_repeat);
#ifdef __cplusplus
}
#endif
#endif /* CNS_TEXTILE_HPP_ */
+8
View File
@@ -274,6 +274,10 @@ EXPORTS
CNS_SetOriginPrioritiesOnParts@8 @375 NONAME
CNS_SetCommonCutMaxBlockSizeXY = CNS_SetCommonCutMaxBlockSizeXY@20 @376 NONAME
CNS_SetCommonCutMaxBlockSizeXY@20 @377 NONAME
CNS_SetPartStripYconstraint = CNS_SetPartStripYconstraint@36 @378 NONAME
CNS_SetPartStripYconstraint@36 @379 NONAME
CNS_SetPartStripXconstraint = CNS_SetPartStripXconstraint@36 @380 NONAME
CNS_SetPartStripXconstraint@36 @381 NONAME
CNS_LaunchBasicLocalComputation = CNS_LaunchBasicLocalComputation@12 @382 NONAME
CNS_LaunchBasicLocalComputation@12 @383 NONAME
CNS_BetterPartInsideHole=CNS_BetterPartInsideHole@4 @384 NONAME
@@ -312,3 +316,7 @@ EXPORTS
CNS_ArrayHelperGetElements@4 @437 NONAME
CNS_SetShearMaxLength = CNS_SetShearMaxLength@12 @446 NONAME
CNS_SetShearMaxLength@12 @447 NONAME
CNS_GetNestedPartInternalStatus = CNS_GetNestedPartInternalStatus@16 @448 NONAME
CNS_GetNestedPartInternalStatus@16 @449 NONAME
CNS_SetCommonCutAdvancedQualityCheck = CNS_SetCommonCutAdvancedQualityCheck@8 @450 NONAME
CNS_SetCommonCutAdvancedQualityCheck@8 @451 NONAME
Binary file not shown.
+8
View File
@@ -274,6 +274,10 @@ EXPORTS
CNS_SetOriginPrioritiesOnParts@8 @375 NONAME
CNS_SetCommonCutMaxBlockSizeXY = CNS_SetCommonCutMaxBlockSizeXY@20 @376 NONAME
CNS_SetCommonCutMaxBlockSizeXY@20 @377 NONAME
CNS_SetPartStripYconstraint = CNS_SetPartStripYconstraint@36 @378 NONAME
CNS_SetPartStripYconstraint@36 @379 NONAME
CNS_SetPartStripXconstraint = CNS_SetPartStripXconstraint@36 @380 NONAME
CNS_SetPartStripXconstraint@36 @381 NONAME
CNS_LaunchBasicLocalComputation = CNS_LaunchBasicLocalComputation@12 @382 NONAME
CNS_LaunchBasicLocalComputation@12 @383 NONAME
CNS_BetterPartInsideHole=CNS_BetterPartInsideHole@4 @384 NONAME
@@ -312,3 +316,7 @@ EXPORTS
CNS_ArrayHelperGetElements@4 @437 NONAME
CNS_SetShearMaxLength = CNS_SetShearMaxLength@12 @446 NONAME
CNS_SetShearMaxLength@12 @447 NONAME
CNS_GetNestedPartInternalStatus = CNS_GetNestedPartInternalStatus@16 @448 NONAME
CNS_GetNestedPartInternalStatus@16 @449 NONAME
CNS_SetCommonCutAdvancedQualityCheck = CNS_SetCommonCutAdvancedQualityCheck@8 @450 NONAME
CNS_SetCommonCutAdvancedQualityCheck@8 @451 NONAME
Binary file not shown.