How to test a CGAL Demo (Case Repair_polyhedron_plugin.cpp)

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

How to test a CGAL Demo (Case Repair_polyhedron_plugin.cpp)

sergio
Hi
After follow the manual CGAL installation:

https://www.cgal.org/download/windows.html#Boost

and compile everything ok I see the following files

C:\dev\CGAL-4.12\build\demo\Polyhedron>dir

30/05/2018  13:42    <DIR>          .
30/05/2018  13:42    <DIR>          ..
30/05/2018  13:29            32.323 ALL_BUILD.vcxproj
30/05/2018  13:29               287 ALL_BUILD.vcxproj.filters
30/05/2018  13:40               165 ALL_BUILD.vcxproj.user
30/05/2018  13:42    <DIR>          CMakeFiles
30/05/2018  13:29             1.041 cmake_install.cmake
30/05/2018  13:42    <DIR>          Debug
30/05/2018  13:29            12.583 INSTALL.vcxproj
30/05/2018  13:29               513 INSTALL.vcxproj.filters
30/05/2018  13:29             3.204 Polyhedron_Demo.sln
30/05/2018  13:40    <DIR>          Release
30/05/2018  13:42    <DIR>          Win32
30/05/2018  13:25    <DIR>          __
               7 archivos         50.116 bytes
               7 dirs  102.536.847.360 bytes libres
                           
so I open visual studio and open Polyhedron_Demo.sln in order to generate
the exe of

https://github.com/CGAL/cgal/blob/master/Polyhedron/demo/Polyhedron/Plugins/PMP/Repair_polyhedron_plugin.cpp

The problem is that the build is ok without any error but I don't see any
executable.

So how i can test this demo?



--
Sent from: http://cgal-discuss.949826.n4.nabble.com/

--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://sympa.inria.fr/sympa/info/cgal-discuss


Reply | Threaded
Open this post in threaded view
|

Re: How to test a CGAL Demo (Case Repair_polyhedron_plugin.cpp)

andreas.fabri

I have installed Qt  with qt-opensource-windows-x86-5.11.0.exe and I enabled  QtScript during installation

Andreas


On 5/30/2018 6:15 PM, sergio campo wrote:
Hello Andreas,
You right. After setting the right configuration:
WITH_QGLViewer:BOOL=ON
WITH_DEMOS:BOOL= ON
WITH_CGAL_Qt5:BOOL=ON

          
The result of configuring demo/Polyhedron
"NOTICE: This demo requires Qt5, and will not be compiled." See the results:


-- Configuring demo in demo/Polyhedron

Multi-configuration CMake generator: cannot display flags

Requested component: Qt5

Requested component: ImageIO

Requested component: MPFR

Requested component: GMP

Could NOT find Eigen3 (missing: EIGEN3_INCLUDE_DIR) (Required is at least version "3.2.0")

ERROR: Intel TBB NOT found! Please define the TBBROOT (or TBB_INSTALL_DIR) and/or TBB_ARCH_PLATFORM environment variables.

Looked for Threading Building Blocks in C:/Program Files/Intel/TBB;C:/Program Files (x86)/Intel/TBB

NOTICE: Intel TBB was not found. Bilateral smoothing and WLOP plugins are faster if TBB is linked.

ERROR: Intel TBB NOT found! Please define the TBBROOT (or TBB_INSTALL_DIR) and/or TBB_ARCH_PLATFORM environment variables.

Looked for Threading Building Blocks in C:/Program Files/Intel/TBB;C:/Program Files (x86)/Intel/TBB

NOTICE: This demo requires Qt5, and will not be compiled.


          The problem is that in qt5 is deprecated QtScrip (see https://doc.qt.io/archives/qt-5.10/qtmodules.html)and
          cmake does not found it.
          

          
//The directory containing a CMake configuration file for Qt5ScriptTools.
Qt5ScriptTools_DIR:PATH=Qt5ScriptTools_DIR-NOTFOUND

//The directory containing a CMake configuration file for Qt5Script.
Qt5Script_DIR:PATH=Qt5Script_DIR-NOTFOUND
The other modules are successful linked:

          

          
//The directory containing a CMake configuration file for Qt5Core.
Qt5Core_DIR:PATH=C:/dev/Qt/5.11.0/msvc2015/lib/cmake/Qt5Core

//The directory containing a CMake configuration file for Qt5Gui.
Qt5Gui_DIR:PATH=C:/dev/Qt/5.11.0/msvc2015/lib/cmake/Qt5Gui

//The directory containing a CMake configuration file for Qt5Help.
Qt5Help_DIR:PATH=C:/dev/Qt/5.11.0/msvc2015/lib/cmake/Qt5Help

//The directory containing a CMake configuration file for Qt5OpenGL.
Qt5OpenGL_DIR:PATH=C:/dev/Qt/5.11.0/msvc2015/lib/cmake/Qt5OpenGL

//The directory containing a CMake configuration file for Qt5ScriptTools.
Qt5ScriptTools_DIR:PATH=Qt5ScriptTools_DIR-NOTFOUND

//The directory containing a CMake configuration file for Qt5Script.
Qt5Script_DIR:PATH=Qt5Script_DIR-NOTFOUND
//The directory containing a CMake configuration file for Qt5Sql. Qt5Sql_DIR:PATH=C:/dev/Qt/5.11.0/msvc2015/lib/cmake/Qt5Sql //The directory containing a CMake configuration file for Qt5Svg. Qt5Svg_DIR:PATH=C:/dev/Qt/5.11.0/msvc2015/lib/cmake/Qt5Svg //The directory containing a CMake configuration file for Qt5Widgets. Qt5Widgets_DIR:PATH=C:/dev/Qt/5.11.0/msvc2015/lib/cmake/Qt5Widgets //The directory containing a CMake configuration file for Qt5Xml. Qt5Xml_DIR:PATH=C:/dev/Qt/5.11.0/msvc2015/lib/cmake/Qt5Xml //The directory containing a CMake configuration file for Qt5. Qt5_DIR:PATH=C:/dev/Qt/5.11.0/msvc2015/lib/cmake/Qt5

I added again the MakeFiles with correct values. Any suggestion?

Best regards,

Sergio

          

          

          


On Wed, May 30, 2018 at 2:55 PM, sergio campo <[hidden email]> wrote:
Hello Andreas,
Thanks for your answer. Added cmake log file and I don't see anything. I have qt and QGLViewer.
Best regards,
Ruben

On Wed, May 30, 2018 at 2:07 PM, Andreas Fabri <[hidden email]> wrote:

My guess is that there is no executable because you do not have Qt or Qglviewer installed.

You should see that in the log of cmake.

andreas


On 5/30/2018 2:01 PM, sergio wrote:
Hi 
After follow the manual CGAL installation:

https://www.cgal.org/download/windows.html#Boost

and compile everything ok I see the following files

C:\dev\CGAL-4.12\build\demo\Polyhedron>dir

30/05/2018  13:42    <DIR>          .
30/05/2018  13:42    <DIR>          ..
30/05/2018  13:29            32.323 ALL_BUILD.vcxproj
30/05/2018  13:29               287 ALL_BUILD.vcxproj.filters
30/05/2018  13:40               165 ALL_BUILD.vcxproj.user
30/05/2018  13:42    <DIR>          CMakeFiles
30/05/2018  13:29             1.041 cmake_install.cmake
30/05/2018  13:42    <DIR>          Debug
30/05/2018  13:29            12.583 INSTALL.vcxproj
30/05/2018  13:29               513 INSTALL.vcxproj.filters
30/05/2018  13:29             3.204 Polyhedron_Demo.sln
30/05/2018  13:40    <DIR>          Release
30/05/2018  13:42    <DIR>          Win32
30/05/2018  13:25    <DIR>          __
               7 archivos         50.116 bytes
               7 dirs  102.536.847.360 bytes libres
			   
so I open visual studio and open Polyhedron_Demo.sln in order to generate
the exe of 

https://github.com/CGAL/cgal/blob/master/Polyhedron/demo/Polyhedron/Plugins/PMP/Repair_polyhedron_plugin.cpp

The problem is that the build is ok without any error but I don't see any
executable.

So how i can test this demo?



--
Sent from: http://cgal-discuss.949826.n4.nabble.com/


-- 
Andreas Fabri, PhD
Chief Officer, GeometryFactory
Editor, The CGAL Project

phone: +33.492.954.912    skype: andreas.fabri



-- 
Andreas Fabri, PhD
Chief Officer, GeometryFactory
Editor, The CGAL Project

phone: +33.492.954.912    skype: andreas.fabri
Reply | Threaded
Open this post in threaded view
|

Re: How to test a CGAL Demo (Case Repair_polyhedron_plugin.cpp)

sergio
Hello Andreas,

Ok it seems that it is included as separate module:


I'll try it and let you know the results.

Thanks you!

Sergio

On Thu, May 31, 2018 at 10:05 AM, Andreas Fabri <[hidden email]> wrote:

I have installed Qt  with qt-opensource-windows-x86-5.11.0.exe and I enabled  QtScript during installation

Andreas


On 5/30/2018 6:15 PM, sergio campo wrote:
Hello Andreas,
You right. After setting the right configuration:
WITH_QGLViewer:BOOL=ON
WITH_DEMOS:BOOL= ON
WITH_CGAL_Qt5:BOOL=ON

          
The result of configuring demo/Polyhedron
"NOTICE: This demo requires Qt5, and will not be compiled." See the results:


-- Configuring demo in demo/Polyhedron

Multi-configuration CMake generator: cannot display flags

Requested component: Qt5

Requested component: ImageIO

Requested component: MPFR

Requested component: GMP

Could NOT find Eigen3 (missing: EIGEN3_INCLUDE_DIR) (Required is at least version "3.2.0")

ERROR: Intel TBB NOT found! Please define the TBBROOT (or TBB_INSTALL_DIR) and/or TBB_ARCH_PLATFORM environment variables.

Looked for Threading Building Blocks in C:/Program Files/Intel/TBB;C:/Program Files (x86)/Intel/TBB

NOTICE: Intel TBB was not found. Bilateral smoothing and WLOP plugins are faster if TBB is linked.

ERROR: Intel TBB NOT found! Please define the TBBROOT (or TBB_INSTALL_DIR) and/or TBB_ARCH_PLATFORM environment variables.

Looked for Threading Building Blocks in C:/Program Files/Intel/TBB;C:/Program Files (x86)/Intel/TBB

NOTICE: This demo requires Qt5, and will not be compiled.


          The problem is that in qt5 is deprecated QtScrip (see https://doc.qt.io/archives/qt-5.10/qtmodules.html)and
          cmake does not found it.
          

          
//The directory containing a CMake configuration file for Qt5ScriptTools.
Qt5ScriptTools_DIR:PATH=Qt5ScriptTools_DIR-NOTFOUND

//The directory containing a CMake configuration file for Qt5Script.
Qt5Script_DIR:PATH=Qt5Script_DIR-NOTFOUND
The other modules are successful linked:

          

          
//The directory containing a CMake configuration file for Qt5Core.
Qt5Core_DIR:PATH=C:/dev/Qt/5.11.0/msvc2015/lib/cmake/Qt5Core

//The directory containing a CMake configuration file for Qt5Gui.
Qt5Gui_DIR:PATH=C:/dev/Qt/5.11.0/msvc2015/lib/cmake/Qt5Gui

//The directory containing a CMake configuration file for Qt5Help.
Qt5Help_DIR:PATH=C:/dev/Qt/5.11.0/msvc2015/lib/cmake/Qt5Help

//The directory containing a CMake configuration file for Qt5OpenGL.
Qt5OpenGL_DIR:PATH=C:/dev/Qt/5.11.0/msvc2015/lib/cmake/Qt5OpenGL

//The directory containing a CMake configuration file for Qt5ScriptTools.
Qt5ScriptTools_DIR:PATH=Qt5ScriptTools_DIR-NOTFOUND

//The directory containing a CMake configuration file for Qt5Script.
Qt5Script_DIR:PATH=Qt5Script_DIR-NOTFOUND
//The directory containing a CMake configuration file for Qt5Sql. Qt5Sql_DIR:PATH=C:/dev/Qt/5.11.0/msvc2015/lib/cmake/Qt5Sql //The directory containing a CMake configuration file for Qt5Svg. Qt5Svg_DIR:PATH=C:/dev/Qt/5.11.0/msvc2015/lib/cmake/Qt5Svg //The directory containing a CMake configuration file for Qt5Widgets. Qt5Widgets_DIR:PATH=C:/dev/Qt/5.11.0/msvc2015/lib/cmake/Qt5Widgets //The directory containing a CMake configuration file for Qt5Xml. Qt5Xml_DIR:PATH=C:/dev/Qt/5.11.0/msvc2015/lib/cmake/Qt5Xml //The directory containing a CMake configuration file for Qt5. Qt5_DIR:PATH=C:/dev/Qt/5.11.0/msvc2015/lib/cmake/Qt5

I added again the MakeFiles with correct values. Any suggestion?

Best regards,

Sergio

          

          

          


On Wed, May 30, 2018 at 2:55 PM, sergio campo <[hidden email]> wrote:
Hello Andreas,
Thanks for your answer. Added cmake log file and I don't see anything. I have qt and QGLViewer.
Best regards,
Ruben

On Wed, May 30, 2018 at 2:07 PM, Andreas Fabri <[hidden email]> wrote:

My guess is that there is no executable because you do not have Qt or Qglviewer installed.

You should see that in the log of cmake.

andreas


On 5/30/2018 2:01 PM, sergio wrote:
Hi 
After follow the manual CGAL installation:

https://www.cgal.org/download/windows.html#Boost

and compile everything ok I see the following files

C:\dev\CGAL-4.12\build\demo\Polyhedron>dir

30/05/2018  13:42    <DIR>          .
30/05/2018  13:42    <DIR>          ..
30/05/2018  13:29            32.323 ALL_BUILD.vcxproj
30/05/2018  13:29               287 ALL_BUILD.vcxproj.filters
30/05/2018  13:40               165 ALL_BUILD.vcxproj.user
30/05/2018  13:42    <DIR>          CMakeFiles
30/05/2018  13:29             1.041 cmake_install.cmake
30/05/2018  13:42    <DIR>          Debug
30/05/2018  13:29            12.583 INSTALL.vcxproj
30/05/2018  13:29               513 INSTALL.vcxproj.filters
30/05/2018  13:29             3.204 Polyhedron_Demo.sln
30/05/2018  13:40    <DIR>          Release
30/05/2018  13:42    <DIR>          Win32
30/05/2018  13:25    <DIR>          __
               7 archivos         50.116 bytes
               7 dirs  102.536.847.360 bytes libres
			   
so I open visual studio and open Polyhedron_Demo.sln in order to generate
the exe of 

https://github.com/CGAL/cgal/blob/master/Polyhedron/demo/Polyhedron/Plugins/PMP/Repair_polyhedron_plugin.cpp

The problem is that the build is ok without any error but I don't see any
executable.

So how i can test this demo?



--
Sent from: http://cgal-discuss.949826.n4.nabble.com/


-- 
Andreas Fabri, PhD
Chief Officer, GeometryFactory
Editor, The CGAL Project

phone: +33.492.954.912    skype: andreas.fabri



-- 
Andreas Fabri, PhD
Chief Officer, GeometryFactory
Editor, The CGAL Project

phone: +33.492.954.912    skype: andreas.fabri

Reply | Threaded
Open this post in threaded view
|

Re: How to test a CGAL Demo (Case Repair_polyhedron_plugin.cpp)

sergio
Hello Andrea 
Although at the moment I don't include the library TBB it works! Thank you!, It's suppose that TBB only affect concurrency (Time of processing), isn't it?
Testing demo with the 3D mesh i obtained the following results for repairing self-intersection:

test 1.  spheres-intersecting-faces.off (Failed by only execute Remove self intersection operation) 

- Number of vertices: 1108
- Number of edges: 3306
- Number of faces: 2204

- Number of isolated vertices: 0 

     - Defects:   248 pairs of  intersected triangles .
     - Operation:  Operations->Polygon Mesh Processing->Repair->Experimental->Remove self intersection
     - Results: FAIL.


test 2.  spheres-intersecting-faces.off (Fixed by only execute  AutoRefine and Remove self intersection operation)

     

Number of vertices: 1108
Number of edges: 3306
Number of faces: 2204

Number of isolated vertices: 0 

     - Defects:   248 pairs of intersected triangles. 

     - Operation:  Operations->Polygon Mesh Processing->Repair->Experimental->AutoRefine and Remove self intersection
     - Results: OK. It works!


test 3. skull_art.off  ( Failed by only execute Remove self intersection operation )

Number of vertices: 39172
Number of edges: 156576
Number of faces: 104384
Number of isolated vertices:0
- Defects:   634852 pairs of intersected triangles 
     - Operation:  Operations->Polygon Mesh Processing->Repair->Experimental->Remove self intersection
     - Results: FAIL.



test 4. skull_art.off  ( Failed  by only execute AutoRefine and Remove self intersection operation ) 

Number of vertices: 39172
Number of edges: 156576
Number of faces: 104384
Number of isolated vertices:0
- Defects:  634852 pairs of intersected triangles.  
     - Operation:  Operations->Polygon Mesh Processing->Repair->Experimental->Remove self intersection
     - Results: FAIL.


Questions:

Why wthe skull_art.off is not repaired? It there a way to repair it? 

The files are included in the google drive:


Best regards,

Rubén




On Thu, May 31, 2018 at 10:56 AM, sergio campo <[hidden email]> wrote:
Hello Andreas,

Ok it seems that it is included as separate module:


I'll try it and let you know the results.

Thanks you!

Sergio

On Thu, May 31, 2018 at 10:05 AM, Andreas Fabri <[hidden email]> wrote:

I have installed Qt  with qt-opensource-windows-x86-5.11.0.exe and I enabled  QtScript during installation

Andreas


On 5/30/2018 6:15 PM, sergio campo wrote:
Hello Andreas,
You right. After setting the right configuration:
WITH_QGLViewer:BOOL=ON
WITH_DEMOS:BOOL= ON
WITH_CGAL_Qt5:BOOL=ON

          
The result of configuring demo/Polyhedron
"NOTICE: This demo requires Qt5, and will not be compiled." See the results:


-- Configuring demo in demo/Polyhedron

Multi-configuration CMake generator: cannot display flags

Requested component: Qt5

Requested component: ImageIO

Requested component: MPFR

Requested component: GMP

Could NOT find Eigen3 (missing: EIGEN3_INCLUDE_DIR) (Required is at least version "3.2.0")

ERROR: Intel TBB NOT found! Please define the TBBROOT (or TBB_INSTALL_DIR) and/or TBB_ARCH_PLATFORM environment variables.

Looked for Threading Building Blocks in C:/Program Files/Intel/TBB;C:/Program Files (x86)/Intel/TBB

NOTICE: Intel TBB was not found. Bilateral smoothing and WLOP plugins are faster if TBB is linked.

ERROR: Intel TBB NOT found! Please define the TBBROOT (or TBB_INSTALL_DIR) and/or TBB_ARCH_PLATFORM environment variables.

Looked for Threading Building Blocks in C:/Program Files/Intel/TBB;C:/Program Files (x86)/Intel/TBB

NOTICE: This demo requires Qt5, and will not be compiled.


          The problem is that in qt5 is deprecated QtScrip (see https://doc.qt.io/archives/qt-5.10/qtmodules.html)and
          cmake does not found it.
          

          
//The directory containing a CMake configuration file for Qt5ScriptTools.
Qt5ScriptTools_DIR:PATH=Qt5ScriptTools_DIR-NOTFOUND

//The directory containing a CMake configuration file for Qt5Script.
Qt5Script_DIR:PATH=Qt5Script_DIR-NOTFOUND
The other modules are successful linked:

          

          
//The directory containing a CMake configuration file for Qt5Core.
Qt5Core_DIR:PATH=C:/dev/Qt/5.11.0/msvc2015/lib/cmake/Qt5Core

//The directory containing a CMake configuration file for Qt5Gui.
Qt5Gui_DIR:PATH=C:/dev/Qt/5.11.0/msvc2015/lib/cmake/Qt5Gui

//The directory containing a CMake configuration file for Qt5Help.
Qt5Help_DIR:PATH=C:/dev/Qt/5.11.0/msvc2015/lib/cmake/Qt5Help

//The directory containing a CMake configuration file for Qt5OpenGL.
Qt5OpenGL_DIR:PATH=C:/dev/Qt/5.11.0/msvc2015/lib/cmake/Qt5OpenGL

//The directory containing a CMake configuration file for Qt5ScriptTools.
Qt5ScriptTools_DIR:PATH=Qt5ScriptTools_DIR-NOTFOUND

//The directory containing a CMake configuration file for Qt5Script.
Qt5Script_DIR:PATH=Qt5Script_DIR-NOTFOUND
//The directory containing a CMake configuration file for Qt5Sql. Qt5Sql_DIR:PATH=C:/dev/Qt/5.11.0/msvc2015/lib/cmake/Qt5Sql //The directory containing a CMake configuration file for Qt5Svg. Qt5Svg_DIR:PATH=C:/dev/Qt/5.11.0/msvc2015/lib/cmake/Qt5Svg //The directory containing a CMake configuration file for Qt5Widgets. Qt5Widgets_DIR:PATH=C:/dev/Qt/5.11.0/msvc2015/lib/cmake/Qt5Widgets //The directory containing a CMake configuration file for Qt5Xml. Qt5Xml_DIR:PATH=C:/dev/Qt/5.11.0/msvc2015/lib/cmake/Qt5Xml //The directory containing a CMake configuration file for Qt5. Qt5_DIR:PATH=C:/dev/Qt/5.11.0/msvc2015/lib/cmake/Qt5

I added again the MakeFiles with correct values. Any suggestion?

Best regards,

Sergio

          

          

          


On Wed, May 30, 2018 at 2:55 PM, sergio campo <[hidden email]> wrote:
Hello Andreas,
Thanks for your answer. Added cmake log file and I don't see anything. I have qt and QGLViewer.
Best regards,
Ruben

On Wed, May 30, 2018 at 2:07 PM, Andreas Fabri <[hidden email]> wrote:

My guess is that there is no executable because you do not have Qt or Qglviewer installed.

You should see that in the log of cmake.

andreas


On 5/30/2018 2:01 PM, sergio wrote:
Hi 
After follow the manual CGAL installation:

https://www.cgal.org/download/windows.html#Boost

and compile everything ok I see the following files

C:\dev\CGAL-4.12\build\demo\Polyhedron>dir

30/05/2018  13:42    <DIR>          .
30/05/2018  13:42    <DIR>          ..
30/05/2018  13:29            32.323 ALL_BUILD.vcxproj
30/05/2018  13:29               287 ALL_BUILD.vcxproj.filters
30/05/2018  13:40               165 ALL_BUILD.vcxproj.user
30/05/2018  13:42    <DIR>          CMakeFiles
30/05/2018  13:29             1.041 cmake_install.cmake
30/05/2018  13:42    <DIR>          Debug
30/05/2018  13:29            12.583 INSTALL.vcxproj
30/05/2018  13:29               513 INSTALL.vcxproj.filters
30/05/2018  13:29             3.204 Polyhedron_Demo.sln
30/05/2018  13:40    <DIR>          Release
30/05/2018  13:42    <DIR>          Win32
30/05/2018  13:25    <DIR>          __
               7 archivos         50.116 bytes
               7 dirs  102.536.847.360 bytes libres
			   
so I open visual studio and open Polyhedron_Demo.sln in order to generate
the exe of 

https://github.com/CGAL/cgal/blob/master/Polyhedron/demo/Polyhedron/Plugins/PMP/Repair_polyhedron_plugin.cpp

The problem is that the build is ok without any error but I don't see any
executable.

So how i can test this demo?



--
Sent from: http://cgal-discuss.949826.n4.nabble.com/


-- 
Andreas Fabri, PhD
Chief Officer, GeometryFactory
Editor, The CGAL Project

phone: +33.492.954.912    skype: andreas.fabri



-- 
Andreas Fabri, PhD
Chief Officer, GeometryFactory
Editor, The CGAL Project

phone: +33.492.954.912    skype: andreas.fabri