Deformable C SDK

Finite element deformation and fracture of tetrahedral meshes, as a C library: a scene your program drives frame
by frame, the render surfaces embedded in its objects, and the mesh tools that prepare its inputs.


Contents

  include/deformable.h   The C99 header. It documents every function, type and status code, and the conventions
                         they follow.
  lib/                   libdeformable as a shared library and as a static library (on Windows: deformable.dll, its
                         import library deformable.dll.lib, and the static library deformable.lib).
  lib/cmake/deformable   The CMake package.
  LICENSE.md             The license.
  THIRD_PARTY_NOTICES.txt
                         The notice of the third-party code in libdeformable: its tetrahedralize tool is based on
                         Netgen and is licensed under the GNU LGPL 2.1.


On macOS

  A browser marks a downloaded zip, unzipping copies the mark onto each file, and macOS will not load a marked library
  that is not notarized, so a program linked with libdeformable.dylib would never start. Clear the mark once, in this
  folder:

    xattr -dr com.apple.quarantine .


With CMake

  Add this folder to CMAKE_PREFIX_PATH, then:

    find_package(deformable CONFIG REQUIRED)
    target_link_libraries(your_program PRIVATE deformable::deformable)

  deformable::static links the static library instead, together with the system libraries it needs.


Without CMake

  In this folder, with your_program.c in it:

  macOS and Linux:  cc -I include your_program.c -L lib -ldeformable -Wl,-rpath,"$PWD/lib" -o your_program
  Windows:          cl /I include your_program.c lib\deformable.dll.lib
                    copy lib\deformable.dll .

  The run path lets the program find the shared library in lib/ when it starts. On Windows, the program finds
  deformable.dll beside it.


Running

  Ship the shared library next to your program, and let the program find it there:

  macOS     The library's install name is @rpath/libdeformable.dylib: link with -Wl,-rpath,@executable_path.
  Linux     Link with -Wl,-rpath,'$ORIGIN'.
  Windows   Put deformable.dll beside the executable.

  A program linked with deformable::static needs no library at run time.

  A Standalone subscription or license belongs to each device that runs the program: on another device, a server or a
  render farm node the program runs under Free unless that device has a seat of its own. A subscription needs the
  internet to sign in, then at least once a day; a license, to activate its key, then at least once every 7 days to
  renew it. To ship the engine inside an application you give to others,
  you need an Application license. Your application then activates its key at every start, offline, and its users need
  no activation, network or seat.


Free, Standalone subscription, Standalone license and Application license

  There are four ways to use Deformable: Free, the Standalone subscription, which deformable_license_start_sign_in
  signs in to, and two licenses, whose keys deformable_license_activate takes.

  Free needs no key, no account and no internet, and nothing is sent. The engine works forever in the
  Blender and Maya plugins and the C, Rust and Python SDKs, up to 2,500 tetrahedrons per scene: an object that would
  go over is not added, and the rest of the scene runs. It is for your own work, personal or commercial; to ship the
  engine inside an application that others use, you need an Application license.

  The Standalone subscription removes the limit on 1 device, in the plugins and the SDKs, for your own work, with
  email support at support@tangerina.io. It costs $14 per month or $79 per year (USD), on the Subscriptions page of
  the Tangerina platform, and can be cancelled any time; its first payment can be refunded within 14 days. There is no
  key: you sign in with your account in the browser (deformable_license_start_sign_in, then
  deformable_license_wait_for_sign_in), and the subscription's lease then renews by itself while the engine runs
  online; the device may stay offline up to 1 day. deformable_license_take_over uses it on this device instead of
  another, and deformable_license_sign_out frees the seat. A device holds a subscription or a Standalone license, not
  both.

  The Standalone license removes the limit, with 1 device per seat, in the plugins and the SDKs. It costs $99 per seat,
  one time (USD), on the Licenses page of the Tangerina platform. It is perpetual and covers every future version, with
  email support at support@tangerina.io. Its key, tgdfp-xxxxx-xxxxx-xxxxx-xxxxx, is activated online; the license
  then renews by itself while the engine runs online, and the device may stay offline up to 7 days between renewals.
  deformable_license_deactivate frees the seat for another device. The plugins and every SDK on the device share one
  Standalone license. It can be refunded on the Licenses page within 14 days of purchase.

  The Application license is for one company that ships the engine inside one app, and works in the C, Rust and Python
  SDKs only: the plugins refuse its key. It costs $499 per app, then $99 per year to keep updates (USD), on the Licenses
  page. Its key covers every version released while its updates are paid and keeps working in those versions forever,
  for any number of users of that app. A free 30-day Application trial starts on the Licenses page: its key has no
  limit, and when it ends the engine falls back to Free. The key is checked offline and kept only while the
  program runs, so your app activates it at every start, as its first Deformable call, before status and refresh; its
  users need no activation, network or seat. There is no refund, so try it first with the 30-day trial.

  Subscriptions:  https://platform.tangerina.io/subscriptions
  Licenses:       https://platform.tangerina.io/licenses
  Licensing:      https://docs.tangerina.io/deformable/latest/licensing/


Rust

  The Rust SDK, the crate deformable, links this library, which its build downloads by itself. To build without a
  download, set DEFORMABLE_LIB_DIR to the absolute path of this SDK's lib folder. Either way, ship the shared library
  next to your program as above.


Documentation: https://docs.tangerina.io
Downloads:     https://tangerina.io/deformable#download-c
