Skip to main content

A code for generating Formula-Based Materials into Voxel, STL files.

Project description

FormulaBasedMaterials

Generate Formula-Based Materials into Voxel, STL files

Usage:

pip install FormulaBasedMaterials
import matplotlib.pyplot as plt
%matplotlib inline
import FormulaBasedMaterials as FBM

test_SingleFM=FBM.SingleFormulaBasedMaterials(formula='sin(x)*cos(y)+sin(y)*cos(z)+sin(z)*cos(x)+1', l=10, r=[1,1,1], a=[1,1,1], eps=0.2, res=0.2)
test_SingleFM=FBM.SingleFormulaBasedMaterials(unit='random')
test_SingleFM=FBM.SingleFormulaBasedMaterials(unit='SchD')
test_SingleFM=FBM.SingleFormulaBasedMaterials(unit='gyroid')
test_SingleFM.formSolid(save=True,smooth=True)
test_SingleFM.formSurface(save=False)

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

FormulaBasedMaterials-0.1.8.tar.gz (3.8 kB view details)

Uploaded Source

File details

Details for the file FormulaBasedMaterials-0.1.8.tar.gz.

File metadata

  • Download URL: FormulaBasedMaterials-0.1.8.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

File hashes

Hashes for FormulaBasedMaterials-0.1.8.tar.gz
Algorithm Hash digest
SHA256 cf9c18855b1dae8b08f9c25d3d8c9492dc0210af511611f6eafe80df893e47ae
MD5 34ae6a7abf66c4092488186f5ec6efc7
BLAKE2b-256 59e6a599e205a1d91c38e15d9b8215fa46edc04ec12741018c8762e2eb93be2c

See more details on using hashes here.

Supported by

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