pw:: Shell

Database shell type

Derives From

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

Summary
Database shell type
This action joins as many of the given shells together as possible.
This action gets the number of faces in the shell.
This action gets the vertices of the triangles for a face in the shell.
This action gets the number of boundaries of the shell.
This action gets a shell boundary.
This action extracts a curve from the boundary of this shell.
This action extracts curves from edges of this shell where the bend angle is greater than the given angle.
This action extracts lines from edges of this shell where the bend angle is greater than the given angle.
This action splits this shell where the bend angle is greater than the given angle.
This action will return a list of shells split by the given plane.
This action flips the orientation of this shell.
This action aligns the normal orientation of the given shells with this shell.

Static Actions

join

pw::Shell join ?-reject rejectVar? ?-tolerance tol? shell

This action joins as many of the given shells together as possible.

Parameters

-reject rejectVarThis optional parameter is a variable name to recieve a list of pw::Shell objects that were not used in joining.
-tolerance tolThis optional parameter is the fit tolerance.
shellsThis parameter is a list of pw::Shell objects to join.

Returns

This action returns a list of the pw::Shell objects that were joined.

Information

This command supports progress updates.

Instance Actions

getFaceCount

$shell getFaceCount

This action gets the number of faces in the shell.

Parameters

none

Returns

This action returns the number of faces in the shell.

getFaceTriangles

$shell getFaceTriangles index

This action gets the vertices of the triangles for a face in the shell.

Parameters

indexThis parameter is the index of the face to get [1, number of faces].

Returns

This action returns a list of points, where every three represent a triangle that make up the face.

getBoundaryCount

$shell getBoundaryCount

This action gets the number of boundaries of the shell.

Parameters

none

Returns

This action returns the number of boundaries of the shell.

getBoundary

$shell getBoundary index

This action gets a shell boundary.

Parameters

indexThis parameter is the index of the boundary to get.

Returns

This action returns a boundary.

extractBoundary

$shell extractBoundary index

This action extracts a curve from the boundary of this shell.

Parameters

indexThis parameter is the index of the boundary to extract [1, number of boundaries].

Returns

This action returns a new pw::Curve object.

extractCurves

$shell extractCurves ?-boundariesOnly? bend_angle

This action extracts curves from edges of this shell where the bend angle is greater than the given angle.

Parameters

-boundariesOnlyThis optional parameter will limit the extracted lines to only the edges at the boundaries of the shells that would result when splitting the shell at the given bend angle.
bend_angleThis parameter is the bend angle at which to extract curves in degrees; (0, 180).

Returns

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

extractLines

$shell extractLines ?-boundariesOnly? ?-shellCount shellsVar? ?-curveCount curvesVar? bend_angle

This action extracts lines from edges of this shell where the bend angle is greater than the given angle.

Parameters

-boundariesOnlyThis optional parameter will limit the extracted lines to only the edges at the boundaries of the shells that would result when splitting the shell at the given bend angle.
-shellCount numShellsThis optional parameter is the number of shells that come from splitting at the given bend angle.
-curveCount numCurvesThis optional parameter is the number of shells that come from the extraction.
bend_angleThis parameter is the bend angle at which to extract curves in degrees; (0, 180).

Returns

This action returns a list of XYZ points, with pairs of points for the edges.

split

$shell split bend_angle

This action splits this shell where the bend angle is greater than the given angle.

Parameters

bend_angleThis parameter is the bend angle at which to split the shell in degrees; (0, 180).

Returns

This action returns a list of new pw::Shell objects.

splitByPlane

This action will return a list of shells split by the given plane.

Parameters

planeThis parameter is the plane used to split the shell.

Returns

This action returns a list of new pw::Shell objects.

flipOrientation

$shell flipOrientation

This action flips the orientation of this shell.

Parameters

none

Returns

This action returns nothing.

alignOrientation

$shell alignOrientation ?-tolerance tol? shells

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

Parameters

-tolerance tolThis parameter is the tolerance used to consider shells adjacent; It defaults to the fit tolerance.
shellsThis parameter is a list of pw::Shell objects to align.

Returns

This action returns nothing.

pw::Shell join ?-reject rejectVar? ?-tolerance tol? shell
This action joins as many of the given shells together as possible.
$shell getFaceCount
This action gets the number of faces in the shell.
$shell getFaceTriangles index
This action gets the vertices of the triangles for a face in the shell.
$shell getBoundaryCount
This action gets the number of boundaries of the shell.
$shell getBoundary index
This action gets a shell boundary.
A boundary is reference to either a database curve or the edge of a database surface.
$shell extractBoundary index
This action extracts a curve from the boundary of this shell.
$shell extractCurves ?-boundariesOnly? bend_angle
This action extracts curves from edges of this shell where the bend angle is greater than the given angle.
$shell extractLines ?-boundariesOnly? ?-shellCount shellsVar? ?-curveCount curvesVar? bend_angle
This action extracts lines from edges of this shell where the bend angle is greater than the given angle.
$shell split bend_angle
This action splits this shell where the bend angle is greater than the given angle.
$shell flipOrientation
This action flips the orientation of this shell.
$shell alignOrientation ?-tolerance tol? shells
This action aligns the normal orientation of the given shells with this shell.
Base type for all glyph types
Entity type
Base type for all database entities
Database shell type
Database curve type