Page 2 of 3 FirstFirst 123 LastLast
Results 13 to 24 of 33

Thread: Stereolithography file to GCode

  1. #13
    Registered
    Join Date
    Sep 2010
    Location
    india
    Posts
    1
    Downloads
    0
    Uploads
    0
    hi frnds...am doing a project on rapidprototyping...i hv converted the 3D model to .stl format...now i need to get the coordinates from the .stl file so that i can focus the laser beam on those coordinates to cure them to form a solid model...is there any softwares available to get the coordinates?...


  2. #14
    Registered
    Join Date
    Apr 2005
    Location
    finland
    Posts
    263
    Downloads
    0
    Uploads
    0
    opencamlib has functions for dropping down along the z-axis a cutter at a given (x,y) position.
    There's also functions for pushing the cutter into contact with the STL model along the x and y axes. If you do this for a lot of x and y values you get a mesh and you can trace around the mesh to get waterline loops.
    These paths are useful for milling, not so sure what the correct approach for 3D printing or laser-curing is.

    http://code.google.com/p/opencamlib/

    AW


  3. #15
    Registered
    Join Date
    Sep 2010
    Location
    india
    Posts
    6
    Downloads
    0
    Uploads
    0
    Hello 2all,

    Can anyone tell me that how to decode the .stl file or how can I read that file??

    I have one .stl file but whenever I tried to open it in notpad or wordpad, it comes in some unreadable form.
    So anyone have some code or something like that to read this file?

    Thanks in Advanced,
    ~Dhr


  4. #16
    Registered
    Join Date
    Apr 2005
    Location
    finland
    Posts
    263
    Downloads
    0
    Uploads
    0
    this python script should be able to read most STL files:
    http://code.google.com/p/opencamlib/...ib/STLTools.py


  • #17
    Registered
    Join Date
    Sep 2010
    Location
    india
    Posts
    6
    Downloads
    0
    Uploads
    0
    hey andy,
    thanks very much.

    I dont know python, but i will convert it into java or c++ language.

    Thanks again..

    ~Dhr1


  • #18
    Registered
    Join Date
    Sep 2010
    Location
    india
    Posts
    6
    Downloads
    0
    Uploads
    0
    Hello,

    I am not able to find converter python to java.
    So you have any code that read stl in java?

    Thanks,
    ~Dhr1


  • #19
    Registered
    Join Date
    Apr 2005
    Location
    finland
    Posts
    263
    Downloads
    0
    Uploads
    0
    here is an STLReader class in c++ which reads an STL file (possibly only ASCII, not binary)
    http://code.google.com/p/opencamlib/.../stlreader.cpp
    it should be fairly straightforward to convert to Java if you want that...


  • #20
    Registered
    Join Date
    Sep 2010
    Location
    india
    Posts
    6
    Downloads
    0
    Uploads
    0
    Hello,

    Thanks a lot for this.

    ~Dhr1


  • #21
    Registered
    Join Date
    Jun 2005
    Location
    USA
    Posts
    180
    Downloads
    0
    Uploads
    0
    Here is the description for the binary file:

    "Binary STL files consist of a 80 byte header line that can be interpreted as a comment string. The following 4 bytes interpreted as a long integer give the total number of facets. What follows is a normal and 3 vertices for each facet, each coordinate represented as a 4 byte floating point number (12 bytes in all). There is a 2 byte spacer between each facet. The result is that each facet is represented by 50 bytes, 12 for the normal, 36 for the 3 vertices, and 2 for the spacer."

    I wrote a binary to decimal converter in VB if you want to program it.


  • #22
    Registered
    Join Date
    Sep 2010
    Location
    india
    Posts
    6
    Downloads
    0
    Uploads
    0
    Hello sweatherly,

    thanks for ut reply.
    I am very thankful to you if you can post your VB code for binary file read.

    ~Dhr1


  • #23
    Registered
    Join Date
    Jun 2005
    Location
    USA
    Posts
    180
    Downloads
    0
    Uploads
    0
    It may take a few hours to find the code, but I will post it ASAP.


  • #24
    Registered
    Join Date
    Sep 2010
    Location
    india
    Posts
    6
    Downloads
    0
    Uploads
    0
    ok.
    take your time.
    I am trying with myself also.


  • Page 2 of 3 FirstFirst 123 LastLast

    Posting Permissions


     


    About CNCzone.com

      We are the largest and most active discussion forum from DIY CNC Machines to the Cad/Cam software to run them. The site is 100% free to join and use, so join today!

    Follow us on

    Facebook Dribbble RSS Feed


    Search Engine Friendly URLs by vBSEO ©2011, Crawlability, Inc.