Hi;
I write a mesh into 3dm file by this core:
static bool write( const wchar_t* file_path, int version, ON_Mesh mesh )
{
if(mesh.IsValid())
{
ON::Begin();
FILE* archive_fp = ON::OpenFile( file_path, L"wb");
ON_BinaryFile archive( ON::write3dm, archive_fp );
ON_WriteOneObjectArchive( archive, version, mesh );
ON::CloseFile(archive_fp);
ON::End();
}
return 1;
}
After I read the file and get the mesh, how cant I delete the object data have write?