Skip to content

katascope/Glyphics2

Repository files navigation

Glyphics2 API

Glyphics is:

  • A 3D Raster engine and C# programming API
  • A 3D Printer STL model creation & manipulation API
  • A set of 1D/2D/3D raster drawing functions
  • A language, compiler, and virtual GPU
  • A pipeline for 3D Raster grids, pixels, rectangles, and triangles
  • A Stereolithography (.STL) file manipulator (translate/scale/rotate/etc)
  • A Portable Network Graphics (.PNG) file manipulator (resize/colorize/etc)
  • Intended to solve the problem domain of 3D raster grids

Glyphics is NOT:

  • A game, game API, or high-performance 3d engine

Glyphics requires C# to build and .NET 4 or greater to use.

How it works

  • Glyphics represents a 3D raster of pixels/voxels as a Grid
  • Painters can draw various archetypal functions to that grid (rectangles, circles, etc)
  • The glyphics language automates and allows compilation of scenes
  • The grid can be output to volume rectangles by solving for runs in 3-dimensions
  • Volume rectangles can be output to triangles by rendering either cube facets or models
  • STL files can be read into a grid and rendered directly using 3d raster triangle functions
  • Conversion paths allows many different kinds of inputs and outputs.

Simple Glyphics code example

  • Size3D4 16 16 16;PenColorD4 31 127 255 255;WallCube 1;
  • PenColorD4 255 255 255 255;Rect 0 0 0 15 0 15;
  • PenColorD4 255 31 127 255;FillRect 4 1 4 11 2 11;
  • PenColorD4 31 255 127 255;Text 6 3 8 65

High level view

�Time-step of RasterLib code executing to create a grid

Isometric view

Example: STL-To-Grid (-To-Rendered-To-PNG)

STL file view

Example of final print of STL generated by exampleCodeToSTL