Skip to content

A CAD-type application that facilitates a faster turnaround time for amputees to receive 3D printed socket for a residual limb.

Notifications You must be signed in to change notification settings

andrewgremlich/socket-print

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

334 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Socket Print

A utility CAD-like application to apply modifications to a prosthetic limb socket STL file, and output the modifications to a GCode file.

Testing

In order to test GCode files, use the NCViewer website.

Coordinate System Transformation

This application bridges two different coordinate system conventions:

  • Three.js (3D visualization): Y-up coordinate system where Y is the vertical axis
  • 3D Printing/GCode: Z-up coordinate system where Z is the vertical axis

Why This Matters

When generating GCode from Three.js geometries, coordinate transformations are necessary to convert between these systems:

  1. In Three.js: Objects are positioned with Y representing height
  2. In GCode: The Z axis represents height (vertical movement)

Where Transformations Occur

  • generateGCode.ts: The makeGCodePoint() function (line 42-50) and flipVerticalAxis() function (line 38-40) handle the Y↔Z axis transformations when converting Three.js Vector3 points to GCode coordinates
  • sliceWorker.ts: Points are collected in Three.js coordinate space (Y-up) and later transformed during GCode generation

When reading the code, keep in mind that variables like verticalAxis and flipHeight are used to manage this coordinate system transformation throughout the pipeline.

Notes

https://dyzedesign.com/2024/05/flow-to-rpm-factor-optimize-your-3d-printing-with-pellet-extruders/

Signing Windows

Clipping Library

https://www.npmjs.com/search?q=clipper-lib

https://www.npmjs.com/package/clipper-lib

https://github.com/junmer/clipper-lib?tab=readme-ov-file

About

A CAD-type application that facilitates a faster turnaround time for amputees to receive 3D printed socket for a residual limb.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •