Coder Social home page Coder Social logo

goosli's Introduction

goosli

Build Status

Package to implement your own slicer using existing possibilities: cutting, crossing, slicing by vector, mesh simplification, line simplification etc.

For example you can slice by profile (for 5axes 3d printer) - find center of each layer, make line from points, simplify line - and slice by this line. See slicers/slice_by_profile.go. For sure your 3d-printer have to support bed rotations.

Feel free to open issues or implement your slicing algorithms.

goosli-colorizer

Save true/false to file for each triangle in stl according to logic (now it is big bias from Z axe)

goosli-cutter

Cut stl in two stls by required plane.

goosli-simplifier

Simplifies stl to required count of triangles.

Viewer

Spycer - https://github.com/l1va/spycer

Get binaries

Do not forget to place data directory near your binary.

Linux (tested on Ubuntu 16.04)
cd github.com/l1va/goosli
go install cmd/goosli/goosli.go 
go install cmd/goosli_colorizer/goosli_colorizer.go
go install cmd/goosli_cutter/goosli_cutter.go 
go install cmd/goosli_simplifier/goosli_simplifier.go
Windows (tested on Windows 10)
cd github.com/l1va/goosli
GOOS=windows GOARCH=amd64 go build -o goosli cmd/goosli/goosli.go
GOOS=windows GOARCH=amd64 go build -o goosli_analyzer cmd/goosli_analyzer/goosli_analyzer.go 
GOOS=windows GOARCH=amd64 go build -o goosli_colorizer cmd/goosli_colorizer/goosli_colorizer.go
GOOS=windows GOARCH=amd64 go build -o goosli_cutter cmd/goosli_cutter/goosli_cutter.go 
GOOS=windows GOARCH=amd64 go build -o goosli_simplifier cmd/goosli_simplifier/goosli_simplifier.go 

Technical moments

Rotations are always about global axes, if your rotation axis does not match with global axis - you can use PlaneCenter parameter and shift your plane to match.

Thanks

A lot of ideas and code was taken from various fogleman repos. Thank you!

goosli's People

Contributors

hircumg avatar l1va avatar lelami avatar vkurenkov avatar

Stargazers

 avatar

Watchers

 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.