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 Standard license belongs to each device that runs the program: on another device, a server or a render farm node
  the program runs under the Free license unless that device has a seat of its own. It needs the internet 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 a Developer license. Your application then activates its key at every start, offline, and its users need no
  activation, network or seat.


Free, Standard and Developer licenses

  There are three licenses, and deformable_license_activate takes the key of either paid one.

  The Free license 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 a Developer license.

  The Standard 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
  Standard license. It can be refunded on the Licenses page within 14 days of purchase.

  The Developer 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 Developer trial starts on the Licenses page: its key has no limit,
  and when it ends the engine falls back to the Free license. 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.

  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
