Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] How to test a CGAL Demo (Case Repair_polyhedron_plugin.cpp)

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] How to test a CGAL Demo (Case Repair_polyhedron_plugin.cpp)


Chronological Thread 
  • From: sergio campo <>
  • To:
  • Subject: Re: [cgal-discuss] How to test a CGAL Demo (Case Repair_polyhedron_plugin.cpp)
  • Date: Mon, 4 Jun 2018 11:14:59 +0200
  • Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=Pass ; spf=None
  • Ironport-phdr: 9a23:WdW/hxHfhHceVQ1THjNfW51GYnF86YWxBRYc798ds5kLTJ7zpcWwAkXT6L1XgUPTWs2DsrQY07eQ6/iocFdDyK7JiGoFfp1IWk1NouQttCtkPvS4D1bmJuXhdS0wEZcKflZk+3amLRodQ56mNBXdrXKo8DEdBAj0OxZrKeTpAI7SiNm82/yv95HJbAhEmDqwbaluIBmqsA7cqtQYjYx+J6gr1xDHuGFIe+NYxWNpIVKcgRPx7dqu8ZBg7ipdpesv+9ZPXqvmcas4S6dYDCk9PGAu+MLrrxjDQhCR6XYaT24bjwBHAwnB7BH9Q5fxri73vfdz1SWGIcH7S60/VDK/5KlpVRDokj8KODw38G/XhMJ+j79Vrgy9qBFk2YHYfJuYOeBicq/Bf94XQ3dKUMZLVyxGB4Oxd5APAPQbPeZXron9oEYFogekCgmpHOPvzSJDi3jo3aIgz+shEAfG3AMuH9IJqnTUq874NKgXUe+vzanIyS/PYO9R2Tf48YXFdA0qr/+LXbJ1a8XRyE8vGhvcjlWMs4DlPjSV2vwCs2ic6OpgWuavhHA9pw5tpTivw98ghZXGho0PzlDI7yJ5wJw6JdGgR057YMKkEJtNty6BLYd5XsQiQ2RwtCY11LIGvpu7czYWyJQ9xx/fZeaIfJSU4hLkTuaQIS10i25ieLK6gRu57EuuyvXkW8S231tGtDdJnsfMu3wX1BHf9NKLR/R880qnxD2BzRrc6vteLkAxjafbK4Auwro3lpcLtETMBC72mEHvgK6Yc0Uo5vGk6+rob7jnvJOcOIh0igbxMqQqhMOzG/g3Mg8LX2SD+OS80qPs/VHhTbhIgfA6iLTVvI7aKMgBpaO1HRVZ34ki5hqnCjepytUYnX0JLFJffxKHipDkO0/UL//kDPe/hVuskDlsx/DcOb3sGZrNLn3Zn7fgebZx8VJTyA02zdxH/ZJbFqkBIO7vWk/2rNHXEhA5PBaww+r+Fdp915geVn6SAq+CK6PfqkSI5+IqI+mUfoAZojf9K/4/5/7vl3A1g1EdfbP6lacQPXu3F/AjL0SCamf3mf8AF30Lt0wwVr/EklqHBCVefXmzWOo37zQjD8ryE47IR4aijrub2w+0G5RXYiZNDVXaQiSgTJmNR/pZMHHaGcRmiDFRDeHwGb9k7gmnsUrB85QiK+PV/iMCspe6jYp64uTSkVc58jkmVp3BgVHIdHl9myYzfxFzxLp2+BUvxVKK0Kw+iPtdR4QKuqF5FzwiPJuZ9NRUTtD/XgWbI4WMQVeiB8qjWXQ/Eox3zNgJbEJwXd6li0Kb0g==

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 <> 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 <> 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 <> 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 <> 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




  • Re: [cgal-discuss] How to test a CGAL Demo (Case Repair_polyhedron_plugin.cpp), sergio campo, 06/04/2018

Archive powered by MHonArc 2.6.18.

Top of Page