b5961fa308
- nuova versione con aggiunta dei vincoli textile CNS_SetPartStripYconstraint e CNS_SetPartStripXconstraint.
37 lines
1.2 KiB
C
37 lines
1.2 KiB
C
#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_ */
|