Lua function contactmap.IsContact appears broken

Case number:845813-998169
Topic:Game: Tools
Opened by:StackOverflow
Opened on:Thursday, July 17, 2014 - 05:52
Last modified:Friday, July 18, 2014 - 13:06

bool contactmap.IsContact(integer segmentIndex1, integer segmentIndex2)

This appears to always just return true in contact puzzles, which is of no use to anybody.

Despite the description which says:
In an exploration puzzle, returns true if two segments are in contact with each other (within a minimum distance). Returns false otherwise. If not in an exploration puzzle, always returns false.

Please fix this call, and better yet, introduce more functions for contact puzzles.
Info we desperately need to know to help us build tools for contact puzzles are
- If there is a predicted contact between two segments (green in the contact map)
[example: bool contactmap.IsPredictedContact ( int segment1 , int segment2 ) ]
- If the contact is satisfied ( just like the red/green strands in the user interface when selected )
[example: the existing IsContact call]

Information about bands that is also lacking and would help contact puzzles
- Index number of band between two segments (0 if no band between those segments)
[for example: int band.GetBandBetweenSegments(int segment1, int segment2) ]
- The segments a band is attached to (0 if mid air)
[for example: int band.GetStartSegment(int band) and int band.GetEndSegment(int band)]

(Thu, 07/17/2014 - 05:52  |  1 comment)

Susume's picture
User offline. Last seen 1 day 20 hours ago. Offline
Joined: 10/02/2011

contactmap.GetHeat(i,j) returns a numeric value for the weight of the contact; greater than zero means there should be a contact there (i.e. there is a green square in the contact map).

contactmap.IsContact(i,j) returns whether the contact is made (i.e. there is a black square in the contact map, regardless whether there should be one there)

Both of these functions are working ok for me.

I love the ideas for band functions.


Developed by: UW Center for Game Science, UW Institute for Protein Design, Northeastern University, Vanderbilt University Meiler Lab, UC Davis
Supported by: DARPA, NSF, NIH, HHMI, Amazon, Microsoft, Adobe, RosettaCommons