pw::Quilt

Database quilt type

Derives From

pw::Object pw::Entity pw::DatabaseEntity

Summary
pw::QuiltDatabase quilt type
Static Actions
assembleThis action assembles adjacent quilts within the same model when the maximum bend angle has not been exceeded.
assembleMultipleThis action assembles adjacent quilts within the same model when the maximum bend angle has not been exceeded.
trimByCurvesThis action modifies the given entities by imprinting a list of curves, modifying and/or splitting the quilts where the curves are imprinted.
trimByProjectionsThis action modifies the given entities by projecting a list of curves onto each entity and then imprinting the result, modifying and/or splitting the quilts where the curves are imprinted.
trimBySurfacesThis action intersects two lists of entities, and modifies the first set of entities (and optionally the second set) by imprinting the intersection curves on the entities, modifying and/or splitting the quilts where the curves are imprinted, and then optionally only keeping one side of the imprinted entities
getBoundariesFromCurveThis action gets all quilt boundaries that are supported by the given pw::Curve object.
isFromTrimThis action checks whether a given boundary was created from a trim action such as trimByCurves.
isFromQuiltSplitterThis action checks whether a given boundary was created from a split carried out by a QuiltSplitter mode.
Instance Actions
getSurfaceTrimCountThis action gets the number of trim surfaces in this quilt.
getSurfaceTrimThis action gets the trim surface at the given index.
getSurfaceTrimsThis action gets the trimmed surfaces of this quilt
getBoundaryCountThis action gets the number of boundaries of the quilt.
getBoundaryThis action gets a quilt boundary.
getBoundariesThis action gets a quilt boundary list.
getBoundaryCurveThis action gets a list of pw::Curve objects and normalized curve parameters that serves as the quilt boundary.
getBoundaryCurvesThis action gets the pw::Curve objects and normalized curve parameters that serve as the quilt boundaries.
getBoundaryGroupsThis action gets the groups of boundaries of the quilt.
untrimBoundariesThis action untrims the boundaries of a quilt.
getInteriorCurvesThis action gets all the curves that are at least partially on the interior of the trim surfaces of this quilt.
getModelThis action gets the model that contains this quilt.
splitThis action splits the quilt by putting the given trim surfaces into new quilts and all other trim surfaces in this quilt are put into other new quilts.
explodeThis action splits the quilt so that each trim surface in the quilt is in it’s own quilt.
isolateThis action splits the quilt’s model so that this quilt is in it’s own model.
closestPointThis action gets the closest point on this entity to the given point or ray.

Static Actions

assemble

pw::Quilt assemble ?-maximumAngle angle? ?-boundaryMaximumAngle angle? quilts

This action assembles adjacent quilts within the same model when the maximum bend angle has not been exceeded.

Parameters

-maximumAngle angleThis optional parameter is the float maximum bend angle for assembling adjacent quilts with the range [0, 180].  The default is 180.
-boundaryMaximumAngle angleThis optional parameter is the float maximum boundary bend angle for assembling adjacent quilts with the range [0, 180].  The default is 0.
quiltsThis parameter is a list of pw::Quilt objects to assemble.

Returns

This action returns a list of the pw::Quilt objects that are the result of the assemble operation.

assembleMultiple

pw::Quilt assembleMultiple ?-maximumAngle angle? ?-boundaryMaximumAngle angle? quiltArrays

This action assembles adjacent quilts within the same model when the maximum bend angle has not been exceeded.  The quilts to assembly are given in multiple lists and only those within the same lists will be assembled together.

Parameters

-maximumAngle angleThis optional parameter is the float maximum bend angle for assembling adjacent quilts with the range [0, 180].  The default is 180.
-boundaryMaximumAngle angleThis optional parameter is the float maximum boundary bend angle for assembling adjacent quilts with the range [0, 180].  The default is 0.
quiltArraysThis parameter is a list of lists of pw::Quilt objects to assemble.  If a quilt is included in multiple lists, it will only be assembled with the list in which it first appears.

Returns

This action returns a list of lists of the pw::Quilt objects that are the result of the assemble operation.

trimByCurves

pw::Quilt trimByCurves entities curves

This action modifies the given entities by imprinting a list of curves, modifying and/or splitting the quilts where the curves are imprinted.

Parameters

entitiesThis is a list of models, quilts, trim surfaces, surfaces and planes to imprint on.
curvesThis is a list of curves and/or boundaries to imprint onto the entities.

Returns

This action returns a list of the pw::Quilt objects that were modified or created by this action.

trimByProjections

pw::Quilt trimByProjections ?-tolerance tol? ?-type proj_type? ?-direction direction? ?-keep side? entities curves

This action modifies the given entities by projecting a list of curves onto each entity and then imprinting the result, modifying and/or splitting the quilts where the curves are imprinted.  The curves are not modified, and are projected multiple times to each of the passed in entities.

Parameters

-tolerance tolThis optional parameter is the projection tolerance, with the default value being the current fit tolerance.
-type proj_typeThis optional parameter is the string projection type to perform with options < ClosestPoint | Linear >.
-direction directionThis optional parameter is the projection vector for linear projection.  The default is the positive z-axis.
-keep sideThis optional parameter is a string which specifies what side (based on the normal of the entities) of the imprinted entities is kept with options < Both | Inside | Outside >.
entitiesThis is a list of models, quilts, trim surfaces, surfaces and planes to project and imprint on.
curvesThis is a list of curves and/or boundaries to imprint onto the entities.

Returns

This action returns a list of the pw::Quilt objects that were modified or created by this action.

trimBySurfaces

pw::Quilt trimBySurfaces ?-tolerance tol? ?-mode imprint_mode? ?-keep side? entities1 entities2

This action intersects two lists of entities, and modifies the first set of entities (and optionally the second set) by imprinting the intersection curves on the entities, modifying and/or splitting the quilts where the curves are imprinted, and then optionally only keeping one side of the imprinted entities

Parameters

-tolerance tolThis optional parameter is the intersection tolerance, with the default value being the current fit tolerance.
-mode imprint_modeThis optional parameter is a string which specifies which set of entities are imprinted on with options < Both | First >.
-keep sideThis optional parameter is a string which specifies what side (based on the normal of the entities) of the imprinted entities is kept with options < Both | Inside | Outside >.
entities1This is a list of models, quilts, trim surfaces, surfaces and planes to intersect, imprint on, and trim.
entities2This is a list of models, quilts, trim surfaces, surfaces and planes to intersect, optionally imprint on, and trim.

Returns

This action returns a list of the pw::Quilt objects that were modified or created by this action.

getBoundariesFromCurve

pw::Quilt getBoundariesFromCurve <curve>

This action gets all quilt boundaries that are supported by the given pw::Curve object.

Parameters

curveThis parameter is a pw::Curve object

Returns

This action returns a list of boundaries.

isFromTrim

pw::Quilt isFromTrim boundary

This action checks whether a given boundary was created from a trim action such as trimByCurves.

Parameters

boundaryThis required parameter is the boundary to check.

Returns

This action returns a boolean which will be true if the boundary was created from a trim action.

isFromQuiltSplitter

pw::Quilt isFromQuiltSplitter boundary

This action checks whether a given boundary was created from a split carried out by a QuiltSplitter mode.

Parameters

boundaryThis required parameter is the boundary to check.

Returns

This action returns a boolean which will be true if the boundary was created from a split carried out by a QuiltSplitter mode.

Instance Actions

getSurfaceTrimCount

$quilt getSurfaceTrimCount

This action gets the number of trim surfaces in this quilt.

Parameters

This action has no parameters.

Returns

This action returns the integer number of trim surfaces.

getSurfaceTrim

$quilt getSurfaceTrim index

This action gets the trim surface at the given index.

Parameters

indexThis parameter is the integer index of the trim surface to get with the range [1, number of trim surfaces].

Returns

This action returns a pw::SurfaceTrim object.

getSurfaceTrims

$quilt getSurfaceTrims

This action gets the trimmed surfaces of this quilt

Parameters

This action has no parameters.

Returns

This action returns a list of pw::SurfaceTrim objects.

getBoundaryCount

$quilt getBoundaryCount

This action gets the number of boundaries of the quilt.

Parameters

none

Information

This action returns the number of boundaries of a pw.Quilt.  A quilt boundary may be “lamina” (used only once within the quilt) or “manifold” (used twice within the same quilt).  A “manifold” quilt boundary can consist of a shared boundary between topologically adjacent pw.SurfaceTrim objects that has been marked as “hard” (geometrically significant in some way), or a branch cut edge within a single pw.SurfaceTrim.  Note that sequences of edges (trimming curves, or boundaries, of pw.SurfaceTrim) can be returned as a single boundary under the condition that no other hard edge shares a vertex (edge end point) with any of the other boundary edges.  To discover boundaries of pw.SurfaceTrim, see pw.SurfaceTrim.getBoundaries.

See Also

getBoundaries, getBoundary, pw.Model.getBoundaryCount, pw.SurfaceTrim.getBoundaryCount

Returns

This action returns the number of boundaries of the quilt.

getBoundary

$quilt getBoundary index

This action gets a quilt boundary.

Parameters

indexThis parameter is the index of the boundary to get.

Returns

This action returns a boundary.  See getBoundaryCount for a description of what constitutes a quilt boundary.

See Also

getBoundaryCount, getBoundaries, pw.Model.getBoundary, pw.SurfaceTrim.getBoundary

getBoundaries

$quilt getBoundaries

This action gets a quilt boundary list.

Parameters

This action has no parameters.

Information

This action returns the boundaries (list of boundary) of a pw.Quilt.  See getBoundaryCount for a description of what constitutes a quilt boundary.

See Also

getBoundaryCount, getBoundary, pw.Model.getBoundaries, pw.SurfaceTrim.getBoundaries

Returns

This action returns a boundary list.

getBoundaryCurve

$quilt getBoundaryCurve index

This action gets a list of pw::Curve objects and normalized curve parameters that serves as the quilt boundary.

Parameters

-limitsThis optional parameter alters the return value to include normalized curve parameters denoting the portion of the curve on the boundary.
indexThis parameter is the index of the boundary to get the curve of.

Returns

This action returns a list of pw::Curve objects and, optionally, normalized curve parameters defining the curve’s interval on the boundary.

getBoundaryCurves

$quilt getBoundaryCurves

This action gets the pw::Curve objects and normalized curve parameters that serve as the quilt boundaries.

Parameters

-limitsThis optional parameter alters the return value to include normalized curve parameters denoting the portion of the curve on the boundary.

Returns

This action returns a list of lists of pw::Curve objects and, optionally, normalized curve parameters defining the curve’s interval on the boundary.

getBoundaryGroups

$quilt getBoundaryGroups ?-usage use? ?-loop type? ?-untrimmable?

This action gets the groups of boundaries of the quilt.  The types of groups can be limited by the optional parameters

Parameters

-usage useThis optional parameter limits the returned groups to only those that contain boundaries of a given usage with valid values < All | Lamina | Manifold >.
-loop typeThis optional parameter limits the returned groups to only those that contain boundaries in the given loop type with valid values < All | Outer | Inner >.
-untrimmableThis optional parameter limits the returned groups to only those that lie on the interior of the base surface, thus making the groups untrimmable by the untrimBoundaries action.

Returns

This action returns a list of boundary groups, with each boundary group represented as a list of boundary indexes.

untrimBoundaries

$quilt untrimBoundaries indices

This action untrims the boundaries of a quilt.

Parameters

indicesThis parameter is a list of boundary indices to untrim.

Returns

This action returns nothing.

Information

Untrimming a boundary will cause all boundaries in the boundary’s group to be untrimmed.  If the boundary is not in an untrimmable group, the action will error and no boundaries will be untrimmed.

getInteriorCurves

$quilt getInteriorCurves

This action gets all the curves that are at least partially on the interior of the trim surfaces of this quilt.

Parameters

This action has no parameters.

Returns

This action returns a list of pw::Curve objects.

getModel

$quilt getModel

This action gets the model that contains this quilt.

Parameters

none

Returns

This action returns a pw::Model object.

split

$quilt split ?-reassemble? tsurfs

This action splits the quilt by putting the given trim surfaces into new quilts and all other trim surfaces in this quilt are put into other new quilts.  The given trim surfaces will each be in their own quilts, unless the -reassemble parameter is specified.

Parameters

-reassembleIf this optional parameter is present, the given trim surfaces are assembled into as few quilts as possible.
tsurfsThis parameter is a list of pw::SurfaceTrim objects.

Returns

This action returns a list of the new pw::Quilt objects.

explode

$quilt explode

This action splits the quilt so that each trim surface in the quilt is in it’s own quilt.

Parameters

none

Returns

This action returns a list of the new pw::Quilt objects.

isolate

$quilt isolate

This action splits the quilt’s model so that this quilt is in it’s own model.

Parameters

none

Returns

This action returns the new pw::Model object that contains the quilt.

closestPoint

$entity closestPoint ?-from fromVar? ?-distance distVar? ?-surfaces surf_list? point ?dir?

This action gets the closest point on this entity to the given point or ray.

Parameters

-from fromVarThis optional parameter is the string name of a variable to receive the xyz of the given point or the point along the ray that is closest to this entity.
-distance distVarThis optional parameter is the string name of a variable to receive the float distance between the given point or ray and the point entity.
-surfaces surf_listThis optional parameter is a list of pw::Surface or pw::SurfaceTrim objects that are part of the quilt which will limit the closest point only to these parts of the quilt.
pointThis parameter is the point that is projected onto this database entity.
dirThis parameter is a direction vector for finding the closest point from a ray.

Returns

This action returns a point, in the parameter space of this database entity, if there is no closest point this action will return the origin.

pw::Quilt assemble ?-maximumAngle angle? ?-boundaryMaximumAngle angle? quilts
This action assembles adjacent quilts within the same model when the maximum bend angle has not been exceeded.
pw::Quilt assembleMultiple ?-maximumAngle angle? ?-boundaryMaximumAngle angle? quiltArrays
This action assembles adjacent quilts within the same model when the maximum bend angle has not been exceeded.
pw::Quilt trimByCurves entities curves
This action modifies the given entities by imprinting a list of curves, modifying and/or splitting the quilts where the curves are imprinted.
pw::Quilt trimByProjections ?-tolerance tol? ?-type proj_type? ?-direction direction? ?-keep side? entities curves
This action modifies the given entities by projecting a list of curves onto each entity and then imprinting the result, modifying and/or splitting the quilts where the curves are imprinted.
pw::Quilt trimBySurfaces ?-tolerance tol? ?-mode imprint_mode? ?-keep side? entities1 entities2
This action intersects two lists of entities, and modifies the first set of entities (and optionally the second set) by imprinting the intersection curves on the entities, modifying and/or splitting the quilts where the curves are imprinted, and then optionally only keeping one side of the imprinted entities
pw::Quilt getBoundariesFromCurve <curve>
This action gets all quilt boundaries that are supported by the given pw::Curve object.
Database curve type
pw::Quilt isFromTrim boundary
This action checks whether a given boundary was created from a trim action such as trimByCurves.
pw::Quilt isFromQuiltSplitter boundary
This action checks whether a given boundary was created from a split carried out by a QuiltSplitter mode.
The quilt splitter mode type
$quilt getSurfaceTrimCount
This action gets the number of trim surfaces in this quilt.
$quilt getSurfaceTrim index
This action gets the trim surface at the given index.
$quilt getSurfaceTrims
This action gets the trimmed surfaces of this quilt
$quilt getBoundaryCount
This action gets the number of boundaries of the quilt.
$quilt getBoundary index
This action gets a quilt boundary.
A boundary is reference to either a database curve or the edge of a database surface.
$quilt getBoundaries
This action gets a quilt boundary list.
$quilt getBoundaryCurve index
This action gets a list of pw::Curve objects and normalized curve parameters that serves as the quilt boundary.
$quilt getBoundaryCurves
This action gets the pw::Curve objects and normalized curve parameters that serve as the quilt boundaries.
$quilt getBoundaryGroups ?-usage use? ?-loop type? ?-untrimmable?
This action gets the groups of boundaries of the quilt.
$quilt untrimBoundaries indices
This action untrims the boundaries of a quilt.
$quilt getInteriorCurves
This action gets all the curves that are at least partially on the interior of the trim surfaces of this quilt.
$quilt getModel
This action gets the model that contains this quilt.
$quilt split ?-reassemble? tsurfs
This action splits the quilt by putting the given trim surfaces into new quilts and all other trim surfaces in this quilt are put into other new quilts.
$quilt explode
This action splits the quilt so that each trim surface in the quilt is in it’s own quilt.
$quilt isolate
This action splits the quilt’s model so that this quilt is in it’s own model.
$entity closestPoint ?-from fromVar? ?-distance distVar? ?-surfaces surf_list? point ?dir?
This action gets the closest point on this entity to the given point or ray.
Base type for all glyph types
Entity type
Base type for all database entities
A float is a fractional number.
Database quilt type
A string is an array of characters.
A vector is a list of float values.
A boolean is represented as a 0 or 1, with 0 being false and 1 being true.
An integer is a whole number.
Database trim surface type
$tsurf getBoundaries
This action gets a trim surface boundary list.
$model getBoundaryCount
This action gets the number of boundaries of the model.
$tsurf getBoundaryCount
This action gets the number of boundary curves of the trim surface.
$model getBoundary index
This action gets a lamina model boundary.
$tsurf getBoundary index
This action gets a trim surface boundary.
$model getBoundaries
This action gets the model boundary list.
Database model type
A point is a position either in model space or database parameter space.
Database surface type
Close