Database model type

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

Summary

pw:: | Database model type |

Static Actions | |

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

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

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

Instance Actions | |

getQuiltCount | This action gets the number of quilts in this model. |

getQuilt | This action gets the quilt at the given index. |

getQuilts | This action gets the quilts of this model |

getSurfaceTrims | This action gets the trimmed surfaces of this 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. |

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. |

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

flipOrientation | This action flips the orientation of this model. |

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

orientRelative | This action orients a model with respect to a point, by doing a closest point projection and reversing the orientation of the model so that the normal matches the inside or outside mode given. |

trimByCurves | This action modifies the model by imprinting the given curves. |

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

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. |

getBoundaryCount | This action gets the number of boundaries of the model. |

getBoundary | This action gets a lamina model boundary. |

getBoundaries | This action gets the model boundary list. |

getBoundaryCurve | This action gets a list of pw::Curve objects that serves as the model boundary. |

getBoundaryCurves | This action gets the pw::Curve objects that serve as the model boundaries. |

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

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

-tolerance tol | This optional parameter is the join tolerance, with the default value being the current fit tolerance. |

-quiltMaximumAngle angle | This 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. |

-quiltBoundaryMaximumAngle angle | This optional parameter is the float maximum boundary bend angle for assembling adjacent quilt boundaries after assembling models with the range [0, 180]. The default is 0, which means that no quilts boundaries should be combined. |

-allowEmbeddedRegions | If this optional parameter is present, models enclosed within other models will be assembled into a single model. |

-reject rejectVar | This 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 rejectReasonVar | This 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 rejectLocationVar | This optional parameter is the name string of the variable that receives a list of vector locations associated with the reject and rejectReason parameters. |

entities | This parameter is a list of pw::Model and pw::Surface objects to assemble. |

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

pw::Model isSameEdge boundaries

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

boundaries | This parameter is a list of quilt or trim surface style boundaries that will all be compared to see if they represent the same edge in a single model. |

This action returns true if the given boundaries are all on the same edge of a model, or if a boundary is contained within another boundary.

pw::Model getBoundariesFromCurve <curve>

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

curve | This parameter is a pw::Curve object |

This action returns a list of boundaries.

$model getQuiltCount

This action gets the number of quilts in this model.

This action has no parameters.

This action returns the integer number of quilts.

$model getQuilt index

This action gets the quilt at the given index.

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

This action returns a pw::Quilt object.

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.

$model getQuilts

This action gets the quilts of this model

This action has no parameters.

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

$model getSurfaceTrims

This action gets the trimmed surfaces of this model

This action has no parameters.

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

$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.

This action has no parameters.

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

$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.

-reassemble | If this optional parameter is present, the given quilts are assembled into as few models as possible. |

quilts | This parameter is a list of pw::Quilt objects. |

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

$model explode

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

none

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

$model alignOrientation ?-tolerance tol? models

This action aligns the normal orientation of the given models with this model. If this model is open, any models in the given list that are connected within the given tolerance to this model, will have their orientation aligned. If this model is closed, any closed models in the given list that are contained within this model, or that this model is fully contained within, will have their orientation aligned. Any other models that don’t fit the criteria will be ignored.

-tolerance tol | This parameter is the tolerance used to consider models adjacent; It defaults to the fit tolerance. |

models | This parameter is a list of pw::Model objects to align. |

This action returns nothing.

$model orientRelative ?<-outside | -inside>? point

This action orients a model with respect to a point, by doing a closest point projection and reversing the orientation of the model so that the normal matches the inside or outside mode given.

-outside | This optional parameter specifies that the given point should be outside the model. |

-inside | This optional parameter specifies that the given point should be inside the model. |

point | This is a point to be classified as inside or outside the model. The default mode is outside if none given |

This action returns nothing.

$model trimByCurves curves

This action modifies the model by imprinting the given curves.

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

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

$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.

-tolerance tol | This optional parameter is the projection tolerance, with the default value being the current fit tolerance. |

-type proj_type | This optional parameter is the string projection type to perform with options < ClosestPoint | Linear >. |

-direction direction | This optional parameter is the projection vector for linear projection. The default is the positive z-axis. |

-keep side | This 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 >. |

curves | This is a list of curves and/or boundaries to project onto the model. |

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

$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.

-tolerance tol | This optional parameter is the intersection tolerance, with the default value being the current fit tolerance. |

-mode imprint_mode | This optional parameter is a string which specifies which set of entities are imprinted on with options < Both | First >. |

-keep side | This 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 >. |

entities | This is a list of pw::Surface, pw::Plane and pw::Model objects to intersect with the model. |

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

$model getBoundaryCount

This action gets the number of boundaries of the model.

none

This action returns the number of lamina boundaries of a pw.Model. All model boundaries are the lamina boundaries of the pw.Quilts of which the model is composed. Here, “lamina” means that the boundary is used only once by all of the quilts of the model. Manifold boundaries (used by exactly two pw.Quilts, or used twice within the same pw.Quilt, are not returned. pw.Model does not support non-manifold boundary topology.

getBoundary, getBoundaries, pw.Quilt.getBoundaryCount, pw.SurfaceTrim.getBoundaryCount

This action returns the number of boundaries of the model.

$model getBoundary index

This action gets a lamina model boundary.

-quilt | If specified, this option indicates that the boundary should be expressed as a quilt boundary. |

index | This parameter is the index of the boundary to get. |

See getBoundaryCount for a description of what constitutes a “lamina” model boundary. pw.Model does not support non-manifold boundary topology.

getBoundaryCount, getBoundaries, pw.Quilt.getBoundary, pw.SurfaceTrim.getBoundary

This action returns a boundary.

$model getBoundaries

This action gets the model boundary list.

-quilt | If specified, this option indicates that each boundary should be expressed as a quilt boundary. |

See getBoundaryCount for a description of what constitutes a “lamina” model boundary. To discover pw.Quilt boundaries, see pw.Quilt.getBoundaries.

getBoundaryCount, getBoundary, pw.Quilt.getBoundaries, pw.SurfaceTrim.getBoundaries

This action returns a boundary list.

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

pw::Model assemble ?-tolerance tol? ?-quiltMaximumAngle angle? ?-quiltboundaryMaximumAngle 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 all model boundaries that are supported by the given pw::Curve object.

pw::Model getBoundariesFromCurve <curve>

Database curve type

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.

$model flipOrientation

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

$model alignOrientation ?-tolerance tol? models

This action orients a model with respect to a point, by doing a closest point projection and reversing the orientation of the model so that the normal matches the inside or outside mode given.

$model orientRelative ?<-outside | -inside>? point

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 lamina model boundary.

$model getBoundary index

A boundary is reference to either a database curve or the edge of a database surface.

This action gets the model boundary list.

$model getBoundaries

This action gets a list of pw::Curve objects that serves as the model boundary.

$model getBoundaryCurve index

This action gets the pw::Curve objects that serve as the model boundaries.

$model getBoundaryCurves

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

A point is a position either in model space or database parameter space.

Database plane type

This action gets the number of boundaries of the quilt.

$quilt getBoundaryCount

This action gets the number of boundary curves of the trim surface.

$tsurf getBoundaryCount

This action gets a quilt boundary.

$quilt getBoundary index

This action gets a trim surface boundary.

$tsurf getBoundary index

This action gets a quilt boundary list.

$quilt getBoundaries

This action gets a trim surface boundary list.

$tsurf getBoundaries