Code Monkey home page Code Monkey logo

binary-slice-file-reader's Introduction

binary-slice-file-reader

C# reader for 3DSIM binary scan files

Usage

dotnet run <scanfile.bin> <scanFileSummary>

Technical Specifications *required

Platforms Supported

For all projects, it will be MacOS, Windows, and Linux or N/A

Inputs / Outputs

Input - 3DSIM binary slice file. Output - text file with a summary of the scan lines

Resource Requirements

N/A

File Format

Introduction

The binary file is made up of a series of data blocks where each data block looks like this:

Data Type Notes
Block Type Id int ID of one of the block types described in the next section
Block Size int Number of bytes in the Data section
Data byte array Data - "block size" bytes

Block Types

Block Type 1 - File Version

Data will contain n ascii bytes to make a string

Block Type 2 - Layer

Data Type Notes
Layer Index int Slice layer

Block Type 3 - Contours

These are the outer and inner most contours of the part.

Data Type Notes
Count int Number of contours
X Type int 0 - outside, 1 - inside, 2 - open
X Points int Number of points in the contour
X Point Data byte array x1,y1,x2,y2,x3,y3 ...

X Repeat count times - 1 per contour

Block Type 4 - Parameter Sets

Data Type Notes
Count int Number of Parameter Sets
X Id int Unique identifier
X Type int 1 - fill, 2 - contour, more to come
X Laser Power int Watts (w)
X Laser Speed float meters per second (m/s)

X Repeat count times - 1 per parameter set

Block Type 5 - Scan Lines

Data Type Notes
Count int Number of scan lines
Parameter Set Id int Id of parameter set associated with these scan lines
Rotation Angle float Rotation angle for fill type scan lines, -1 otherwise
Scan Area Id int Index of scan area, -1 if not applicable
Scan line data byte array (line1) x1,y1,x2,y2 (line2) x1,y1,x2,y2 ...

Contributors

  • Tim Sublette
  • Ryan Walls
  • Chad Queen
  • Pete Krull
  • Alex Drinkwater

Original release

September 2017

binary-slice-file-reader's People

Contributors

neverhood311 avatar ryanwalls avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.