pw:: Model

Database model type

Derives From

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

Summary
Database model type
This action assembles adjacent models when the edges are within the given tolerance.
This action gets the number of quilts in this model.
This action gets the quilt at the given index.
This action gets the quilts of this model
This action gets all the curves that are at least partially on the interior of the trim surfaces of the quilts of this model.
This action splits the model by putting the given quilts into new models and all other quilts in this model are put into other new models.
This action splits the model so that each quilt in the model is in it’s own model.
This action flips the orientation of this model, if it is open.
This action aligns the normal orientation of the given models with this model.
This action modifies the model by imprinting the given curves.
This action projects a list of curves onto the model, and modifies the model by imprinting the curves and optionally trimming the model.
This action intersects a list of entities with the model, and modifies the model by imprinting the intersection curves and optionally trimming the model.
This action gets the number of boundaries of the model.
This action gets a model boundary.

Static Actions

assemble

pw::Model assemble ?-tolerance tol? ?-quiltMaximumAngle angle? ?-allowEmbeddedRegions? ?-reject rejectVar? ?-rejectReason rejectReasonVar? ?-rejectLocation rejectLocationVar? entities

This action assembles adjacent models when the edges are within the given tolerance.

Parameters

-tolerance tolThis optional parameter is the join tolerance, with the default value being the current fit tolerance.
-quiltMaximumAngle angleThis optional parameter is the float maximum bend angle for assembling adjacent quilts after assembling models with the range [0, 180].  The default is 0, which means that no quilts should be assembled.
-allowEmbeddedRegionsIf this optional parameter is present, models enclosed within other models will be assembled into a single model.
-reject rejectVarThis optional parameter is the name string of the variable that receives a list of pw::Model and pw::Surface objects that were not used in assemble because of problems like overlapping entities.
-rejectReason rejectReasonVarThis optional parameter is the name string of the variable that receives a list of string reasons for reject the objects reported by the reject parameter.
-rejectLocation rejectLocationVarThis optional parameter is the name string of the variable that receives a list of vector locations associated with the reject and rejectReason parameters.
entitiesThis parameter is a list of pw::Model and pw::Surface objects to assemble.

Returns

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

Instance Actions

getQuiltCount

$model getQuiltCount

This action gets the number of quilts in this model.

Parameters

This action has no parameters.

Returns

This action returns the integer number of quilts.

getQuilt

$model getQuilt index

This action gets the quilt at the given index.

Parameters

indexThis parameter is the integer index of the quilt to get with the range [1, number of quilts].

Returns

This action returns a pw::Quilt object.

Note

Performance of this action may be slow if the model has many quilts.  The preferred method to iterate over the quilts of this model is to get them all with a single call using the getQuilts method.

getQuilts

$model getQuilts

This action gets the quilts of this model

Parameters

This action has no parameters.

Returns

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

getInteriorCurves

$model getInteriorCurves

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

Parameters

This action has no parameters.

Returns

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

split

$model split ?-reassemble? quilts

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

Parameters

-reassembleIf this optional parameter is present, the given quilts are assembled into as few models as possible.
quiltsThis parameter is a list of pw::Quilt objects.

Returns

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

explode

$model explode

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

Parameters

none

Returns

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

flipOrientation

$model flipOrientation

This action flips the orientation of this model, if it is open.

Parameters

none

Returns

This action returns nothing.

alignOrientation

$model alignOrientation ?-tolerance tol? models

This action aligns the normal orientation of the given models with this model.  If any models in the given list are not connected within the given tolerance to this model, they will be ignored.

Parameters

-tolerance tolThis parameter is the tolerance used to consider models adjacent; It defaults to the fit tolerance.
modelsThis parameter is a list of pw::Model objects to align.

Returns

This action returns nothing.

trimByCurves

$model trimByCurves curves

This action modifies the model by imprinting the given curves.

Parameters

curvesThis is a list of curves and/or boundaries to imprint onto the model.

Returns

This action returns a list of the pw::Model objects after the action.

trimByProjections

$model trimByProjections ?-tolerance tol? ?-type proj_type? ?-direction direction? ?-keep side? curves

This action projects a list of curves onto the model, and modifies the model by imprinting the curves and optionally trimming the model.

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 >.
curvesThis is a list of curves and/or boundaries to project onto the model.

Returns

This action returns a list of the pw::Model objects after the action.

trimBySurfaces

$model trimBySurfaces ?-tolerance tol? ?-mode imprint_mode? ?-keep side? entities

This action intersects a list of entities with the model, and modifies the model by imprinting the intersection curves and optionally trimming the model.

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 >.
entitiesThis is a list of pw::Surface, pw::Plane and pw::Model objects to intersect with the model.

Returns

This action returns a list of the pw::Model objects after the action.

getBoundaryCount

$model getBoundaryCount

This action gets the number of boundaries of the model.

Parameters

none

Returns

This action returns the number of boundaries of the model.

getBoundary

$model getBoundary index

This action gets a model boundary.

Parameters

indexThis parameter is the index of the boundary to get.

Returns

This action returns a boundary.

pw::Model assemble ?-tolerance tol? ?-quiltMaximumAngle angle? ?-allowEmbeddedRegions? ?-reject rejectVar? ?-rejectReason rejectReasonVar? ?-rejectLocation rejectLocationVar? entities
This action assembles adjacent models when the edges are within the given tolerance.
$model getQuiltCount
This action gets the number of quilts in this model.
$model getQuilt index
This action gets the quilt at the given index.
$model getQuilts
This action gets the quilts of this model
$model getInteriorCurves
This action gets all the curves that are at least partially on the interior of the trim surfaces of the quilts of this model.
$model split ?-reassemble? quilts
This action splits the model by putting the given quilts into new models and all other quilts in this model are put into other new models.
$model explode
This action splits the model so that each quilt in the model is in it’s own model.
$model flipOrientation
This action flips the orientation of this model, if it is open.
$model alignOrientation ?-tolerance tol? models
This action aligns the normal orientation of the given models with this model.
$model trimByCurves curves
This action modifies the model by imprinting the given curves.
$model trimByProjections ?-tolerance tol? ?-type proj_type? ?-direction direction? ?-keep side? curves
This action projects a list of curves onto the model, and modifies the model by imprinting the curves and optionally trimming the model.
$model trimBySurfaces ?-tolerance tol? ?-mode imprint_mode? ?-keep side? entities
This action intersects a list of entities with the model, and modifies the model by imprinting the intersection curves and optionally trimming the model.
$model getBoundaryCount
This action gets the number of boundaries of the model.
$model getBoundary index
This action gets a model boundary.
A boundary is reference to either a database curve or the edge of a database surface.
Base type for all glyph types
Entity type
Base type for all database entities
A float is a fractional number.
A string is an array of characters.
Database model type
Database surface type
A vector is a list of float values.
An integer is a whole number.
Database quilt type
Database curve type
Database plane type