Skip to content
This repository has been archived by the owner on Nov 16, 2021. It is now read-only.

3DSIM/binary-slice-file-reader

Repository files navigation

This project has moved to https://tfs.ansys.com:8443/tfs/ANSYS_Development/Additive/_git/binary-slice-file-reader

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

About

C# reader for 3DSIM binary scan files

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages