Generation of open beam path files based on different strategies
Project description
Installation
Install it by cloning the git reprository or from PyPi using:
pip install obpcreator
Example from pyvista cube
from obpcreator.simple_input import SimpleBuild
import pyvista as pv
cube1 = pv.Cube(center=(15,-15,5),x_length=10,y_length=10,z_length=10)
cube2 = pv.Cube(center=(15,0,5),x_length=10,y_length=10,z_length=10)
cube3 = pv.Cube(center=(15,15,5),x_length=10,y_length=10,z_length=10)
cube4 = pv.Cube(center=(0,-15,5),x_length=10,y_length=10,z_length=10)
cube5 = pv.Cube(center=(0,0,5),x_length=10,y_length=10,z_length=10)
cube6 = pv.Cube(center=(0,15,5),x_length=10,y_length=10,z_length=10)
cube7 = pv.Cube(center=(-15,-15,5),x_length=10,y_length=10,z_length=10)
cube8 = pv.Cube(center=(-15,0,5),x_length=10,y_length=10,z_length=10)
cube9 = pv.Cube(center=(-15,15,5),x_length=10,y_length=10,z_length=10)
build = SimpleBuild(
meshes = [cube1, cube2, cube3, cube4, cube5, cube6, cube7],
spot_size = [1],
beam_power = [660],
scan_speed = [2031000],
dwell_time = [515000],
infill_strategy = ["line_concentric", "line_concentric", "line_spiral", "line_spiral", "line_snake", "point_random", "point_ordered"],
infill_settings = [{'direction': 'inward'}, {'direction': 'outward'},{'direction': 'inward'}, {'direction': 'outward'}, {},{},{'x_jump':2, 'y_jump':2}],
infill_point_distance = [0.1],
layer_height = 0.1,
rotation_angle = [0],
)
build.prepare_build(r"C:\Users\antwi87\Downloads\slicerTest2")
To package
- Delete old builds in the \dist folder
- Update the version in the setup.cfg file
- run "python -m build"
- upload to pip with "twine upload dist/*"
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
obpcreator-0.0.8.tar.gz
(13.7 kB
view hashes)
Built Distribution
obpcreator-0.0.8-py3-none-any.whl
(16.1 kB
view hashes)
Close
Hashes for obpcreator-0.0.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fd119b0a7e23a1582ae0afbe4066f925b2254be5e5c627b0e996a244234a8f60 |
|
MD5 | df4939e3d9f716f59dfd62d6488a16da |
|
BLAKE2b-256 | 8fdd3cbb66bd788d2cee70d886def578346e629f6e1428dd17dfca1650bbcd86 |