Skip to content

Class uipc::constitution::AffineBodySphericalJoint

ClassList > uipc > constitution > AffineBodySphericalJoint

Inherits the following classes: uipc::constitution::InterAffineBodyConstitution

Public Functions

Type Name
AffineBodySphericalJoint (const Json & config=default_config())
void apply_to (geometry::SimplicialComplex & sc, span< S< geometry::SimplicialComplexSlot > > l_geo_slots, span< S< geometry::SimplicialComplexSlot > > r_geo_slots, Float strength_ratio=Float{100})
void apply_to (geometry::SimplicialComplex & sc, span< S< geometry::SimplicialComplexSlot > > l_geo_slots, span< IndexT > l_instance_id, span< S< geometry::SimplicialComplexSlot > > r_geo_slots, span< IndexT > r_instance_id, span< Vector3 > r_local_pos, span< Float > strength_ratio)
virtual ~AffineBodySphericalJoint ()

Public Functions inherited from uipc::constitution::IConstitution

See uipc::constitution::IConstitution

Type Name
std::string_view name () noexcept const
std::string_view type () noexcept const
U64 uid () noexcept const
const builtin::UIDInfo & uid_info () noexcept const
virtual ~IConstitution () = default

Public Static Functions

Type Name
Json default_config ()

Protected Functions inherited from uipc::constitution::IConstitution

See uipc::constitution::IConstitution

Type Name
virtual U64 get_uid () noexcept const = 0

Public Functions Documentation

function AffineBodySphericalJoint

uipc::constitution::AffineBodySphericalJoint::AffineBodySphericalJoint (
    const Json & config=default_config()
) 

function apply_to [1/2]

void uipc::constitution::AffineBodySphericalJoint::apply_to (
    geometry::SimplicialComplex & sc,
    span< S< geometry::SimplicialComplexSlot > > l_geo_slots,
    span< S< geometry::SimplicialComplexSlot > > r_geo_slots,
    Float strength_ratio=Float{100}
) 

function apply_to [2/2]

void uipc::constitution::AffineBodySphericalJoint::apply_to (
    geometry::SimplicialComplex & sc,
    span< S< geometry::SimplicialComplexSlot > > l_geo_slots,
    span< IndexT > l_instance_id,
    span< S< geometry::SimplicialComplexSlot > > r_geo_slots,
    span< IndexT > r_instance_id,
    span< Vector3 > r_local_pos,
    span< Float > strength_ratio
) 

function ~AffineBodySphericalJoint

virtual uipc::constitution::AffineBodySphericalJoint::~AffineBodySphericalJoint () 

Public Static Functions Documentation

function default_config

static Json uipc::constitution::AffineBodySphericalJoint::default_config () 


The documentation for this class was generated from the following file include/uipc/constitution/affine_body_spherical_joint.h