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.

  The Standard trial and the Standard license belong to each computer that runs the program: on another computer, a
  server or a render farm node it starts its own Standard trial and needs its own seat to keep running after 7 days.
  It needs the internet once to start the Standard trial or activate, then at least once every 7 days of use. To ship
  the engine inside an application you give to others, you need a Developer license: contact us at
  support@tangerina.io. Your application then activates its key at every start, offline, and its users need no
  activation, network or seat.


Standard and Developer licenses

  There are two licenses, and deformable_license_activate takes the key of either.

  The Standard license is for one person on one computer, and works in the Blender and Maya plugins and the C, Rust
  and Python SDKs. Its free trial runs 7 days and allows up to 2,500 tetrahedrons per scene: an object that would go
  over is not added, and the rest of the scene runs. After 7 days the engine calls stop until a license is activated.
  The Standard license costs $99 one time (USD), on the payment page. It is 1 seat (one computer), perpetual and with
  no subscription; it covers all future versions and includes email support at support@tangerina.io. It works offline
  between renewals, which are needed at least once every 7 days of use. It can be refunded within 14 days of purchase.

  The Developer license is for one company that ships the engine inside one application, and works in the C, Rust and
  Python SDKs only: the plugins refuse its key. Its free trial is a 30-day trial key that we email you when you ask,
  with no tetrahedron limit; when the trial key ends, the engine calls stop. It has no public price: to buy one, or to
  ask for a trial key, contact us at support@tangerina.io. It covers any number of users of that application,
  perpetual and with no subscription; it covers all future versions and includes email support at
  support@tangerina.io. Its key is checked offline and is kept only while the program runs, so your application
  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 once the full key is sent, so try it first with the 30-day trial key.

  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
