1. Hey guyz. Welcome to the All New Phlatforum!



    Sign Up and take a look around. There are so many awesome new features.

    The Phlatforum is a place we can all hang out and

    have fun sharing our RC adventures!

  2. Dismiss Notice

3d mode not generating metric code (G20 vs G21)

Discussion in 'SketchUcam Bugs' started by ahd71, Jan 14, 2012.

  1. ahd71

    ahd71 New Member

    Offline
    Messages:
    8
    Trophy Points:
    1
    The gcode generated in 3d mode for SketchUCam are for me beeing generated in imperial(G20) instead of metrics(G21). The non-3d mode works as expected though.

    BR/ahd71
     
  2. kram242

    kram242 Administrator Staff Member

    Offline
    Messages:
    6,311
    Trophy Points:
    13
    Location:
    NJ
    hmmm... Maybe Jovian could shed some light to this one. I thought it was taken care of in the past.
    Thank you for finding this
    Mark and Trish
     
  3. ahd71

    ahd71 New Member

    Offline
    Messages:
    8
    Trophy Points:
    1
    I might have some found some untested corner case? It would be interesting to see if there other users in the forum that indeed can get it to work in metric system.

    I'm more then happy to assist with some "user acceptance tests" if needed,

    BR/ahd71
     
  4. 3DMON

    3DMON Moderator Staff Member

    Offline
    Messages:
    2,380
    Trophy Points:
    38
    Location:
    Sebastian, Florida
    I just tried to get it to work in the metric system and it keeps everything as imperial like you said.
     
  5. kram242

    kram242 Administrator Staff Member

    Offline
    Messages:
    6,311
    Trophy Points:
    13
    Location:
    NJ
    Take a look here and see if this can help out at all. Just at a quick glance I really don't think it will for the 3D but it may give you some ideas for using a post processor to convert the code to metric until we can get this fixed in SketchUcam. Thank you for the testing offer, we will be sure to keep it in mind.
    Thank you
    Mark and Trish
     
  6. ahd71

    ahd71 New Member

    Offline
    Messages:
    8
    Trophy Points:
    1
  7. kram242

    kram242 Administrator Staff Member

    Offline
    Messages:
    6,311
    Trophy Points:
    13
    Location:
    NJ
    Great find BR/ahd71! Thank you for sharing the link for others :good:
    Mark and Trish
     
  8. Evil-Tunes

    Evil-Tunes Moderator Staff Member

    Offline
    Messages:
    659
    Trophy Points:
    16
    Location:
    Southern N.J.
    Mark will this work for your big CNC?

    Cheers
    E-T
     
  9. marcomartim

    marcomartim Member

    Offline
    Messages:
    195
    Trophy Points:
    18
    Location:
    São Carlos - SP - Brasil
    This issue had been discussed and settled here in the forum.
    I have a version with Phlascript Gcode in mm.

    http://www.phlatforum.com/viewtopic.php?f=98&t=2297#p23605

    Hugs
     
  10. 3DMON

    3DMON Moderator Staff Member

    Offline
    Messages:
    2,380
    Trophy Points:
    38
    Location:
    Sebastian, Florida
     
  11. kram242

    kram242 Administrator Staff Member

    Offline
    Messages:
    6,311
    Trophy Points:
    13
    Location:
    NJ
    Not sure Glen, kinda scary to try it out on that one. :) But I really have no need for 3D on that machine at all. I do have a post processor that I use for that machine that is working very well.
    Mark and Trish
     
  12. marcomartim

    marcomartim Member

    Offline
    Messages:
    195
    Trophy Points:
    18
    Location:
    São Carlos - SP - Brasil
    Sorry.
    I do not use the 3D part of the plugin; translator errors and lack of a more careful reading contributed to my mistake.

    hugs
     
  13. kram242

    kram242 Administrator Staff Member

    Offline
    Messages:
    6,311
    Trophy Points:
    13
    Location:
    NJ
    Just want to re-post here real quick and say that I tried to output metric gcode from SketchUcam just by changing the Units in SketchUp as well as re-applying the safe cutting area and it worked just fine for metric router. :good:
    It may just be the 3D that is having this problem? I only tried the 2.5 D
    Mark and Trish
     
  14. 3DMON

    3DMON Moderator Staff Member

    Offline
    Messages:
    2,380
    Trophy Points:
    38
    Location:
    Sebastian, Florida
    Yeah it was just the 3d part of it.
     
  15. kram242

    kram242 Administrator Staff Member

    Offline
    Messages:
    6,311
    Trophy Points:
    13
    Location:
    NJ
    Ok thanks Shaun :) May be something Nick can look at when he gets the time.
    Mark and Trish
     
  16. ahd71

    ahd71 New Member

    Offline
    Messages:
    8
    Trophy Points:
    1
    As the title implied it is only 3d part having the defect,

    Br/ahd71
     
  17. kram242

    kram242 Administrator Staff Member

    Offline
    Messages:
    6,311
    Trophy Points:
    13
    Location:
    NJ
    Got it :) thanks BR
    Mark and Trish
     
  18. swarfer

    swarfer Moderator Staff Member

    Offline
    Messages:
    808
    Trophy Points:
    28
    Location:
    Grahamstown, South Africa
    I started looking at making the 3D module output metric, yesterday.
    So far I have put in a quick check that the model maxZ is not higher than the material thickness.
    If it is too low, the G0 X0 y0 at the end of the program may cut some part of the model.

    I'm not sure at this point which is better:
    to warn (and abort or carry on regardless?)
    or
    to reset material thickness and carry on

    I also imported the little routine that formats numbers for output using the @precision set in phlatmill.rb
    and changed the .puts instructions to use the new formats (because trailing 0's annoy me :).
    maybe that routine needs to be put in a common library?

    Next I'll look at metrifying the output. I'm a little slow at this because ruby is not my native language and I keep having to look up language contructs online.

    Once I have some progress, what is the best way to submit the changes?
     
  19. TigerPilot

    TigerPilot Well-Known Member

    Offline
    Messages:
    1,578
    Trophy Points:
    48
    swarfer, the best way to submit a change is just like you did in the other thread, post it! :D
     
  20. swarfer

    swarfer Moderator Staff Member

    Offline
    Messages:
    808
    Trophy Points:
    28
    Location:
    Grahamstown, South Africa
     
  21. TigerPilot

    TigerPilot Well-Known Member

    Offline
    Messages:
    1,578
    Trophy Points:
    48
    Good work, swarfer, you are now our official SketchUCam programmer! :D
     
  22. kram242

    kram242 Administrator Staff Member

    Offline
    Messages:
    6,311
    Trophy Points:
    13
    Location:
    NJ
    I second that :good:
    :D
     
  23. swarfer

    swarfer Moderator Staff Member

    Offline
    Messages:
    808
    Trophy Points:
    28
    Location:
    Grahamstown, South Africa
    scary :oops:
    the 3D trig stuff is beyond my meagre math skills. I was looking at pocketing some years back. very interesting problem, especially the non-convex polygon case, but proved to be quite beyond my brain capacity. I know what I want to do though = split the polygon into the minimum number of polys that are all convex, then pocket each of those polygons, then cut the outline as usual.
     
  24. kram242

    kram242 Administrator Staff Member

    Offline
    Messages:
    6,311
    Trophy Points:
    13
    Location:
    NJ
    I found someone who maybe able to help us with the pocketing http://www.anderswallin.net/cam/
    He has some interesting projects in the works and is looking to apply his machining algorithms to a GUI. He is posting under a GPL so It should be OK to try and apply these to SketchUcam.
    I really have not got the time to contact him now (too many projects on the plate) but if someone wants to help get the ball rolling that would be cool :doubleup: Could lead to great new features for SketchUcam!
    Thanks
    Mark and Trish
     
  25. swarfer

    swarfer Moderator Staff Member

    Offline
    Messages:
    808
    Trophy Points:
    28
    Location:
    Grahamstown, South Africa
    aye, his blog is interesting indeed and I think that drop-Z algorithm would make 3D surfaces much nicer.
    possible problem is it needs triangulated surface input, which Sketchup does not always do by itself.

    I will read more as time allows.
     

Share This Page