#include <UniGridApprox.h>
Public Member Functions | |
bool | BuildSurf () |
double | CompGridError () |
bool | CompKnots (int m, int n) |
double | CompMeshError () |
bool | MatComp (int m, int n) |
bool | MeshOffset () |
bool | Perform (double TOL) |
bool | SurfMeshParam () |
UniGridApprox (const MeshCore::MeshKernel &InputMesh, double Tol) | |
bool | WriteMatrix (ublas::matrix< double > M) |
~UniGridApprox () | |
Public Attributes | |
GeomAdaptor_Surface | aAdaptorSurface |
ublas::matrix< double > | CPx |
ublas::matrix< double > | CPy |
ublas::matrix< double > | CPz |
std::vector< double > | m_err |
TopoDS_Face | m_Face |
std::vector< std::vector < Base::Vector3f > > | m_Grid |
std::vector< std::vector < Base::Vector3f > > | m_GridCopy |
MeshCore::MeshKernel | m_Mesh |
double | m_offset |
double | m_Tol |
int | m_udeg |
std::vector< double > | m_uknots |
int | m_um |
std::vector< double > | m_uParam |
int | m_vdeg |
std::vector< double > | m_vknots |
int | m_vm |
std::vector< double > | m_vParam |
std::vector< std::vector < double > > | mG_err |
int | n_x |
int | n_y |
ublas::matrix< double > | Q |
int | uCP |
int | vCP |
Definition at line 36 of file UniGridApprox.h.
UniGridApprox::UniGridApprox | ( | const MeshCore::MeshKernel & | InputMesh, | |
double | Tol | |||
) |
Definition at line 52 of file UniGridApprox.cpp.
UniGridApprox::~UniGridApprox | ( | ) |
Definition at line 57 of file UniGridApprox.cpp.
bool UniGridApprox::BuildSurf | ( | ) |
double UniGridApprox::CompGridError | ( | ) |
Definition at line 876 of file UniGridApprox.cpp.
References aAdaptorSurface, m_Grid, m_Mesh, mG_err, MovieTool::x, and MovieTool::y.
bool UniGridApprox::CompKnots | ( | int | m, | |
int | n | |||
) |
double UniGridApprox::CompMeshError | ( | ) |
Definition at line 926 of file UniGridApprox.cpp.
References aAdaptorSurface, Base::Builder3D::addSingleLine(), MeshCore::MeshPointIterator::Begin(), best_fit::Comp_Normals(), MeshCore::MeshKernel::CountPoints(), m_err, m_Mesh, Mesh2Shape::mesh, MeshCore::MeshPointIterator::More(), MeshCore::MeshAlgorithm::NearestFacetOnRay(), MeshCore::MeshPointIterator::Next(), MeshCore::MeshPointIterator::Position(), Base::Builder3D::saveToFile(), KDL::sqrt(), best_fit::Tesselate_Face(), Base::Vector3< _Precision >::x, Base::Vector3< _Precision >::y, and Base::Vector3< _Precision >::z.
Referenced by Perform().
bool UniGridApprox::MatComp | ( | int | m, | |
int | n | |||
) |
Definition at line 432 of file UniGridApprox.cpp.
References Base::Builder3D::addSingleLine(), Base::Builder3D::addSinglePoint(), Routines::Basisfun(), CblasNoTrans, CblasTrans, CPx, CPy, CPz, Routines::FindSpan(), boost::numeric::bindings::atlas::gemm(), boost::numeric::bindings::atlas::getrs(), k, KDL::log(), boost::numeric::bindings::atlas::lu_factor(), FemExample::m, m_Grid, m_udeg, m_uknots, m_uParam, m_vdeg, m_vknots, m_vParam, n_x, n_y, draftTools::p, Base::Builder3D::saveToFile(), Base::Vector3< _Precision >::x, MovieTool::x, Base::Vector3< _Precision >::y, MovieTool::y, and Base::Vector3< _Precision >::z.
Referenced by Perform().
bool UniGridApprox::MeshOffset | ( | ) |
Definition at line 113 of file UniGridApprox.cpp.
References Base::Builder3D::addSinglePoint(), MeshCore::MeshPointIterator::Begin(), best_fit::Comp_Normals(), Py::int, m_Grid, m_GridCopy, m_Mesh, MeshCore::MeshPointIterator::More(), n_x, n_y, MeshCore::MeshAlgorithm::NearestFacetOnRay(), MeshCore::MeshPointIterator::Next(), MeshCore::MeshKernel::RecalcBoundBox(), Base::Builder3D::saveToFile(), Base::Vector3< _Precision >::Scale(), KDL::sqrt(), uCP, vCP, Base::Vector3< _Precision >::x, Base::Vector3< _Precision >::y, and Base::Vector3< _Precision >::z.
Referenced by Perform().
bool UniGridApprox::Perform | ( | double | TOL | ) |
Definition at line 61 of file UniGridApprox.cpp.
References BuildSurf(), CompKnots(), CompMeshError(), m_Grid, m_GridCopy, m_udeg, m_vdeg, MatComp(), MeshOffset(), n_x, n_y, SurfMeshParam(), uCP, and vCP.
bool UniGridApprox::SurfMeshParam | ( | ) |
Definition at line 290 of file UniGridApprox.cpp.
References Base::Vector3< _Precision >::Length(), FemExample::m, m_Grid, m_uParam, and m_vParam.
Referenced by Perform().
bool UniGridApprox::WriteMatrix | ( | ublas::matrix< double > | M | ) |
Definition at line 908 of file UniGridApprox.cpp.
GeomAdaptor_Surface UniGridApprox::aAdaptorSurface |
Definition at line 53 of file UniGridApprox.h.
Referenced by BuildSurf(), CompGridError(), and CompMeshError().
ublas::matrix<double> UniGridApprox::CPx |
Definition at line 61 of file UniGridApprox.h.
Referenced by BuildSurf(), and MatComp().
ublas::matrix<double> UniGridApprox::CPy |
Definition at line 62 of file UniGridApprox.h.
Referenced by BuildSurf(), and MatComp().
ublas::matrix<double> UniGridApprox::CPz |
Definition at line 63 of file UniGridApprox.h.
Referenced by BuildSurf(), and MatComp().
std::vector<double> UniGridApprox::m_err |
Definition at line 58 of file UniGridApprox.h.
Referenced by CompMeshError().
TopoDS_Face UniGridApprox::m_Face |
Definition at line 77 of file UniGridApprox.h.
std::vector< std::vector<Base::Vector3f> > UniGridApprox::m_Grid |
Definition at line 56 of file UniGridApprox.h.
Referenced by CompGridError(), MatComp(), MeshOffset(), Perform(), and SurfMeshParam().
std::vector< std::vector<Base::Vector3f> > UniGridApprox::m_GridCopy |
Definition at line 57 of file UniGridApprox.h.
Referenced by MeshOffset(), and Perform().
Definition at line 52 of file UniGridApprox.h.
Referenced by CompGridError(), CompMeshError(), and MeshOffset().
double UniGridApprox::m_offset |
Definition at line 54 of file UniGridApprox.h.
double UniGridApprox::m_Tol |
Definition at line 75 of file UniGridApprox.h.
Definition at line 71 of file UniGridApprox.h.
Referenced by CompKnots(), MatComp(), and Perform().
std::vector<double> UniGridApprox::m_uknots |
Definition at line 66 of file UniGridApprox.h.
Referenced by BuildSurf(), CompKnots(), and MatComp().
Definition at line 69 of file UniGridApprox.h.
Referenced by BuildSurf(), and CompKnots().
std::vector<double> UniGridApprox::m_uParam |
Definition at line 64 of file UniGridApprox.h.
Referenced by CompKnots(), MatComp(), and SurfMeshParam().
Definition at line 72 of file UniGridApprox.h.
Referenced by CompKnots(), MatComp(), and Perform().
std::vector<double> UniGridApprox::m_vknots |
Definition at line 67 of file UniGridApprox.h.
Referenced by BuildSurf(), CompKnots(), and MatComp().
Definition at line 70 of file UniGridApprox.h.
Referenced by BuildSurf(), and CompKnots().
std::vector<double> UniGridApprox::m_vParam |
Definition at line 65 of file UniGridApprox.h.
Referenced by CompKnots(), MatComp(), and SurfMeshParam().
std::vector< std::vector<double> > UniGridApprox::mG_err |
Definition at line 59 of file UniGridApprox.h.
Referenced by CompGridError().
Definition at line 73 of file UniGridApprox.h.
Referenced by CompKnots(), MatComp(), MeshOffset(), and Perform().
Definition at line 74 of file UniGridApprox.h.
Referenced by CompKnots(), MatComp(), MeshOffset(), and Perform().
ublas::matrix<double> UniGridApprox::Q |
Definition at line 60 of file UniGridApprox.h.
Definition at line 68 of file UniGridApprox.h.
Referenced by MeshOffset(), and Perform().
Definition at line 68 of file UniGridApprox.h.
Referenced by MeshOffset(), and Perform().