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
    • Recent
    • Tags
    • Users
    • Login

    Radius Around a single point

    Scheduled Pinned Locked Moved SDK Help
    10 Posts 0 Posters 710 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/06/2010 at 18:56, xxxxxxxx wrote:

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

      ---------
      Hello,   Does anyone have any ideas as to how I would get all points that fall within a specific radius around one particular point in an object?

      Is there a function in the sdk that does this?

      Any help would be greatly appreciated.

      Thanks,

      ~Shawn

      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/06/2010 at 19:27, xxxxxxxx wrote:

        Here's how I figure dout how to do this but if there is a faster and less intensive way I'd love to know.

          
        for (int i = 0; i < pointCount; i++)
        	{  
        			if(i == 14)
        			{
        				Vector origin = points[i];
        				for (int j = 0; j < pointCount; j++)
        				{
        					if (Len(points[j] - origin) < radius)
        					{
        						//Point is within radius.
        					}
        				}
        				
        			}
        		}
        		
        	}
        
        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/06/2010 at 01:14, xxxxxxxx wrote:

          You must be kidding are you?

          https://developers.maxon.net/forum/topic/5027/4946_distance-between-two-points

          Just like on CGtalk there should be a "Think before you post" sticky thread *cough* or this could be taken as double posting 😉

          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/06/2010 at 03:36, xxxxxxxx wrote:

            Thanks.

            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/06/2010 at 04:30, xxxxxxxx wrote:

              Originally posted by xxxxxxxx

              I was asking if there is a less expensive way to do it ? And if the answer is no then that will suffice. Have a nice day.

              Just like on CGtalk there should be a "Think before you post" sticky thread *cough* or this could be taken as double posting 😉

              Comments like this are best left in your head.

              Well, apparently you still are not able to do what the comment says so this is definetly the last time you get a comment from me.

              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/06/2010 at 04:33, xxxxxxxx wrote:

                😉

                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/06/2010 at 05:29, xxxxxxxx wrote:

                  Howdy,

                  If your object is polygonal, take a look at the Neighbor class.

                  Adios,
                  Cactus Dan

                  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/06/2010 at 06:00, xxxxxxxx wrote:

                    Great.. thanks Dan.

                    ~Shawn

                    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 16/06/2010 at 00:16, xxxxxxxx wrote:

                      Originally posted by xxxxxxxx

                      You must be kidding are you? https://developers.maxon.net/forum/topic/5027/4946_distance-between-two-points

                      ...where you also find my comment about how to speed that up.

                      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 16/06/2010 at 02:43, xxxxxxxx wrote:

                        Yep.. Thanks again Kabe.

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