Results 1 to 3 of 3

Thread: [question/discussion] find dtm by percent of subpoints.

  1. #1
    Join Date
    Apr 2012
    Posts
    3
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default [question/discussion] find dtm by percent of subpoints.

    Question: Is there an existing function that takes a DTM and returns true if a certain percentage of the sub-points are found?

    Example: You have a DTM with a main point and 4 sub-points and you want the function to return true if it finds the main point and 2 sub-points or 50%

    Discussion: If no such function exists how would i go about writing one? I know you could calculate percentage of sub-points by dividing points found by total points. Another option would be to make the function ask for minimum sub-points to find instead of a percentage. As a side question, where is the source for FindDTM? I cannot find it in my includes.

    Reason: A lot of times part of a DTM is covered so finding it fails.

    Thanks in advance for any input/help you provide!

  2. #2
    Join Date
    Sep 2012
    Location
    Here.
    Posts
    2,007
    Mentioned
    88 Post(s)
    Quoted
    1014 Post(s)

    Default

    FindDTM is build into Simba for speed reasons I believe. So you won't be able to view the source through any of the libraries. I think you can find the source code for Simba here. However, rewriting it yourself is likely to turn out very poor for performance. That's nothing against you, it's just the difference between being built into SIMBA and being a separately called procedure.

    There are typically plenty of other procedures though to accomplish most things you may want, what are you using your DTMs for?

  3. #3
    Join Date
    Apr 2012
    Posts
    3
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I am trying to walk into a building using a DDTM because the symbol on the minimap is not very accurate(it moves to much). the problem is that the symbol sometimes covers one of my sub-points and FindDTM fails. increasing the area size of the points enough to overcome this makes it find other buildings as well. One thing i could try is make multiple DDTM's with each one omitting a different side of the building and searching for them all. i just thought a function to handle this would look a lot cleaner. What other procedures would you recommend?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •