Commit bb4982ae authored by Sylvain Thery's avatar Sylvain Thery
Browse files

bug selector

parent ca166e89
...@@ -110,7 +110,7 @@ void facesRaySelection(typename PFP::MAP& map, const VertexAttribute<typename PF ...@@ -110,7 +110,7 @@ void facesRaySelection(typename PFP::MAP& map, const VertexAttribute<typename PF
* @param dist radius of the cylinder of selection * @param dist radius of the cylinder of selection
*/ */
template<typename PFP> template<typename PFP>
void edgesRaySelection(typename PFP::MAP& map, const VertexAttribute<typename PFP::VEC3>& position, const FunctorSelect& good, const typename PFP::VEC3& rayA, const typename PFP::VEC3& rayAB, std::vector<Dart>& vecEdges, float distMax) void edgesRaySelection(typename PFP::MAP& map, const VertexAttribute<typename PFP::VEC3>& position, const typename PFP::VEC3& rayA, const typename PFP::VEC3& rayAB, std::vector<Dart>& vecEdges, float distMax, const FunctorSelect& good)
{ {
typename PFP::REAL dist2 = distMax * distMax; typename PFP::REAL dist2 = distMax * distMax;
typename PFP::REAL AB2 = rayAB * rayAB; typename PFP::REAL AB2 = rayAB * rayAB;
...@@ -165,7 +165,7 @@ void edgesRaySelection(typename PFP::MAP& map, const VertexAttribute<typename PF ...@@ -165,7 +165,7 @@ void edgesRaySelection(typename PFP::MAP& map, const VertexAttribute<typename PF
* @param dist radius of the cylinder of selection * @param dist radius of the cylinder of selection
*/ */
template<typename PFP> template<typename PFP>
void verticesRaySelection(typename PFP::MAP& map, const VertexAttribute<typename PFP::VEC3>& position, const typename PFP::VEC3& rayA, const typename PFP::VEC3& rayAB, std::vector<Dart>& vecVertices, float dist, const FunctorSelect& good= allDarts) void verticesRaySelection(typename PFP::MAP& map, const VertexAttribute<typename PFP::VEC3>& position, const typename PFP::VEC3& rayA, const typename PFP::VEC3& rayAB, std::vector<Dart>& vecVertices, float dist, const FunctorSelect& good)
{ {
typename PFP::REAL dist2 = dist * dist; typename PFP::REAL dist2 = dist * dist;
typename PFP::REAL AB2 = rayAB * rayAB; typename PFP::REAL AB2 = rayAB * rayAB;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment