Skip to content

About TGS neighbor traversable conditions ambiguity #18

Description

@Acuno41

Hello,
Thanks for the great work !
As I was using the traversable ground segmentation, I came across the neighbor traversable conditions code lines in below and i cant quite understand the skipping conditions.
I would be very grateful if you explain how should we check neighbors ? and what should their reject and acceptance criterias ?
Because it looks like if field set visited true once it wont be checked again. an so on.

Best regards.

if (tgf_in[n_i.row][n_i.col][n_i.tri].depth >=0){
continue;
}
if (tgf_in[n_i.row][n_i.col][n_i.tri].is_visited) {
if (!tgf_in[n_i.row][n_i.col][n_i.tri].need_recheck){
continue;
} else {
if (tgf_in[n_i.row][n_i.col][n_i.tri].check_life <= 0){
continue;
}
}
continue;
} else {
if (tgf_in[n_i.row][n_i.col][n_i.tri].node_type != GROUND) {
continue;
}
}

if(tgf_in[n_i.row][n_i.col][n_i.tri].check_life > 0) {
tgf_in[n_i.row][n_i.col][n_i.tri].check_life -=1;
tgf_in[n_i.row][n_i.col][n_i.tri].need_recheck = true;
} else {
tgf_in[n_i.row][n_i.col][n_i.tri].need_recheck = false;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions