GithubHelp home page GithubHelp logo

amirhoseinsafari / make-stl-of-3d-array-optimal-for-3d-printing- Goto Github PK

View Code? Open in Web Editor NEW
18.0 1.0 5.0 25 KB

make_STL_of_Array Convert a voxelized object contained within a 3D logical array into an STL surface mesh, It's optimal for 3D printing because the number of faces in the final STL is as low as possible.

MATLAB 100.00%
stl 3d-printing printing printing-3d voxelized-object

make-stl-of-3d-array-optimal-for-3d-printing-'s Introduction

TrainingDataFor3D_Printing

make_STL_of_Array Convert a voxelised object contained within a 3D logical array into an STL surface mesh

==========================================================================
AUTHOR:
Amir-Hosein Safari

CONTACT:
[email protected]

INSTITUTION:
Max-Planck institute for informatic

DATE:
25th Aug 2018

EXAMPLE:
make_STL_of_Array(FileName,Data,scaleX,scaleY,scaleZ)
..or..
[Vertices, Triangle, Quads] = make_STL_of_Array(FileName,Data,scaleX,scaleY,scaleZ)

INPUTS

            FileName   - string            - Filename of the STL file.
            
            Data  - 3D logical array - Voxelised data
                                  1 => Inside the object
                                  0 => Outside the object
                    (FOR PRINTING WITH TWO MATERIALS YOU SHOULD INVERSE
                    Data (Data = ~Data) AND RUN CODE AGAIN TO HAVE THE SECOND TYPE)

            scaleX     - A number which means the X size of every
                    voxel in mm
            scaleY     - A number which means the Y size of every 
                    voxel in mm
            scaleZ     - A number which means the Z size of every
                    voxel in mm

OUTPUTS

            vertices - Nx3 array   - A list of the x,y,z coordinates of
                       each vertex in the mesh.
                       
            Triangle    - Nx3 array   - A list of the vertices used in
                       each Triangle of the mesh, identified using the row
                       number in the array vertices.

            Quads    - Nx4 array   - A list of the vertices used in
                       each Quads of the mesh, identified using the row
                       number in the array vertices.

==========================================================================

make-stl-of-3d-array-optimal-for-3d-printing-'s People

Contributors

amirhoseinsa avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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.