Blender V5.3
blender::xpbd::ConstraintSetParams Class Reference

#include <GEO_xpbd_constraint_set_params.hh>

Public Member Functions

Inline Functions
 ConstraintSetParams (Span< GeometryRef > geometry_refs, float delta_time)
Span< GeometryRef > geometry_refs () const
Span< float3 > positions (int geo_i) const
const float3 & position (int geo_i, int point_i) const
Span< math::Quaternion > rotations (int geo_i) const
const math::Quaternion & rotation (int geo_i, int point_i) const
Span< float3 > prev_positions (int geo_i) const
const float3 & prev_position (int geo_i, int point_i) const
Span< math::Quaternion > prev_rotations (int geo_i) const
const math::Quaternion & prev_rotation (int geo_i, int point_i) const
Span< float3 > velocities (int geo_i) const
const float3 & velocity (int geo_i, int point_i) const
Span< float3 > angular_velocities (int geo_i) const
const float3 & angular_velocity (int geo_i, int point_i) const
Span< float > inv_masses (int geo_i) const
float inv_mass (int geo_i, int point_i) const
Span< float3 > moments_of_inertia (int geo_i) const
float3 moment_of_inertia (int geo_i, int point_i) const
Span< float3 > inv_moments_of_inertia (int geo_i) const
float3 inv_moment_of_inertia (int geo_i, int point_i) const

Public Attributes

float delta_time
float compliance_term_factor
float dynamic_friction_factor

Detailed Description

Provides access to the input data that should be considered by a constraint.

Definition at line 12 of file GEO_xpbd_constraint_set_params.hh.

Constructor & Destructor Documentation

◆ ConstraintSetParams()

blender::xpbd::ConstraintSetParams::ConstraintSetParams ( Span< GeometryRef > geometry_refs,
float delta_time )
inline

Member Function Documentation

◆ angular_velocities()

Span< float3 > blender::xpbd::ConstraintSetParams::angular_velocities ( int geo_i) const
inline

Definition at line 129 of file GEO_xpbd_constraint_set_params.hh.

◆ angular_velocity()

const float3 & blender::xpbd::ConstraintSetParams::angular_velocity ( int geo_i,
int point_i ) const
inline

◆ geometry_refs()

Span< GeometryRef > blender::xpbd::ConstraintSetParams::geometry_refs ( ) const
inline

Definition at line 66 of file GEO_xpbd_constraint_set_params.hh.

Referenced by ConstraintSetParams().

◆ inv_mass()

◆ inv_masses()

Span< float > blender::xpbd::ConstraintSetParams::inv_masses ( int geo_i) const
inline

Definition at line 139 of file GEO_xpbd_constraint_set_params.hh.

◆ inv_moment_of_inertia()

float3 blender::xpbd::ConstraintSetParams::inv_moment_of_inertia ( int geo_i,
int point_i ) const
inline

Definition at line 154 of file GEO_xpbd_constraint_set_params.hh.

◆ inv_moments_of_inertia()

Span< float3 > blender::xpbd::ConstraintSetParams::inv_moments_of_inertia ( int geo_i) const
inline

Definition at line 159 of file GEO_xpbd_constraint_set_params.hh.

◆ moment_of_inertia()

float3 blender::xpbd::ConstraintSetParams::moment_of_inertia ( int geo_i,
int point_i ) const
inline

◆ moments_of_inertia()

Span< float3 > blender::xpbd::ConstraintSetParams::moments_of_inertia ( int geo_i) const
inline

Definition at line 149 of file GEO_xpbd_constraint_set_params.hh.

◆ position()

◆ positions()

Span< float3 > blender::xpbd::ConstraintSetParams::positions ( int geo_i) const
inline

Definition at line 104 of file GEO_xpbd_constraint_set_params.hh.

◆ prev_position()

const float3 & blender::xpbd::ConstraintSetParams::prev_position ( int geo_i,
int point_i ) const
inline

◆ prev_positions()

Span< float3 > blender::xpbd::ConstraintSetParams::prev_positions ( int geo_i) const
inline

Definition at line 114 of file GEO_xpbd_constraint_set_params.hh.

◆ prev_rotation()

const math::Quaternion & blender::xpbd::ConstraintSetParams::prev_rotation ( int geo_i,
int point_i ) const
inline

Definition at line 87 of file GEO_xpbd_constraint_set_params.hh.

◆ prev_rotations()

Span< math::Quaternion > blender::xpbd::ConstraintSetParams::prev_rotations ( int geo_i) const
inline

Definition at line 119 of file GEO_xpbd_constraint_set_params.hh.

◆ rotation()

◆ rotations()

Span< math::Quaternion > blender::xpbd::ConstraintSetParams::rotations ( int geo_i) const
inline

Definition at line 109 of file GEO_xpbd_constraint_set_params.hh.

◆ velocities()

Span< float3 > blender::xpbd::ConstraintSetParams::velocities ( int geo_i) const
inline

Definition at line 124 of file GEO_xpbd_constraint_set_params.hh.

◆ velocity()

const float3 & blender::xpbd::ConstraintSetParams::velocity ( int geo_i,
int point_i ) const
inline

Member Data Documentation

◆ compliance_term_factor

◆ delta_time

◆ dynamic_friction_factor

float blender::xpbd::ConstraintSetParams::dynamic_friction_factor

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