Navigation

    Duet3D Logo

    Duet3D

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • Documentation
    • Order

    The return of "Triangle interpolation: point outside all triangles!"

    General Discussion
    2
    4
    452
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Yonkiman
      Yonkiman last edited by

      Just reinstalled my IR Sensor, and was successfully performing a series of Auto Bed Calibrations as I manually adjusted my bed. Then I changed one coordinate in my bed.g file, and now as soon as a calibration completes, I get this:

      Then when I try to reconnect, I get this:

      I've been using this firmware with no issues for at least a week:

      Here's my bed.g file:

      M561				; Clear any existing bed transform
      G90				; Absolute mode
      
      ; Probe bed at these 5 points:
      G30 P0 X35  Y60  Z-99999
      G30 P1 X30  Y200 Z-99999
      G30 P2 X180 Y200 Z-99999
      G30 P3 X210 Y35  Z-99999
      G30 P4 X110 Y110 Z-99999 S
      
      G1 Z10				; Lower bed
      G1 X0.0 Y0.0 F16000		; Home
      

      (It's not a nice square because my PEI reflectivity is messed up in some patches so I'm probing around the bad spots.)

      I just tried it with a 20mm perfect square in the middle of the bed and got the same results.

      1 Reply Last reply Reply Quote 0
      • dc42
        dc42 administrators last edited by

        Starting from the centre, the algorithm only works to twice as far out as the outline formed by the corner points. So the problem is the high Y value of the first point. Given that your centre point is Y=110, the algorithm will only work out as far as Y = 60-(110-60) = 10. So you will get that error if you try to move to a Y value <10 in the vicinity of that corner.

        Duet WiFi hardware designer and firmware engineer
        Please do not ask me for Duet support via PM or email, use the forum
        http://www.escher3d.com, https://miscsolutions.wordpress.com

        1 Reply Last reply Reply Quote 0
        • Yonkiman
          Yonkiman last edited by

          Thanks for the quick answer - that did the trick!

          I'm sure this is an oddball case, so not a high priority, but I think in the future it might be more elegant (if less dramatic) if this problem just returned an error message instead disconnecting from the web browser and (after reconnecting) repeating "Triangle interpolation: point outside all triangles!" ad infinitum until a reset… đŸ™‚

          1 Reply Last reply Reply Quote 0
          • dc42
            dc42 administrators last edited by

            The disconnection from the browser is not expected. Is it repeatable?

            Duet WiFi hardware designer and firmware engineer
            Please do not ask me for Duet support via PM or email, use the forum
            http://www.escher3d.com, https://miscsolutions.wordpress.com

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Unless otherwise noted, all forum content is licensed under CC-BY-SA