Skip to content

Commit

Permalink
change name of attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
alavenant committed Apr 12, 2024
1 parent 92cef3f commit 1fa4fbc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions src/filter_radius_search/radius_searchFilter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ void RadiusSearchFilter::addArgs(ProgramArgs& args)
args.add("reference_domain", "Selects which points will be considered as potential neighbors", m_args->m_referenceDomain, "REF_DOMAIN");
args.add("radius", "Distance of neighbors to consult", m_args->m_radius, 1.);
args.add("output_name_attribute", "Name of the added attribut", m_args->m_nameAddAttribute, "radius" );
args.add("3d_search", "Search in 3d", m_args->search3d, false );
args.add("2d_search_above", "if search in 2d : filter point above the distance", m_args->m_search_bellow, 0. );
args.add("2d_search_bellow", "if search in 2d : filter point bellow the distance", m_args->m_search_above, 0. );
args.add("search_3d", "Search in 3d", m_args->search3d, false );
args.add("search_2d_above", "if search in 2d : filter point above the distance", m_args->m_search_bellow, 0. );
args.add("search_2d_bellow", "if search in 2d : filter point bellow the distance", m_args->m_search_above, 0. );
}

void RadiusSearchFilter::addDimensions(PointLayoutPtr layout)
Expand Down
10 changes: 5 additions & 5 deletions test/test_radius_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,25 +89,25 @@ def distance3d(pt1, pt2):
"src_domain": "SRS_DOMAIN",
"reference_domain": "REF_DOMAIN",
"output_name_attribute": "radius_2D",
"3d_search":False,
"search_3d":False,
},
{
"type": filter,
"radius": "1.",
"src_domain": "SRS_DOMAIN",
"reference_domain": "REF_DOMAIN",
"output_name_attribute": "radius_2D_above_bellow",
"3d_search": False,
"2d_search_above": 0.5,
"2d_search_bellow": 0.5,
"search_3d": False,
"search_2d_above": 0.5,
"search_2d_bellow": 0.5,
},
{
"type": filter,
"radius": "1.",
"src_domain": "SRS_DOMAIN",
"reference_domain": "REF_DOMAIN",
"output_name_attribute": "radius_3D",
"3d_search": True
"search_3d": True
}
]

Expand Down

0 comments on commit 1fa4fbc

Please sign in to comment.