#include <AbstractShapeParameterization.h>
|
using | Ptr = AZStd::unique_ptr< AbstractShapeParameterization > |
| Pointer definition used as the return type by the factory function for creating abstract shapes.
|
|
|
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.
|
|
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:
- Gems/PhysX/Code/Source/Pipeline/PrimitiveShapeFitter/AbstractShapeParameterization.h