class
soft_body_handleA handle to a soft body.
Constructors, destructors, conversion operators
- operator bool() const explicit constexpr noexcept
- Returns true if this handle represents a soft_body (i.e is not null).
- operator object_handle() const noexcept
- Casts this handle to a generic object_
handle. - soft_body_handle() defaulted constexpr noexcept
- Default-constructs a null handle.
-
soft_body_handle(const soft_
body_ handle&) defaulted constexpr noexcept - Copy constructor.
Public functions
-
auto flags() const -> soft_
body_ flags noexcept - Gets the flags associated with this soft body, if any.
-
auto operator=(const soft_
body_ handle&) -> soft_ body_ handle& defaulted noexcept - Copy-assignment operator.
Mesh readers
RAII mesh readers for applying geometry changes back into your scene.
-
auto leftover_mesh_reader() -> result<mesh_
reader> noexcept - Gets a mesh reader for extracting the 'leftover' mesh (i.e. parts of the initial mesh that did not intersect with the simulation workspace).
-
auto mesh_reader() -> result<mesh_
reader> noexcept - Gets a mesh reader so you can apply geometry changes back into your scene.
Function documentation
result<mesh_ reader> stim:: soft_body_handle:: leftover_mesh_reader() noexcept
Gets a mesh reader for extracting the 'leftover' mesh (i.e. parts of the initial mesh that did not intersect with the simulation workspace).