Class uipc::constitution::SoftVertexStitch
ClassList > uipc > constitution > SoftVertexStitch
Inherits the following classes: uipc::constitution::InterPrimitiveConstitution
Public Types
Type | Name |
---|---|
typedef std::tuple< core::ContactElement, core::ContactElement > | ContactElementTuple |
typedef std::tuple< S< geometry::SimplicialComplexSlot >, S< geometry::SimplicialComplexSlot > > | SlotTuple |
Public Functions
Type | Name |
---|---|
SoftVertexStitch (const Json & config=default_config()) |
|
geometry::Geometry | create_geometry (const SlotTuple & aim_geo_slots, span< const Vector2i > stitched_vert_ids, Float kappa=1e6) const Create soft vertex stitch constraints between two Geometries. |
geometry::Geometry | create_geometry (const SlotTuple & aim_geo_slots, span< const Vector2i > stitched_vert_ids, const ContactElementTuple & contact_elements, Float kappa=1e6) const |
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 Types Documentation
typedef ContactElementTuple
using uipc::constitution::SoftVertexStitch::ContactElementTuple = std::tuple<core::ContactElement, core::ContactElement>;
typedef SlotTuple
using uipc::constitution::SoftVertexStitch::SlotTuple = std::tuple<S<geometry::SimplicialComplexSlot>, S<geometry::SimplicialComplexSlot> >;
Public Functions Documentation
function SoftVertexStitch
function create_geometry [1/2]
Create soft vertex stitch constraints between two Geometries.
geometry::Geometry uipc::constitution::SoftVertexStitch::create_geometry (
const SlotTuple & aim_geo_slots,
span< const Vector2i > stitched_vert_ids,
Float kappa=1e6
) const
Parameters:
aim_geo_slots
The slots of the two geometries to be stitchedstitched_vert_ids
Each element is a pair of vertex ids, the first one is from the first geometry, the second one is from the second geometrykappa
The stiffness of the stitch constraint
function create_geometry [2/2]
geometry::Geometry uipc::constitution::SoftVertexStitch::create_geometry (
const SlotTuple & aim_geo_slots,
span< const Vector2i > stitched_vert_ids,
const ContactElementTuple & contact_elements,
Float kappa=1e6
) const
Public Static Functions Documentation
function default_config
The documentation for this class was generated from the following file include/uipc/constitution/soft_vertex_stitch.h