Commit Graph

93 Commits

Author SHA1 Message Date
Laurent Saboret 5010e4b58a Port to g++ 4.3.1 2008-10-28 09:18:02 +00:00
Laurent Saboret df58e7c4f8 New normals orientation method:
radial_normals_orientation_3() does a radial orientation of the normals of a point set. Normals are oriented towards exterior of the point set.
This very simple and very fast method is intended to convex objects.
2008-10-28 08:41:41 +00:00
Laurent Saboret be789e8a46 Added option to save or not the normals 2008-10-28 08:39:04 +00:00
Laurent Saboret f75a9f002b Memory optimization:
- use std::vector when buffer can be reserved in advance and cannot be too large,
- else use std::deque

I expect gains in terms of speed and memory fragmentation. 

Examples:
- MFC demo can now load bimba_range_images.off (range images of the Bimba con Nastrino scan, 3.8 millions points).
- Poisson reconstruction is 10 seconds shorter on Chinese_dragon_Minolta_point_set_225kpts_with_jet_normals.xyz.
2008-10-17 09:57:17 +00:00
Laurent Saboret 5efb9732c4 Fixed infinite loop on Linux 2008-10-15 07:28:31 +00:00
Laurent Saboret 824c080451 Port to g++ 4.1.2 2008-10-13 12:10:14 +00:00
Laurent Saboret 48f9fe1954 ReconstructionImplicitFunction models must be lightweight and stateless. 2008-10-13 11:50:45 +00:00
Laurent Saboret 5e0cf08719 Fixed potential crashes by catching TAUCS exceptions.
Fixed potential crash (if application is launched twice) by calling tempnam() to name TAUCS out-of-core files.

Windows specific: fixed crash with TAUCS on large linear systems:
- increased stack size
- added Win32_exception_handler protection to catch stack overflows
2008-10-13 08:40:47 +00:00
Laurent Saboret 3abd21e625 Fixed bug in largest_free_block(): search up to 4 GB on 32 bits platforms 2008-10-10 13:24:30 +00:00
Laurent Saboret 84343e9486 - Added Peak_memory_sizer::largest_free_block() memory statistics.
- Taucs_solver is now parameterized by the number type used internally by TAUCS.
2008-10-09 11:03:14 +00:00
Laurent Saboret 2ecdcd3256 Added duration and memory statistics. 2008-10-08 12:38:18 +00:00
Laurent Saboret f90fa90e3e Port to g++ 4.1.2 2008-10-06 15:59:17 +00:00
Laurent Saboret 2c48c2cedd - The MFC demo exports now manifold surfaces as .off (although the orientation is random).
- Added Peak_memory_sizer::count_free_memory_blocks() to track memory fragmentation.
- Added back call to Poisson_implicit_function::constrain_one_vertex_on_convex_hull().
2008-10-03 14:43:40 +00:00
Laurent Saboret 771bfb8f2e Fixed bug on Windows: PROCESS_MEMORY_COUNTERS.PeakPagefileUsage seems unreliable, thus we use an approximation. 2008-10-02 13:35:22 +00:00
Laurent Saboret 7cba4b3f28 Fixed declaration of templated methods 2008-09-30 14:32:45 +00:00
Laurent Saboret a3b10f1ec3 User Manual automatic update 2008-09-30 12:20:22 +00:00
Laurent Saboret f98b56c594 APSS_implicit_function uses now Point_with_normal_3<Gt, Vector_3> to save memory space (4 bytes per point). 2008-09-30 11:15:13 +00:00
Laurent Saboret 4abcbea669 - For clarity: renamed OrientedNormal_3/Oriented_normal_3 as OrientableNormal_3/Orientable_normal_3 = a normal vector oriented or not.
Note that Vector_3 is the concept of a normal vector (always) oriented.

- Point_with_normal_3 is now templated by the normal type. 
Types currently available are:
  -> Vector_3 (the default)
  -> Orientable_normal_3 (used by Point_set_3 for point cloud processing)
  -> Lightweight_vector_3 = a normal whose vector is allocated only if not zero (used by Poisson 3D triangulation).
We have now 2 corresponding concepts: 
  -> PointWithNormal_3 = a point + a normal (always) oriented.
  -> PointWithOrientableNormal_3 = a point + a normal oriented or not.
The purpose is to save memory space and to better document the requirements of algorithms processing normals.
2008-09-30 09:57:24 +00:00
Laurent Saboret 59906eeb79 - Fixed bug in in-place version of remove_outliers_wrt_camera_cone_angle_3() related to Gyroviz_point_3 copy constructor.
- Added warnings about remove_outliers_wrt_avg_knn_sq_distance_3(), remove_outliers_wrt_camera_cone_angle_3(), merge_epsilon_nearest_points_3(), random_simplification_points_3() and smooth_jet_fitting_3() which are not compatible with containers sorted wrt points position.
2008-09-29 14:13:21 +00:00
Laurent Saboret 21badcfe18 Removed boost properties (unused). 2008-09-29 14:08:19 +00:00
Laurent Saboret 674e9a2447 Fixed bug in mutable version of smooth_jet_fitting_3(): attributes other than position were reset. 2008-09-26 13:13:13 +00:00
Laurent Saboret 369001b96c Print TAUCS traces if DEBUG_TRACE >= 2.
Better check of TAUCS ordering call's return.
2008-09-25 14:46:12 +00:00
Laurent Saboret bfb6766d4e Port to g++ 4.1.2 2008-09-10 08:42:30 +00:00
Laurent Saboret ccf81d34ec Delaunay refinement for Poisson is moved from Poisson_implicit_function class to new poisson_refinement_3() function.
poisson_refinement_3() is implemented with mesher levels. See Mesh_3 package.
2008-09-09 12:50:17 +00:00
Laurent Saboret eae2511f34 Changed comments 2008-09-09 12:36:32 +00:00
Laurent Saboret d7ae08ca93 Mesh_criteria_3.h and Refine_tets.h are duplicated in Surface_reconstruction_3 until Mesh_3 is moved to svn trunk. 2008-09-09 12:32:55 +00:00
Laurent Saboret f58978bfbe Updated the reference manual 2008-09-05 11:12:02 +00:00
Laurent Saboret 8f1e17abcf Added CGAL_TRACE_STREAM object (== cerr if DEBUG_TRACE is defined, else nothing) 2008-08-28 13:48:50 +00:00
Laurent Saboret 159964b8fc Added traces 2008-08-28 13:09:53 +00:00
Laurent Saboret e6316826b3 Removed unnecessary includes of CGAL/basic.h.
Enforced CGAL_NDEBUG rule:
- code under include/CGAL/ and src/ must not use NDEBUG and assert(), but CGAL_NDEBUG and CGAL assertion macros.
- code under demo/, examples/ and test/ must use NDEBUG and assert().

Added _HAS_ITERATOR_DEBUGGING=0 to .vcproj makefiles to speed up VC++ 2005 debugger.

Removed CGAL_SURFACE_RECONSTRUCTION_CHECK_EXPENSIVE from .vcproj makefiles (unused).
2008-08-21 12:21:20 +00:00
Laurent Saboret f02e73df8d Added back trace as orient_normals_minimum_spanning_tree_3() uses a lot of memory. I was not able to optimize more the memory footprint but at least the trace will show the reason of an out-of-memory crash. 2008-08-21 12:11:58 +00:00
Laurent Saboret 2e7eae508d Fixed g++ warnings 2008-08-12 08:38:36 +00:00
Laurent Saboret 54c707b1b0 Added traces of the memory currently allocated (using CGAL::Memory_sizer) 2008-08-11 15:42:07 +00:00
Laurent Saboret 31d5835495 Fixed memory leak in orient_normals_minimum_spanning_tree_3() 2008-08-11 15:37:33 +00:00
Laurent Saboret 17b5a1f42a OnAlgorithmsOrientNormalsWithMST() selects non-oriented (instead of flipped) normals 2008-07-31 14:06:44 +00:00
Sylvain Pion 79864c0c8e Remove Arity_tag. 2008-07-22 12:29:01 +00:00
Sylvain Pion 2eb0d8f9e9 certainly() -> possibly(). 2008-07-14 11:16:41 +00:00
Sylvain Pion 9d7a609ff2 Make assertions trigger an error only for *certain* conditions (using CGAL::certainly()).
This is useful for interval arithmetic code.
(replay of r44002 with the header order hopefully fixed)
2008-07-10 21:49:17 +00:00
Laurent Saboret 382f4df403 Package:
Integrated point set simplification by clustering.
Implemented random point set simplification.
Implemented variant mutating the point set for point set simplification and outliers removal algorithms.

MFC demo:
Point set simplification and outliers removal algorithms select now the points to delete, instead of deleting them directly. This gives a chance to adjust the parameters before deletion.
2 new menu items related: "Delete selection" and "Reset selection".
Normals orientation algorithms select now flipped normals.
Fixed bug in merge_epsilon_nearest_points_3().
2008-07-08 15:01:10 +00:00
Sylvain Pion 2b4ebf01f7 Undo r44002 as it's buggy 2008-07-06 20:47:29 +00:00
Sylvain Pion 514a17ad4f Improve the interaction of assertions and interval computations.
Things like "CGAL_assertion(denominator != 0)" produced assertion failures for no gain.
So now, the assertion is triggered only if the condition is certain, using CGAL::certainly().
That is, change the following in all assertion files :
  ((EX)?(static_cast<void>(0)): ::CGAL::assertion_fail( # EX , __FILE__, __LINE__))
to :
  (CGAL::certainly(EX)?(static_cast<void>(0)): ::CGAL::assertion_fail( # EX , __FILE__, __LINE__))
2008-07-06 17:05:47 +00:00
Laurent Saboret f944600045 Huge APSS optimization (times are divided by 3 for the command line test and by 7 for the MFC demo) after profiling with AQtime:
- The Surface_mesher distance parameter is set to 0.005 for APSS (0.002 for Poisson). Both values are editable in the Options dialog.
- Removed the "APPS projection error" field in the Options dialog (unused).
- APSS kd-tree contains Point_with_normal_3 points instead of Gyroviz_point_3 objects (faster copy constructor).
- The number of neighbors is 7 by default (was 10).
- APSS caches the previous nearest neighbor to speed up the isValid() method (test if close to surface).
- If point is far from surface, APSS computes only the nearest neighbor (used to compute twice K nearest neighbors).
2008-07-04 14:56:20 +00:00
Laurent Saboret 0e00923b78 Port to g++ 2008-07-01 16:48:23 +00:00
Amit Gupta bc0ff05088 Added data-fitting term and normalization of divergence in the poisson surface reconstruction. 2008-07-01 13:09:35 +00:00
Laurent Saboret 1b3ed3a8c3 Added 2 items in Options dialog: Surface Mesher's dichotomy error and APSS projection error.
Default values are previous hard-coded values.

Use KNN from Options dialog in APSS. 
Default value is now 10 to match previous APSS KNN.
2008-06-20 14:04:47 +00:00
Laurent Saboret f13c455085 Added Gyroviz "Remove outliers wrt cameras cone angle" algorithm. 2008-06-19 15:37:32 +00:00
Nader Salman ac2beb5ddc Update from same files in Gyroviz package 2008-06-19 11:44:56 +00:00
Laurent Saboret 0874235ec9 Simpler implementation of surface_reconstruction_read_xyz(). gcc does not understand the function overloading of the previous implementation. 2008-06-06 09:13:40 +00:00
Laurent Saboret b80420b7f3 Replaced read_point_set() par a call to surface_reconstruction_read_xyz() 2008-06-05 17:02:25 +00:00
Laurent Saboret 49964c07f9 Fixed crashing bug (or infinite loop) when Poisson reconstructs polygirl model:
- added Implicit_fct_delaunay_triangulation_3::input_points_bounding_box() (resp. sphere)
- these methods are called by Poisson_implicit_function::bounding_box() (resp. sphere), which are now accurate
- no need anymore to divide by 2 the bounding sphere radius (which cashed the Surface Mesher)
2008-06-04 13:20:49 +00:00