Glyph2 Version 2.18.0 |
## pw:: ModelDatabase model type ## Derives Frompw::Object pw::Entity pw::DatabaseEntity Summary
## assemble
This action assembles adjacent models when the edges are within the given tolerance. ## Parameters
## ReturnsThis action returns a list of the pw::Model objects that are the result of the assemble operation. ## isSameEdge
This action checks if two boundaries represent the same edge in a model. ## Parameters
## ReturnsThis action returns true if the given boundaries are all on the same edge of a model. ## getQuiltCount
This action gets the number of quilts in this model. ## ParametersThis action has no parameters. ## ReturnsThis action returns the integer number of quilts. ## getQuilt
This action gets the quilt at the given index. ## Parameters
## ReturnsThis action returns a pw::Quilt object. ## NotePerformance 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
This action gets the quilts of this model ## ParametersThis action has no parameters. ## ReturnsThis action returns a list of pw::Quilt objects. ## getSurfaceTrims
This action gets the trimmed surfaces of this model ## ParametersThis action has no parameters. ## ReturnsThis action returns a list of pw::SurfaceTrim objects. ## 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. ## ParametersThis action has no parameters. ## ReturnsThis action returns a list of pw::Curve objects. ## split
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
## ReturnsThis action returns a list of the new pw::Model objects. ## explode
This action splits the model so that each quilt in the model is in it’s own model. ## Parametersnone ## ReturnsThis action returns a list of the new pw::Model objects. ## alignOrientation
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
## ReturnsThis action returns nothing. ## trimByCurves
This action modifies the model by imprinting the given curves. ## Parameters
## ReturnsThis action returns a list of the pw::Model objects after the action. ## trimByProjections
This action projects a list of curves onto the model, and modifies the model by imprinting the curves and optionally trimming the model. ## Parameters
## ReturnsThis action returns a list of the pw::Model objects after the action. ## trimBySurfaces
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
## ReturnsThis action returns a list of the pw::Model objects after the action. |

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

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

This action checks if two boundaries represent the same edge in a model.

pw::Model isSameEdge boundaries

This action gets the number of quilts in this model.

$model getQuiltCount

This action gets the quilt at the given index.

$model getQuilt index

This action gets the quilts of this model

$model getQuilts

This action gets the trimmed surfaces of this model

$model getSurfaceTrims

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 getInteriorCurves

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 split ?-reassemble? quilts

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

$model explode

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

$model flipOrientation

This action aligns the normal orientation of the given models with this model.

$model alignOrientation ?-tolerance tol? models

This action modifies the model by imprinting the given curves.

$model trimByCurves 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 trimByProjections ?-tolerance tol? ?-type proj_type? ?-direction direction? ?-keep side? curves

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 trimBySurfaces ?-tolerance tol? ?-mode imprint_mode? ?-keep side? entities

This action gets the number of boundaries of the model.

$model getBoundaryCount

This action gets a model boundary.

$model getBoundary index

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 trim surface type

Database curve type

Database plane type