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

    Faster way than rotating through all pts?

    Scheduled Pinned Locked Moved SDK Help
    3 Posts 0 Posters 270 Views
    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 Offline
      Helper
      last edited by

      THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

      On 11/12/2007 at 16:53, xxxxxxxx wrote:

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

      ---------
      Hi,

      I'm developping a 'tool' plugin (ToolData). I use this tool by clicking on an edge of a mesh. My problem is, how do I know on what edge I clicked? I can iterate through all the points of my mesh and compare the x/y values with the values from my mouse but this would be a lot of calculating for the computer when I'm using the tool with big meshes. Isn't there a faster way doing this (I mean without rotating through all the points of a mesh)?

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

        THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

        On 11/12/2007 at 17:47, xxxxxxxx wrote:

        First, I'm amazed that you have R11.5. Who do you know on the inside? 😉

        Bad humor aside, you might want to consider trying your hand at using the GeRayCollider class. This will only get you a polygon or so, but it at least limits the number of vertices or edges to be searched.

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

          THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

          On 12/12/2007 at 05:17, xxxxxxxx wrote:

          Quote: Originally posted by kuroyume0161 on 11 December 2007
          >
          > * * *
          >
          > First, I'm amazed that you have R11.5. Who do you know on the inside? 😉
          >
          > Bad humor aside, you might want to consider trying your hand at using the GeRayCollider class. This will only get you a polygon or so, but it at least limits the number of vertices or edges to be searched.
          >
          >
          >
          > * * *

          Lol, that's what happens when you write a message at 3am local time 🙂

          I am going to take a look at the GeRayCollider class this evening. Thank you for your reply.

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