コード例 #1
0
ファイル: main.cpp プロジェクト: fougue/gmio
static void RWStl_WriteBinary(const void* filepath)
{
    if (!RWStl::WriteBinary(stlMesh, OSD_Path(static_cast<const char*>(filepath))))
        std::cerr << "RWStl::WriteBinary() failure" << std::endl;
}
コード例 #2
0
ファイル: io.cpp プロジェクト: neoplacer/fougtools
Handle_StlMesh_Mesh IO::loadStlFile(const QString& filename, Handle_Message_ProgressIndicator indicator)
{
  return RWStl::ReadFile(OSD_Path(filename.toAscii().constData()), indicator);
}
コード例 #3
0
ファイル: main.cpp プロジェクト: fougue/gmio
static void RWStl_ReadFile(const void* filepath)
{
    stlMesh = RWStl::ReadFile(OSD_Path(static_cast<const char*>(filepath)));
    if (stlMesh.IsNull())
        std::cerr << "RWStl::ReadFile(): null mesh" << std::endl;
}