00001 // Magic Software, Inc. 00002 // http://www.magic-software.com 00003 // Copyright (c) 2000, All Rights Reserved 00004 // 00005 // Source code from Magic Software is supplied under the terms of a license 00006 // agreement and may not be copied or disclosed except in accordance with the 00007 // terms of that agreement. The various license agreements may be found at 00008 // the Magic Software web site. This file is subject to the license 00009 // 00010 // FREE SOURCE CODE 00011 // http://www.magic-software.com/License.html/free.pdf 00012 00013 #ifndef MGCGAUSSPOINTSFIT_H 00014 #define MGCGAUSSPOINTSFIT_H 00015 00016 // Fit points with a Gaussian distribution. The center is the mean of the 00017 // points, the axes are the eigenvectors of the covariance matrix, and the 00018 // extents are the eigenvalues of the covariance matrix and are returned in 00019 // increasing order. The last two functions allow selection of valid 00020 // vertices from a pool. The return value is 'true' if and only if at least 00021 // one vertex was valid. 00022 00023 //#include "MgcVector2.h" 00024 #include "MgcVector3.h" 00025 00026 00027 //void MgcGaussPointsFit (int iQuantity, const MgcVector2* akPoint, 00028 // MgcVector2& rkCenter, MgcVector2 akAxis[2], MgcReal afExtent[2]); 00029 00030 void MgcGaussPointsFit (int iQuantity, const MgcVector3* akPoint, 00031 MgcVector3& rkCenter, MgcVector3 akAxis[3], MgcReal afExtent[3]); 00032 00033 //bool MgcGaussPointsFit (int iQuantity, const MgcVector2* akPoint, 00034 // const bool* abValid, MgcVector2& rkCenter, MgcVector2 akAxis[2], 00035 // MgcReal afExtent[2]); 00036 00037 bool MgcGaussPointsFit (int iQuantity, const MgcVector3* akPoint, 00038 const bool* abValid, MgcVector3& rkCenter, MgcVector3 akAxis[3], 00039 MgcReal afExtent[3]); 00040 00041 #endif