struct MAGES::MeshDeformations::CalculateCovarianceMatricesJob

Overview

Calculates the covariance matrix for each simulation mesh. More…

struct CalculateCovarianceMatricesJob: public IJob
{
    // fields

    NativeArray ParticlesEnabled;
    NativeArray ParticlesPosition;
    NativeArray ParticlesLocalRestPosition;
    NativeArray ParticlesSimulationMeshDescriptorIndex;
    NativeArray SimulationMeshCoM;
    NativeArray SimulationMeshCovarianceMatrix;

    // methods

    void Execute();
};

Detailed Documentation

Calculates the covariance matrix for each simulation mesh.

Fields

NativeArray ParticlesEnabled

The enabled state of the particles.

NativeArray ParticlesPosition

The position of the particles.

NativeArray ParticlesLocalRestPosition

The local position of each particle in the rest configuration.

NativeArray ParticlesSimulationMeshDescriptorIndex

The index of the simulation mesh descriptor for each particle.

NativeArray SimulationMeshCoM

The center of mass of each simulation mesh.

NativeArray SimulationMeshCovarianceMatrix

The covariance matrix for each simulation mesh.