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.SingleFormulaBasedMaterial(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.SingleFormulaBasedMaterial(unit='random')
test_SingleFM=FBM.SingleFormulaBasedMaterial(unit='SchD')
test_SingleFM=FBM.SingleFormulaBasedMaterial(unit='gyroid')
test_SingleFM.formSolid(save=True,smooth=True)
test_SingleFM.formSurface(save=False)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for FormulaBasedMaterials-0.2.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9a05f656c84b5599a0440a43831d431f40145248d89067b555f505c31be9f4fd |
|
MD5 | 27d5172d40cab34f51388c922ef00cae |
|
BLAKE2b-256 | 589073658cb2afc881dc7d88f34969a41c972b4cfe23345c24c3e1be53ca263f |