diff --git a/indra/libhacd/hacdHACD.cpp b/indra/libhacd/hacdHACD.cpp index afc04033c..bce8cedd7 100644 --- a/indra/libhacd/hacdHACD.cpp +++ b/indra/libhacd/hacdHACD.cpp @@ -1088,6 +1088,7 @@ namespace HACD return true; } +#if 0 bool HACD::Save(const char * fileName, bool uniColor, long numCluster) const { std::ofstream fout(fileName); @@ -1137,4 +1138,5 @@ namespace HACD return false; } } +#endif } diff --git a/indra/libhacd/hacdHACD.h b/indra/libhacd/hacdHACD.h index 5753e45ce..bdbbc472b 100644 --- a/indra/libhacd/hacdHACD.h +++ b/indra/libhacd/hacdHACD.h @@ -214,12 +214,14 @@ namespace HACD //! @param exportDistPoints specifies wheter distance points should ne exported or not (used only for debugging). //! @return true if sucess bool Compute(bool fullCH=false, bool exportDistPoints=false); +#if 0 //! Saves the generated convex-hulls in a VRML 2.0 file. //! @param fileName the output file name //! @param uniColor specifies whether the different convex-hulls should have the same color or not //! @param numCluster specifies the cluster to be saved, if numCluster < 0 export all clusters //! @return true if sucess bool Save(const char * fileName, bool uniColor, long numCluster=-1) const; +#endif //! Shifts and scales to the data to have all the coordinates between 0.0 and 1000.0. void NormalizeData(); //! Inverse the operations applied by NormalizeData(). diff --git a/indra/libhacd/hacdManifoldMesh.cpp b/indra/libhacd/hacdManifoldMesh.cpp index 98f5408ef..ec3592a1a 100644 --- a/indra/libhacd/hacdManifoldMesh.cpp +++ b/indra/libhacd/hacdManifoldMesh.cpp @@ -152,6 +152,7 @@ namespace HACD m_triangles.Next(); } } +#if 0 bool TMMesh::Save(const char *fileName) { std::ofstream fout(fileName); @@ -235,6 +236,7 @@ namespace HACD } return true; } +#endif void TMMesh::GetIFS(Vec3 * const points, Vec3 * const triangles) { size_t nV = m_vertices.GetSize(); diff --git a/indra/libhacd/hacdManifoldMesh.h b/indra/libhacd/hacdManifoldMesh.h index c5c20caa1..7569fdeed 100644 --- a/indra/libhacd/hacdManifoldMesh.h +++ b/indra/libhacd/hacdManifoldMesh.h @@ -198,12 +198,14 @@ namespace HACD void Print(); //! void GetIFS(Vec3 * const points, Vec3 * const triangles); +#if 0 //! Save mesh bool Save(const char *fileName); //! Save mesh to VRML 2.0 format bool SaveVRML2(std::ofstream &fout); //! Save mesh to VRML 2.0 format bool SaveVRML2(std::ofstream &fout, const Material & material); +#endif //! void Clear(); //!