Skip to main content

Tools to create FFD operator from point cloud.

Project description

PyFFD

PyFFD is an open-source Free Form Deformation (FFD) library.

Code

Quick start

(1) Define a FEM mesh :

n = np.array([[x0, y0], [x1, y1], ...])

(2) Define the elements size and degree for the B-Spline box in each direction :

# Element size per directions
size = [size_x, size_y]
# global setting
size = 0.1 # example

# Element degree per directions
deg = [deg_x, deg_y]
# global setting
deg = 3 # example

(3) Create the B-Spline box python object :

sbox = pf.FFD(n, size, deg)

(4) Compute the FFD opperator $R_s$ :

Rs = sbox.OperatorFFD()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

PyFFD-0.1.5.tar.gz (9.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

PyFFD-0.1.5-py3-none-any.whl (9.9 kB view details)

Uploaded Python 3

File details

Details for the file PyFFD-0.1.5.tar.gz.

File metadata

  • Download URL: PyFFD-0.1.5.tar.gz
  • Upload date:
  • Size: 9.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.12

File hashes

Hashes for PyFFD-0.1.5.tar.gz
Algorithm Hash digest
SHA256 307aba62451dba6e76b0e21a0f3495a14a750f3380fcc0dd00efd69f0e799f94
MD5 b7dc9696f1727089472b575455633d26
BLAKE2b-256 f06e4e5f60405c11088acb206c947fbf498f0d352a495288839210b7f7025fca

See more details on using hashes here.

File details

Details for the file PyFFD-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: PyFFD-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 9.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.12

File hashes

Hashes for PyFFD-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 3858b1791b395522867fd318d05c12b1a9e254f6f958612cc77b0316a64993c1
MD5 c9358fff1a0329945104f459c8c6ea34
BLAKE2b-256 d2fb5fa7e271ae829ac4ac7b7e0086127c5fa07b5e8efe24a43a4aea5c64ab04

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page