Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    Polygon snap not working

    SDK Help
    0
    5
    484
    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.
    • H
      Helper
      last edited by

      On 16/08/2016 at 03:34, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   R17 demo 
      Platform:   Windows  ;   
      Language(s) :     C++  ;

      ---------
      Hello,
      in my plugin user can create and then adjust new primitives.
      Recently I implemented cinemas snapping system (using SnapCore) and I have one weird problem:

      In perspective and parallel cameras Polygon Snap doesn't do anything. It looks like disabled snap. All other snap modes works as expected and also Polygon Snap works well in other cameras. Even Polygon Snap + Mid Point Snap works, just pure Polygon Snap doesn't.

      If you want to try it, just use Cinema samples, create "Rounded Tube" primitive. Handles on that object have the same problem.

      Please let me know if there is some solution. Thank you.

      1 Reply Last reply Reply Quote 0
      • H
        Helper
        last edited by

        On 17/08/2016 at 09:14, xxxxxxxx wrote:

        Hi Miro,

        I will need to contact a developer on this topic, but he won't be back until next week, so this may take a while. Also please don't expect him to process this as the first thing he does. Sorry, for the delay.

        1 Reply Last reply Reply Quote 0
        • H
          Helper
          last edited by

          On 17/08/2016 at 22:55, xxxxxxxx wrote:

          Ok, I'll wait. Thank you.

          1 Reply Last reply Reply Quote 0
          • H
            Helper
            last edited by

            On 23/08/2016 at 08:34, xxxxxxxx wrote:

            Hi Miro,

            I got answer from the developer. The handles not snapping to polygons in perspective view seems to be a bug in the handle implementation. Can you perhaps provide me with a small code example you use to replicate this? And also some more details, what else is not working for you (snapping mode, camera mode, handles or not)? This would help our developer in searching and fixing the bug.

            1 Reply Last reply Reply Quote 0
            • H
              Helper
              last edited by

              On 23/08/2016 at 23:18, xxxxxxxx wrote:

              Hi,
              I've done some research.

              There are two standard boxes:

              _<_img src="https://dl.dropboxusercontent.com/u/33854603/c4d/c4d_snap0.png" height="1080" width="1920" border="0" /_>_

              When I drag one box by gizmo - it snaps to the side of other box, as expected:
              _<_img src="https://dl.dropboxusercontent.com/u/33854603/c4d/c4d_snap1.png" height="1080" width="1920" border="0" /_>_" />

              But when I drag handle of that box, snap is ignored:_<_img src="https://dl.dropboxusercontent.com/u/33854603/c4d/c4d_snap2.png" height="1080" width="1920" border="0" /_>_r="0" />

              The same problem is in Cinema official samples:

              https://github.com/PluginCafe/cinema4d_cpp_sdk/blob/master/source/object/roundedtube.cpp

              If the devs have solution, please tell them to fix also sample code on github. That would be sufficient to solve also my problem :-).

              Thank you.

              PS: From pictures it is clear what snap I've used. That was clean install of Cinema4D R17 Demo, updated to latest version, without any plugins. I hope it helps.

              1 Reply Last reply Reply Quote 0
              • First post
                Last post