20 utility::LogInfo(
" --purge : Clear duplicated and unreferenced vertices and");
25 int main(
int argc,
char** argv) {
37 std::string directory(argv[1]);
38 std::vector<std::string> filenames;
42 assert(merged_baseVertex);
45 auto merged_mesh_ptr = std::make_shared<ccMesh>(merged_baseVertex);
46 merged_mesh_ptr->addChild(merged_baseVertex);
47 for (
const auto&
filename : filenames) {
53 auto mesh_ptr = std::make_shared<ccMesh>(baseVertices);
int main(int argc, char **argv)
Array of compressed 3D normals (single index)
virtual bool addChild(ccHObject *child, int dependencyFlags=DP_PARENT_OF_OTHER, int insertIndex=-1)
Adds a child.
NormsIndexesTableType * getTriNormsTable() const override
Returns per-triangle normals shared array.
void shrinkToFit()
Removes unused capacity.
virtual void setLocked(bool state)
Sets the "enabled" property.
virtual void setEnabled(bool state)
Sets the "enabled" property.
A 3D cloud and its associated features (color, normals, scalar fields, etc.)
void shrinkToFit()
Removes unused capacity.
bool WriteTriangleMesh(const std::string &filename, const ccMesh &mesh, bool write_ascii, bool compressed, bool write_vertex_normals, bool write_vertex_colors, bool write_triangle_uvs, bool print_progress)
bool ReadTriangleMesh(const std::string &filename, ccMesh &mesh, ReadTriangleMeshOptions params)
bool ListFilesInDirectory(const std::string &directory, std::vector< std::string > &filenames)
int GetProgramOptionAsInt(int argc, char **argv, const std::string &option, const int default_value=0)
void SetVerbosityLevel(VerbosityLevel level)
bool ProgramOptionExists(int argc, char **argv, const std::string &option)
Generic file read and write utility for python interface.