Comments (6)
It's difficult to detect in the code, because we do not want to prevent some geometric traits combinations for advanced users.
Note that you might also be interested in using Segment_Delaunay_graph_filtered_traits_without_intersections_2
, if you don't have intersection between segments of your input.
from cgal.
for (int i = 0; i < points.size()-1; i++)
shouldn't this be:
for (int i = 0; i < points.size()-2; i++)
as otherwise points[i+1]
will be out of range?
from cgal.
I already compensate for the i+1
indexing by subtracting one from the size; if you would just loop over the points you would do for (int i = 0; i < points.size(); i++)
.
from cgal.
OK yes correct.
from cgal.
The exact predicates kernel does not provide all predicates needed by the Segment_Delaunay_graph_2
. So you have to use the filterered traits class:
typedef CGAL::Segment_Delaunay_graph_filtered_traits_2 K, CGAL::Field_with_sqrt_tag> Gt;
from cgal.
Thanks, that works. I suppose it was my mistake then and the issue can be closed. I do think the assertion error is misleading for the user. It may be worth improving the 'error message' if it is not too much work.
from cgal.
Related Issues (20)
- PMP: CGAL::Polygon_mesh_processing::experimental::remove_self_intersections() abnormal result HOT 1
- Preconditon violation detection
- Bug with optimal transportation curve reconstruction
- How to determine a polygon_with_holes is simple. HOT 2
- Got strange exception when segment intersection HOT 18
- A point projected on line, but "bounded_side_2" returned not ON_BOUNDARY sometime HOT 7
- Unknown CMake command "create_single_source_cgal_program". HOT 4
- The vertex order of the bounding box outputted by CGAL::oriented_bounding_box() is not fixed. HOT 9
- LAStools support HOT 1
- Documentation in CGAL::Polyline_simplification_2::Stop_above_cost_threshold Class HOT 3
- Proposal to add variable sizing fields with respect to euclidean distance to a surface in a 3D image
- Use pointmatcher with CGAL fail HOT 2
- A same Surface_mesh randomly got self intersections HOT 2
- Got CGAL ERROR: precondition violation! while inserting a single Polygon_2 to Polygon_Set_2 HOT 2
- Degraded performance of Polygon_set_2 intersections in multithreaded environment HOT 2
- How to convert my double type data to exact type? Not related to CGAL::Cartesian_converter.
- Isotropic remeshing creates self intersections HOT 8
- create_interior_straight_skeleton_2 using too much memory and time HOT 2
- Compilation failure of CGAL::cross_product on Windows MSVC HOT 3
- 'get_parameter': no matching overloaded function found HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cgal.