Polygon snap not working
-
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.
-
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.
-
On 17/08/2016 at 22:55, xxxxxxxx wrote:
Ok, I'll wait. Thank you.
-
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.
-
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.