Skip to main content

A library for the creation of beam paths

Project description

OBPlib-Python

Python library to generate OBP data for metal 3d printers.

Minimum example

Create two points and a set of beam parameters. Create a line with these params and a speed. Write as binary and textual OBP data to files.

import obplib as obp

a = obp.Point(1,1)
b = obp.Point(2,2)

bp = obp.Beamparameters(1,1)

line = obp.Line(a,b,1,bp)

obp.write_obpj([line], "test.obpj")
obp.write_obp([line], "test.obp")

OBP-compiler (obpc)

This package contains the obpc tool that can convert back and forth between binary and textual OBP.

Viewer

obpviewer

Usage:

usage: obpviewer.py [-h] [--slice-size SLICE_SIZE] [--index INDEX] obp_file

Use the mouse or keyboard to navigate.

supported objects:
  Line, AcceleratingLine, Curve, AcceleratingCurve,
  Restore and SyncPoint.

not supported:
  TimedPoints, Metadata and vendor_setup.

keyboard shortcuts:

  right        step forward
  shift+right  step forward 10 steps
  ctrl+right   step forward 100 steps
  alt+right    step forward 1000 steps

  left         step backward
  shift+left   step backward 10 steps
  ctrl+left    step backward 100 steps
  alt+left     step backward 1000 steps

  p            same as right
  n            same as left

  a            jump to start of file
  e            jump to end of file

  s            jump to spot size change
  b            jump to beam power change
  r            jump to restore point

  0-9          jump to sync point change (digit specifies
               sync point: 1st, 2nd, ..., etc)

positional arguments:
  obp_file              Path to obp file.

optional arguments:
  -h, --help            show this help message and exit
  --slice-size SLICE_SIZE
                        Initial slice size (default: 100).
  --index INDEX         Initial index (default: 100).

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

obplib-3.0.5.tar.gz (23.4 kB view details)

Uploaded Source

File details

Details for the file obplib-3.0.5.tar.gz.

File metadata

  • Download URL: obplib-3.0.5.tar.gz
  • Upload date:
  • Size: 23.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.4.2 requests/2.25.1 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.2

File hashes

Hashes for obplib-3.0.5.tar.gz
Algorithm Hash digest
SHA256 8bc81842cba29418defbe91cafb80beafe0b31c6986e293319e1e60c240d2b60
MD5 d20b1e24a18871513e36e292bd7c5b3b
BLAKE2b-256 aee29aea27e1e633856587c74569803f44745a4f45a6854eabb56066cbbcbef4

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