Class uipc::constitution::SoftPositionConstraint
ClassList > uipc > constitution > SoftPositionConstraint
Inherits the following classes: uipc::constitution::Constraint
Public Functions
Type | Name |
---|---|
SoftPositionConstraint (const Json & config=default_config()) noexcept |
|
void | apply_to (geometry::SimplicialComplex & sc, Float strength_rate=100.0) const Apply the constraint to the simplicial complex vertices. |
Public Functions inherited from uipc::constitution::Constraint
See uipc::constitution::Constraint
Type | Name |
---|---|
Constraint () noexcept |
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
Type | Name |
---|---|
virtual U64 | get_uid () noexcept override const |
Protected Functions inherited from uipc::constitution::Constraint
See uipc::constitution::Constraint
Type | Name |
---|---|
void | apply_to (geometry::SimplicialComplex & sc) const |
virtual U64 | get_uid () noexcept const = 0 |
Protected Functions inherited from uipc::constitution::IConstitution
See uipc::constitution::IConstitution
Type | Name |
---|---|
virtual U64 | get_uid () noexcept const = 0 |
Public Functions Documentation
function SoftPositionConstraint
uipc::constitution::SoftPositionConstraint::SoftPositionConstraint (
const Json & config=default_config()
) noexcept
function apply_to
Apply the constraint to the simplicial complex vertices.
void uipc::constitution::SoftPositionConstraint::apply_to (
geometry::SimplicialComplex & sc,
Float strength_rate=100.0
) const
Parameters:
sc
The simplicial complex to apply the constraint to.strength_rate
The strength of the constraint will bestrength_rate * vertex_mass
.is_kinematic
If the vertices' kinetic energy is not considered.
Public Static Functions Documentation
function default_config
Protected Functions Documentation
function get_uid
Implements uipc::constitution::Constraint::get_uid
The documentation for this class was generated from the following file include/uipc/constitution/soft_position_constraint.h