Open 3D Engine AzCore API Reference 23.10.0
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
AZ::PolygonPrism Class Reference

#include <PolygonPrism.h>

Public Member Functions

void SetHeight (float height)
 Set the height of the polygon prism.
 
float GetHeight () const
 Return the height of the polygon prism.
 
void SetNonUniformScale (const AZ::Vector3 &nonUniformScale)
 Set the non-uniform scale applied to the polygon prism.
 
AZ::Vector3 GetNonUniformScale () const
 Return the non-uniform scale applied to the polygon prism.
 
void SetCallbacks (const VoidFunction &onChangeElement, const VoidFunction &onChangeContainer, const VoidFunction &onChangeHeight, const VoidFunction &onChangeNonUniformScale)
 Override callbacks to be used when polygon prism changes/is modified (general).
 
void SetCallbacks (const IndexFunction &onAddVertex, const IndexFunction &onRemoveVertex, const IndexFunction &onUpdateVertex, const VoidFunction &onSetVertices, const VoidFunction &onClearVertices, const VoidFunction &onChangeHeight, const VoidFunction &onChangeNonUniformScale)
 

Static Public Member Functions

static void Reflect (ReflectContext *context)
 

Public Attributes

VertexContainer< Vector2m_vertexContainer
 Reference to underlying vertex data.
 

Detailed Description

Formal Definition: A (right) polygonal prism is a 3-dimensional prism made from two translated polygons connected by rectangles. Parallelogram sides are not allowed. Here the representation is defined by one polygon (internally represented as a vertex container - list of vertices) and a height (extrusion) property. All vertices lie on the local plane Z = 0.

Member Function Documentation

◆ SetCallbacks()

void AZ::PolygonPrism::SetCallbacks ( const IndexFunction onAddVertex,
const IndexFunction onRemoveVertex,
const IndexFunction onUpdateVertex,
const VoidFunction onSetVertices,
const VoidFunction onClearVertices,
const VoidFunction onChangeHeight,
const VoidFunction onChangeNonUniformScale 
)

Override callbacks to be used when spline changes/is modified (specific). (use if you need more fine grained control over modifications to the container)


The documentation for this class was generated from the following file: