Skip to content

Namespace uipc::geometry::affine_body

Namespace List > uipc > geometry > affine_body

Public Functions

Type Name
UIPC_GEOMETRY_API Vector12 compute_body_force (const SimplicialComplex & sc, const Vector3 & body_force_density)
Compute the body force of an affine body.
UIPC_GEOMETRY_API void compute_dyadic_mass (const SimplicialComplex & sc, Float rho, Float & m, Vector3 & m_x_bar, Matrix3x3 & m_x_bar_x_bar)
Compute the dyadic mass of a simplicial complex.

Public Functions Documentation

function compute_body_force

Compute the body force of an affine body.

UIPC_GEOMETRY_API Vector12 uipc::geometry::affine_body::compute_body_force (
    const SimplicialComplex & sc,
    const Vector3 & body_force_density
) 

Parameters:

  • sc The simplicial complex.
  • body_force_density The body force density in N/m^3.
  • body_force The body force

function compute_dyadic_mass

Compute the dyadic mass of a simplicial complex.

UIPC_GEOMETRY_API void uipc::geometry::affine_body::compute_dyadic_mass (
    const SimplicialComplex & sc,
    Float rho,
    Float & m,
    Vector3 & m_x_bar,
    Matrix3x3 & m_x_bar_x_bar
) 

Integrate the mass density over the simplicial complex to compute the dyadic mass.

Parameters:

  • sc The simplicial complex.
  • m The total mass.
  • m_x_bar The total mass times the center of mass.
  • m_x_bar_x_bar The total mass times the center of mass times the center of mass transpose.


The documentation for this class was generated from the following file include/uipc/geometry/utils/affine_body/compute_body_force.h