pw::QuiltSplitter

The quilt splitter mode type

Derives From

pw::Object pw::Mode

Notes

This mode is used to split quilts along simple lines defined by a few points and parameters.

Summary
pw::QuiltSplitterThe quilt splitter mode type
Instance Attributes
SplitModeThis attribute is the split mode.
SplitTypeThis attribute is the split type to carry out with the mode’s points.
SplitMethodThis attribute is the method which the splitting curves are generated.
ExtendModeThis attribute is the extend mode.
MergeToleranceThis attribute is the merge tolerance of the mode.
ExtendMaximumBendAngleThis attribute is the maximum bending angle allowed when extending splits into adjacent quilts, with 0 meaning no maximum.
Instance Actions
getBisectThis action checks whether the given quilt will be bisected when the SplitMode is set to Bisect.
setBisectThis action sets whether the given quilt will be bisected when the SplitMode is set to Bisect.
getBisectQuiltsThis action returns the quilts that will be bisected when the SplitMode is set to Bisect.
setBisectQuiltsThis action sets the quilts that will be bisected when the SplitMode is set to Bisect.
getExtendSplitsThis action checks whether the given quilt will extend the splits of any neighboring quilts into itself.
setExtendSplitsThis action sets whether the given quilt will extend the splits of any neighboring quilts into itself.
getExtendSplitsQuiltsThis action returns the quilts that will extending splits.
setExtendSplitsQuiltsThis action sets the quilts that will extend splits.
getPointCountThis action gets the number of explicit points to split at.
getPointThis action gets the split point at the given index.
getPointsThis action gets all the split points.
isValidPointThis action checks if the given point is valid for this mode.
setPointThis action sets the split point at the given index.
addPointThis action adds an explicit point to split the quilts at.
insertPointThis action inserts a split point before the given index.
removePointThis action removes the split point at the given index.
removeAllPointsThis action removes all of the split points and clears any manually set center points.
getCenterPointThis action gets the center point of the given quilt, which can be used to aid in setting the split points.
setCenterPointThis action sets a center point.
clearCenterPointThis action clears a manually set center point of the given quilt.
getSplitsCountThis action gets the count of split locations.
getXYZsForSplitsThis action gets a list of points along the split locations.
splitQuiltsThis action splits the quilts of this mode.
isIncompatibleQuiltThis action checks if the given pw::Quilt object is incompatible with the current settings of this mode.
getIncompatibleQuiltsThis action returns the list of pw::Quilt objects that are incompatible with the current settings of this mode.
isInvalidSplitQuiltThis action checks if the given pw::Quilt object has any invalid split specifications or failed creation of split locations.
getInvalidSplitQuiltsThis action returns the list of pw::Quilt objects that have an invalid split specification or failed creation of split locations.
isInvalidSplitPointThis action checks if the point at the given index is an invalid split specification or the split location failed to be created.
getInvalidSplitPointsThis action returns the list of integer point indices that are an invalid split specification or the split location failed to be created.
getFailedSplitQuiltsThis action returns the list of pw::Quilt objects that were attempted to be split during the last call to <splitCurves>, but failed to be split.

Instance Attributes

SplitMode

$splitter get/setSplitMode split_mode

This attribute is the split mode.

Type

This attribute is a string with valid options < Bisect | OnePoint | TwoPoint | Star >.

Default

The default for this attribute is Bisect.

Note

Some quilts in the mode may only be compatible with certain combinations of SplitMode, SplitType, and SplitMethod.  Use getIncompatibleQuilts to check if any of the quilts are incompatible with the current settings.  If splitQuilts is called when one of these quilts is selected to be split, any other quilts will be successfully split, but the incompatible quilts will be ignored and can be retrieved using getInvalidSplitQuilts.

SplitType

$splitter get/setSplitType split_type

This attribute is the split type to carry out with the mode’s points.

Type

This attribute is a string with valid options < Curvature | Lengthwise | Widthwise | Orthogonal >.

Default

The default for this attribute is Curvature.

Note

This attribute is ignored when the SplitMode is TwoPoint or Star.

SplitMethod

$splitter get/setSplitMethod split_method

This attribute is the method which the splitting curves are generated.

Type

This attribute is a string with valid options < Parametric | Projected >.

Default

The default for this attribute is Parametric.

Note

This attribute is ignored when the SplitMode is Bisect or OnePoint.

ExtendMode

$splitter get/setExtendMode extend_mode

This attribute is the extend mode.

Type

This attribute is a string with valid options < None | Adjacent | AllAdjacent >.

Default

The default for this attribute is None.

MergeTolerance

$splitter get/setMergeTolerance tol

This attribute is the merge tolerance of the mode.  This tolerance is used in determining when to merge splits with existing quilt corners and with other splits.  This tolerance is also used to determine if a split is too close to an existing boundary which prevents the split and will be considered an invalid split specification.

Type

This attribute is of type float.

Default

The default for this attribute is the pw::Database.getFitTolerance when the mode was created.

ExtendMaximumBendAngle

$splitter get/setExtendMaximumBendAngle angle

This attribute is the maximum bending angle allowed when extending splits into adjacent quilts, with 0 meaning no maximum.

Type

A float in the range [0.0, 180.0).

Default

30.0

Instance Actions

getBisect

$splitter getBisect quilt

This action checks whether the given quilt will be bisected when the SplitMode is set to Bisect.  By default no quilts will be bisected.

Parameters

quiltThis required parameter is the pw::Quilt object to get whether to bisect in Bisect mode.  It must be a quilt that is part of this mode, otherwise an error will occur.

Returns

This action returns a boolean if the quilt is to be bisected.

setBisect

$splitter setBisect quilt bisect

This action sets whether the given quilt will be bisected when the SplitMode is set to Bisect.  By default no quilts will be bisected.

Parameters

quiltThis required parameter is the pw::Quilt object to set whether to bisect in Bisect mode.  It must be a quilt that is part of this mode, otherwise an error will occur.
bisectThis required parameter is a boolean for whether to bisect.

Returns

This action does not return anything.

getBisectQuilts

$splitter getBisectQuilts

This action returns the quilts that will be bisected when the SplitMode is set to Bisect.

Parameters

This action has no parameters.

Returns

This action returns a list of pw::Quilt objects that are set to be bisected when the SplitMode is set to Bisect.

See Also

pw::QuiltSplitter.getBisect

setBisectQuilts

$splitter setBisectQuilts quilts

This action sets the quilts that will be bisected when the SplitMode is set to Bisect.

Parameters

quiltsThis required parameter is the list of pw::Quilt objects to bisect when SplitMode is Bisect.  Any quilts previously set to bisect but not in the given list will no longer be bisected.  Any quilts in the list that are not part of this mode will be ignored.

Returns

This action does not return anything.

See Also

pw::QuiltSplitter.setBisect

getExtendSplits

$splitter getExtendSplits quilt

This action checks whether the given quilt will extend the splits of any neighboring quilts into itself.  By default all quilts will have splits extended.

Parameters

quiltThis required parameter is the pw::Quilt object to get whether to extend splits.  It must be a quilt that is part of this mode, otherwise an error will occur.

Returns

This action returns a boolean if splits are extended

setExtendSplits

$splitter setExtendSplits quilt extend

This action sets whether the given quilt will extend the splits of any neighboring quilts into itself.  By default all quilts will have splits extended.

Parameters

quiltThis required parameter is the pw::Quilt object to set whether to extend splits.  It must be a quilt that is part of this mode, otherwise an error will occur.
extendThis required parameter is a boolean for whether to extend.

Returns

This action does not return anything.

getExtendSplitsQuilts

$splitter getExtendSplitsQuilts

This action returns the quilts that will extending splits.

Parameters

This action has no parameters.

Returns

This action returns a list of pw::Quilt objects that are extending splits.

See Also

<pw::QuiltSplitter.getExtendSplit>

setExtendSplitsQuilts

$splitter setExtendSplitsQuilts quilts

This action sets the quilts that will extend splits.

Parameters

quiltsThis required parameter is the list of pw::Quilt objects to extend splits.  Any quilts previously set to extend splits but not in the given list will no longer extend splits.  Any quilts in the list that are not part of this mode will be ignored.

Returns

This action does not return anything.

See Also

pw::QuiltSplitter.setExtendSplits

getPointCount

$splitter getPointCount

This action gets the number of explicit points to split at.

Parameters

This action has no parameters.

Returns

This action returns the integer number of split points.

getPoint

$splitter getPoint index

This action gets the split point at the given index.

Parameters

indexThis required parameter is the integer index of the point to get in the range [1, number of points].

Returns

This action returns the point at the given index.

getPoints

$splitter getPoints

This action gets all the split points.

Parameters

This action has no parameters.

Returns

This action returns a list of points.

isValidPoint

$splitter isValidPoint point

This action checks if the given point is valid for this mode.

Parameters

pointThis required parameter is the point to check.

Returns

This action returns a boolean representing the validity of the point.

setPoint

$splitter setPoint index point

This action sets the split point at the given index.

Parameters

indexThis required parameter is the integer index of the point to set in the range [1, number of points].
pointThis required parameter is the point to set.

Returns

This action does not return anything.

addPoint

$splitter addPoint point

This action adds an explicit point to split the quilts at.

Parameters

pointThis required parameter is the point to add.

Returns

This action does not return anything.

insertPoint

$splitter insertPoint index point

This action inserts a split point before the given index.

Parameters

indexThis required parameter is the integer index to insert the given point in the range [1, number of points + 1]
pointThis required parameter is the point to be inserted.

Returns

This action does not return anything.

removePoint

$splitter removePoint index

This action removes the split point at the given index.

Parameters

indexThis required parameter is the index of the point to remove in the range [1, number of points].

Returns

This action does not return anything.

removeAllPoints

$splitter removeAllPoints

This action removes all of the split points and clears any manually set center points.

Parameters

This action has no parameters.

Returns

This action returns nothing.

getCenterPoint

$splitter getCenterPoint quilt

This action gets the center point of the given quilt, which can be used to aid in setting the split points.

Parameters

quiltThis required parameter is the pw::Quilt object to get the center point of.  It must be a quilt that is part of this mode, otherwise an error will occur.

Returns

This action returns the point at the center of the quilt.

setCenterPoint

$splitter setCenterPoint point

This action sets a center point.  The given point will override the computed center point returned by getCenterPoint for the quilt that the given point is defined on.

Parameters

pointThis required parameter is the point to set as a center point.  It must be defined on a quilt that is part of this mode, otherwise an error will occur.

Returns

This action returns nothing.

clearCenterPoint

$splitter clearCenterPoint point

This action clears a manually set center point of the given quilt.

Parameters

quiltThis required parameter is the pw::Quilt object to clear the center point of.  It must be a quilt that is part of this mode, otherwise an error will occur.

Returns

This action returns nothing.

getSplitsCount

$splitter getSplitsCount ?-type location_type? ?-quilts quilt_list? ?-points index_list?

This action gets the count of split locations.

Parameters

-type location_typeThis optional parameter is the string type of split locations to return with options < All | Explicit | Extension >.
-quilts quilt_listThis optional parameter gives a list of quilts to count the split locations of.  If not given, the split locations of all quilts will be counted.
-points index_listThis optional parameter gives a list of point indices to count the split locations of.  If not given, the split locations of all points will be counted.

Returns

This action returns the integer number of split locations.

Information

This command supports progress updates.

getXYZsForSplits

$splitter getXYZsForSplits ?-type location_type? ?-quilts quilt_list? ?-points index_list?

This action gets a list of points along the split locations.

Parameters

-type location_typeThis optional parameter is the string type of split locations to return with options < All | Explicit | Extension >.
-quilts quilt_listThis optional parameter gives a list of quilts to retrieve the split locations of.  If not given, the split locations of all quilts will be returned.
-points index_listThis optional parameter gives a list of point indices to retrieve the split locations of.  If not given, the split locations of all points will be returned.

Returns

This action returns xyz points representing the split location.  The result will be a list of lines, with each line specified as a list of XYZ vector values.

Information

This command supports progress updates.

splitQuilts

$quilter splitQuilts

This action splits the quilts of this mode.  The current settings of the mode will control how the splitting is carried out.  After splitting, all points will be removed and all quilts will be set to not bisect, but other settings of the mode will be the same.

Parameters

This action has no parameters.

Returns

This action returns a list of pw::Quilt objects that are newly created from the split.

Information

This command supports progress updates.

isIncompatibleQuilt

$splitter isIncompatibleQuilt ?-type location_type? quilt

This action checks if the given pw::Quilt object is incompatible with the current settings of this mode.

Parameters

-type location_typeThis optional parameter is the string type of split locations to check for incompatibility with options < All | Explicit | Extension >.
quiltThis required parameter is the pw::Quilt object to check.  It must be a quilt that is part of this mode, otherwise an error will occur.

Returns

This action returns a boolean, true if the quilt is incompatible.

Note

An example of an incompatible quilt is if the SplitMode is Bisect and the quilt has more than one loop.

getIncompatibleQuilts

$splitter getIncompatibleQuilts ?-type location_type?

This action returns the list of pw::Quilt objects that are incompatible with the current settings of this mode.

Parameters

-type location_typeThis optional parameter is the string type of split locations to check for incompatibility with options < All | Explicit | Extension >.

Returns

This action returns a list of pw::Quilt objects that are incompatible.

Note

An example of an incompatible quilt is if the SplitMode is Bisect and the quilt has more than one loop.

isInvalidSplitQuilt

$splitter isInvalidSplitQuilt ?-type location_type? quilt

This action checks if the given pw::Quilt object has any invalid split specifications or failed creation of split locations.

Parameters

-type location_typeThis optional parameter is the string type of split locations to check for incompatibility with options < All | Explicit | Extension >.
quiltThis required parameter is the pw::Quilt object to check.  It must be a quilt that is part of this mode, otherwise an error will occur.

Returns

This action returns a boolean, true if the quilt has invalid splits.

Note

A quilt will be considered invalid if it has at least one invalid split specification, even if other specifications are valid and would split the quilt.  An example of an invalid split specification is if the SplitMode is TwoPoint but only one point is specified on the quilt.  Another example is if the SplitMode is Bisect and a quilt with more than one loop is set to be bisected.

getInvalidSplitQuilts

$splitter getInvalidSplitQuilts ?-type location_type?

This action returns the list of pw::Quilt objects that have an invalid split specification or failed creation of split locations.

Parameters

-type location_typeThis optional parameter is the string type of split locations to check for incompatibility with options < All | Explicit | Extension >.

Returns

This action returns a list of pw::Quilt objects that have an invalid split specification.

Note

A quilt will be considered invalid if it has at least one invalid split specification, even if other specifications are valid and would split the quilt.  An example of an invalid split specification is if the SplitMode is TwoPoint but only one point is specified on the quilt.  Another example is if the SplitMode is Bisect and a quilt with more than one loop is set to be bisected.

isInvalidSplitPoint

$splitter isInvalidSplitPoint ?-type location_type? index

This action checks if the point at the given index is an invalid split specification or the split location failed to be created.

Parameters

-type location_typeThis optional parameter is the string type of split locations to check for incompatibility with options < All | Explicit | Extension >.
indexThis required parameter is the integer index of the point to check in the range [1, number of points].

Returns

This action returns a boolean, true if the point is an invalid split.

Note

An example of an invalid split specification is if the SplitMode is TwoPoint but only one point is specified on the quilt.

getInvalidSplitPoints

$splitter getInvalidSplitPoints ?-type location_type?

This action returns the list of integer point indices that are an invalid split specification or the split location failed to be created.

Parameters

-type location_typeThis optional parameter is the string type of split locations to check for incompatibility with options < All | Explicit | Extension >.

Returns

This action returns a list of integer point indices.

Note

An example of an invalid split specification is if the SplitMode is TwoPoint but only one point is specified on the quilt.

getFailedSplitQuilts

$splitter getFailedSplitQuilts

This action returns the list of pw::Quilt objects that were attempted to be split during the last call to <splitCurves>, but failed to be split.

Parameters

This action has no parameters.

Returns

This action returns a list of pw::Quilt objects that failed splitting.

$splitter get/setSplitMode split_mode
This attribute is the split mode.
$splitter get/setSplitType split_type
This attribute is the split type to carry out with the mode’s points.
$splitter get/setSplitMethod split_method
This attribute is the method which the splitting curves are generated.
$splitter get/setExtendMode extend_mode
This attribute is the extend mode.
$splitter get/setMergeTolerance tol
This attribute is the merge tolerance of the mode.
$splitter get/setExtendMaximumBendAngle angle
This attribute is the maximum bending angle allowed when extending splits into adjacent quilts, with 0 meaning no maximum.
$splitter getBisect quilt
This action checks whether the given quilt will be bisected when the SplitMode is set to Bisect.
$splitter setBisect quilt bisect
This action sets whether the given quilt will be bisected when the SplitMode is set to Bisect.
$splitter getBisectQuilts
This action returns the quilts that will be bisected when the SplitMode is set to Bisect.
$splitter setBisectQuilts quilts
This action sets the quilts that will be bisected when the SplitMode is set to Bisect.
$splitter getExtendSplits quilt
This action checks whether the given quilt will extend the splits of any neighboring quilts into itself.
$splitter setExtendSplits quilt extend
This action sets whether the given quilt will extend the splits of any neighboring quilts into itself.
$splitter getExtendSplitsQuilts
This action returns the quilts that will extending splits.
$splitter setExtendSplitsQuilts quilts
This action sets the quilts that will extend splits.
$splitter getPointCount
This action gets the number of explicit points to split at.
$splitter getPoint index
This action gets the split point at the given index.
$splitter getPoints
This action gets all the split points.
$splitter isValidPoint point
This action checks if the given point is valid for this mode.
$splitter setPoint index point
This action sets the split point at the given index.
$splitter addPoint point
This action adds an explicit point to split the quilts at.
$splitter insertPoint index point
This action inserts a split point before the given index.
$splitter removePoint index
This action removes the split point at the given index.
$splitter removeAllPoints
This action removes all of the split points and clears any manually set center points.
$splitter getCenterPoint quilt
This action gets the center point of the given quilt, which can be used to aid in setting the split points.
$splitter setCenterPoint point
This action sets a center point.
$splitter clearCenterPoint point
This action clears a manually set center point of the given quilt.
$splitter getSplitsCount ?-type location_type? ?-quilts quilt_list? ?-points index_list?
This action gets the count of split locations.
$splitter getXYZsForSplits ?-type location_type? ?-quilts quilt_list? ?-points index_list?
This action gets a list of points along the split locations.
$quilter splitQuilts
This action splits the quilts of this mode.
$splitter isIncompatibleQuilt ?-type location_type? quilt
This action checks if the given pw::Quilt object is incompatible with the current settings of this mode.
Database quilt type
$splitter getIncompatibleQuilts ?-type location_type?
This action returns the list of pw::Quilt objects that are incompatible with the current settings of this mode.
$splitter isInvalidSplitQuilt ?-type location_type? quilt
This action checks if the given pw::Quilt object has any invalid split specifications or failed creation of split locations.
$splitter getInvalidSplitQuilts ?-type location_type?
This action returns the list of pw::Quilt objects that have an invalid split specification or failed creation of split locations.
$splitter isInvalidSplitPoint ?-type location_type? index
This action checks if the point at the given index is an invalid split specification or the split location failed to be created.
$splitter getInvalidSplitPoints ?-type location_type?
This action returns the list of integer point indices that are an invalid split specification or the split location failed to be created.
An integer is a whole number.
$splitter getFailedSplitQuilts
This action returns the list of pw::Quilt objects that were attempted to be split during the last call to splitCurves, but failed to be split.
Base type for all glyph types
The mode base type
A string is an array of characters.
A float is a fractional number.
pw::Database getFitTolerance
This action gets the fit tolerance for database operations.
A boolean is represented as a 0 or 1, with 0 being false and 1 being true.
A point is a position either in model space or database parameter space.
A vector is a list of float values.
Close