pw:: Quilt

Database quilt type

Derives From

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

Summary
Database quilt type
This action assembles adjacent quilts within the same model when the maximum bend angle has not been exceeded.
This action modifies the given entities by imprinting a list of curves, modifying and/or splitting the quilts where the curves are imprinted.
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.
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
This action gets the number of trim surfaces in this quilt.
This action gets the trim surface at the given index.
This action gets the number of boundaries of the quilt.
This action gets a quilt boundary.
This action gets the groups of boundaries of the quilt.
This action untrims the boundaries of a quilt.
This action gets all the curves that are at least partially on the interior of the trim surfaces of this quilt.
This action gets the model that contains this quilt.
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.
This action splits the quilt so that each trim surface in the quilt is in it’s own quilt.
This action splits the quilt’s model so that this quilt is in it’s own model.
This action gets the closest point on this entity to the given point or ray.

Static Actions

assemble

pw::Quilt assemble ?-maximumAngle 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.
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.

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.

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.

getBoundaryCount

$quilt getBoundaryCount

This action gets the number of boundaries of the quilt.

Parameters

none

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.

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? quilts
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
$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 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 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.
An integer is a whole number.
Database trim surface type
Database curve type
Database model type
A point is a position either in model space or database parameter space.
Database surface type