#include <cstdlib>
#include <cstdio>
#include <cstring>
#include <fstream>
#include <ANN/ANN.h>
Go to the source code of this file.
Functions | |
void | getArgs (int argc, char **argv) |
int | main (int argc, char **argv) |
void | printPt (ostream &out, ANNpoint p) |
bool | readPt (istream &in, ANNpoint p) |
Variables | |
istream * | dataIn = NULL |
int | dim = 2 |
double | eps = 0 |
int | k = 1 |
int | maxPts = 1000 |
istream * | queryIn = NULL |
void getArgs | ( | int | argc, | |
char ** | argv | |||
) |
int main | ( | int | argc, | |
char ** | argv | |||
) |
Definition at line 78 of file ann_sample.cpp.
References annAllocPt(), annAllocPts(), annClose(), ANNkd_tree::annkSearch(), dataIn, dim, eps, getArgs(), k, maxPts, printPt(), queryIn, readPt(), and KDL::sqrt().
void printPt | ( | ostream & | out, | |
ANNpoint | p | |||
) |
bool readPt | ( | istream & | in, | |
ANNpoint | p | |||
) |
istream* dataIn = NULL |
Definition at line 58 of file ann_sample.cpp.
int dim = 2 |
Definition at line 54 of file ann_sample.cpp.
double eps = 0 |
Definition at line 55 of file ann_sample.cpp.
Referenced by KDL::Equal(), Routines::FindCorner(), MeshCore::MeshGeomFacet::Foraminate(), getArgs(), MeshCore::MeshGeomFacet::IsDegenerated(), MeshCore::MeshGeomFacet::IsPointOf(), main(), and MeshGui::ViewProviderMeshDegenerations::showDefects().
int k = 1 |
Definition at line 53 of file ann_sample.cpp.
Referenced by MeshCore::MeshSearchNeighbours::AccumulateNeighbours(), CmdTestProgress3::activated(), MeshCore::MeshKernel::AddFacets(), MeshCore::MeshTopoAlgorithm::AdjustEdgesToCurvatureDirection(), annMedianSplit(), Reen::BSplineBasis::BasisFunction(), best_fit_test(), SpringbackCorrection::CalcCurv(), Reen::BSplineParameterCorrection::CalcFirstSmoothMatrix(), Reen::BSplineParameterCorrection::CalcSecondSmoothMatrix(), Reen::BSplineParameterCorrection::CalcThirdSmoothMatrix(), KDL::SVD_HH::calculate(), KDL::TreeIkSolverVel_wdls::CartToJnt(), KDL::TreeIkSolverPos_NR_JL::CartToJnt(), Py::MapBase< T >::clear(), Approximate::ComputeError(), MeshCore::MeshEvalDegeneratedFacets::CountEdgeTooSmall(), MeshCore::MeshTopoAlgorithm::DelaunayFlip(), Reen::BSplineBasis::DerivativeOfBasisFunction(), Reen::BSplineBasis::DerivativesOfBasisFunction(), Routines::DersBasisFuns(), Approximate::eFair2(), Approximate::ErrorApprox(), Routines::FindCorner(), boost::numeric::bindings::atlas::gemm(), boost::numeric::bindings::blas::gemm(), generateTexture(), getArgs(), Part::TopoShapePy::getCompounds(), Part::TopoShapePy::getCompSolids(), Part::TopoShapePy::getEdges(), Part::TopoShapePy::getFaces(), Part::BSplineCurvePy::getKnotSequence(), Gui::SoFCColorGradient::getMarkerValues(), MeshCore::MeshAlgorithm::GetMeshBorders(), Part::TopoShapePy::getShells(), Part::TopoShapePy::getSolids(), Part::BSplineSurfacePy::getUKnotSequence(), Part::TopoShapePy::getVertexes(), Part::BSplineSurfacePy::getVKnotSequence(), Part::TopoShapePy::getWires(), boost::numeric::bindings::atlas::detail::her2k(), boost::numeric::bindings::atlas::detail::herk(), boost::numeric::bindings::blas::herk(), BRepAdaptor_CompCurve2::Initialize(), Part::BSplineCurvePy::insertKnots(), Part::BSplineSurfacePy::insertUKnots(), Part::BSplineSurfacePy::insertVKnots(), Points::PointsGrid::InSide(), MeshCore::MeshGrid::Inside(), Base::BoundBox3< _Precision >::IntersectPlaneWithLine(), Wm4::DelTriangle< Real >::IsInsertionComponent(), Wm4::DelTetrahedron< Real >::IsInsertionComponent(), KDL::ChainJntToJacSolver::JntToJac(), KDL::ChainDynParam::JntToMass(), main(), UniGridApprox::MatComp(), Matrix_gauss(), cutting_tools::OffsetWires_Standard(), Py::Object::operator!=(), Py::Object::operator<(), Py::Object::operator<=(), Py::Object::operator==(), Py::Object::operator>(), Py::Object::operator>=(), cutting_tools::ordercutShape(), Approximate::ParameterInnerPoints(), SpringbackCorrection::Perform(), Routines::PointNrbDerivate(), MeshGui::SoFCMeshNode::readInstance(), ReadDyna::ReadShellThickness(), Gui::SoFCColorGradient::rebuildGradient(), MeshCore::MeshKernel::RemoveInvalids(), Approximate::ReorderNeighbourList(), Approximate::Reparam(), Part::BSplineSurfacePy::reparametrize(), App::ColorLegend::resize(), MeshVRML::Save(), MeshCore::MeshAlgorithm::SearchFacetsFromPolyline(), MeshCore::MeshComponents::SearchForComponents(), Gui::SoFCColorLegend::setColorModel(), Part::BSplineCurvePy::setKnots(), Reen::SplineBasisfunction::SetKnots(), Part::BSplineSurfacePy::setUKnots(), Base::Rotation::setValue(), Part::BSplineSurfacePy::setVKnots(), PartGui::ViewProviderPartBase::showControlPointsOfEdge(), PartGui::ViewProviderPartBase::showControlPointsOfFace(), MeshGui::ViewProviderMeshFolds::showDefects(), MeshGui::ViewProviderMeshIndices::showDefects(), MeshGui::ViewProviderMeshDuplicatedFaces::showDefects(), MeshGui::ViewProviderMeshOrientation::showDefects(), Reen::BSplineParameterCorrection::SolveWithoutSmoothing(), Reen::BSplineParameterCorrection::SolveWithSmoothing(), Reen::SplineBasisfunction::SplineBasisfunction(), MeshCore::MeshAlgorithm::SubSampleByDist(), boost::numeric::bindings::atlas::detail::syr2k(), boost::numeric::bindings::atlas::detail::syrk(), boost::numeric::bindings::blas::syrk(), and Raytracing::PovTools::writeShape().
int maxPts = 1000 |
Definition at line 56 of file ann_sample.cpp.
istream* queryIn = NULL |
Definition at line 59 of file ann_sample.cpp.