Radius Around a single point



  • 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



  • 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.
    					}
    				}
    				
    			}
    		}
    		
    	}
    


  • 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://plugincafe.maxon.net/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 ;)



  • 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.



  • 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.



  • 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:

    😉



  • 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



  • 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



  • 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://plugincafe.maxon.net/topic/5027/4946_distance-between-two-points

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



  • 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.


Log in to reply