Go to www.awrcorp.com
Back to search page Click to download printable version of this guide.

3.5.1.8. Prism

Description

A primitive closed solid containing two identical regular polygonal bases of identical number of sides and radii connected by flat surfaces. Oblique prisms are supported by defining the axial direction to not be perpendicular to the bottom base.

Parameters

Label – A unique name that identifies the solid. (ISolid/Label)

Coordinate System – The coordinate system in which the solid is defined. Defaults to working coordinate system at time of creation. (ISolid/CoordinateSystem)

Material – Chosen material for the solid. (ISolid/Material)

Include in Simulation – Indicates if the solid is included in the simulation.  If False, the solid is also not shown in the view. (ISolid/Include)

Visible - Indicates if the solid is shown in the view. (ISolid/Visible)

Mesh Control Only - Indicates if the solid is used as a tool to control meshing. If True, the portion of the solid that does not overlap the other normal solid is thrown away prior to simulation. Additionally, the material of such a solid is irrelevant so the material parameter is hidden. (ISolid/MeshControlOnly)

Center - [LENGTH] – Center of the base of the prism defined in the solid’s coordinate system. (ICylinder/Center)

Radius - [LENGTH] - Radius of the regular polygon of the base. (ICylinder/Radius)

Height - [LENGTH] - Extent of the prism in the axial direction. (ICylinder/Height)

Axial Direction - Direction of the axis of the prism defined in the solid’s coordinate system. This is a unitless vector and its magnitude is irrelevant. (ICylinder/Direction)

Number of Sides - Number of sides in the regular polygonal of the base of the prism. (IPrism/NumberOfSides)

Split Curved Faces - If true, curved faces are split into multiple faces. (ICylinder/SplitPeriodicFaces)

Example(s)

User Interface Button

Command Details

Mouse click order is:
1. Center
2. Radius
3. Height
See command hint for detailed instructions.

Requirements

The radius must be greater than zero. The magnitude of the axial direction must be non-zero. The number of sides must be greater than 2.

Other Notes

You can collapse a prism in the axial direction by setting the height to zero as one method of constructing a 2D regular polygon (also known as a sheet body).

Example Creation Script

Solid_1 = Geometry_1.Prism("Prism_1", "World", "Air", "0.03, -0.03, 0", "0, 0, 1", "0.005", "8", "0.006")

Scripting Interfaces

“ISolid”
“IPrism”
“ICylinder”
“ISolidCreationOperation”
“ISolidOperation”

Please send email to awr.support@ni.com if you would like to provide feedback on this article. Please make sure to include the article link in the email.

Legal and Trademark Notice