Open 3D Engine PhysX Gem 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.
PhysX::Pipeline::AbstractShapeParameterization Class Referenceabstract

#include <AbstractShapeParameterization.h>

Public Types

using Ptr = AZStd::unique_ptr< AbstractShapeParameterization >
 Pointer definition used as the return type by the factory function for creating abstract shapes.
 

Public Member Functions

virtual AZ::u32 GetDegreesOfFreedom () const =0
 Number of parameters required to describe this shape.
 
virtual AZStd::vector< double > PackArguments () const =0
 Pack the parameters into a vector.
 
virtual void UnpackArguments (const AZStd::vector< double > &args)=0
 Unpack the parameters from a vector.
 
virtual double GetVolume () const =0
 Compute the volume of the shape defined by the current set of parameters.
 
virtual double SquaredDistanceToShape (const Vector &vertex) const =0
 Calculate the squared distance of a vertex from the shape defined by the current set of parameters.
 
virtual MeshAssetData::ShapeConfigurationPair GetShapeConfigurationPair () const =0
 Extract an actual shape configuration from the current parameterization.
 

Detailed Description

This interface encapsulates the concept of a shape expressed as a set of variable parameters. It supports the operations required by the primitive collider fitting routine to find the optimal parameterization for a given vertex cloud.


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