1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-19 13:40:49 +03:00

0027827: Samples - fix compilation errors in XAML (UWP) sample.

Error about deployment target version was fixed.
Check of export to VRML format was added to sample XAML (UWP).

Add freetype.dll to the sample project for correct execution of sample from Visual Studio.
This commit is contained in:
ski
2016-08-31 12:35:03 +03:00
committed by bugmaster
parent 6b5b9abf8b
commit 1ae83f5727
3 changed files with 18 additions and 9 deletions

View File

@@ -256,14 +256,12 @@ void MainPage::OnClickDataExchange(Platform::Object^ theSender,
if (SaveSTL(filePath, theBox))
Output_TextBlock->Text += L"OK: export to .stl\n";
/*
// Export box to .vrml
StringCchCopyW(filePath, _countof(filePath), tmpPath);
StringCchCatW(filePath, _countof(filePath), L"/box.vrml");
if (SaveVRML(filePath, theBox))
Output_TextBlock->Text += L"OK: export to .vrml\n";
*/
}
//=======================================================================
@@ -371,7 +369,6 @@ Standard_Boolean MainPage::SaveSTL(const wchar_t* theFilePath, const TopoDS_Shap
//function : SaveVRML
//purpose : Export shape to .vrml
//=======================================================================
/*
Standard_Boolean MainPage::SaveVRML(const wchar_t* theFilePath, const TopoDS_Shape& theShape)
{
VrmlAPI_Writer aWriter;
@@ -383,7 +380,6 @@ Standard_Boolean MainPage::SaveVRML(const wchar_t* theFilePath, const TopoDS_Sha
return Standard_True;
}
*/
//=======================================================================
//function : ReadBREP
@@ -454,4 +450,4 @@ Standard_Boolean MainPage::ReadSTEP(const wchar_t* theFilePath, TopoDS_Shape& th
return Standard_True;
}
return Standard_False;
}
}