Comments (4)
@artem-ogre It was duplicates! My algorithm that generated my polygon includes the end point which is the same as the start point.
Got to say that this library is amazing! Extremely fast and much easier to use then others I've seen.
Thank you for the quick response!
from cdt.
Hi, Michael,
Thanks for creating the issue. The reason could be:
- You have duplicated vertices in your input: you insert a vertex into a triangulation that already contains a point with exactly the same coordinates. You can use
CDT::FindDuplicates
method to check for duplicates in your input. - There is a bug in CDT. To fix this I would need an example of input that reproduces the issue. Perhaps you could break when the problem occurs and dump the content of
points
?
Provided code looks good to me at a quick glance. Except unless you have some other usages of CustomPoint2D
you could use CDT::V2d
without providing the getters. Also do you experience this issue on the latest master?
from cdt.
Thank you for the quick reply! I'll check for duplicates and if not I'll look into creating some data to reproduce the bug.
Yes I'm using master. I cloned it yesterday.
from cdt.
Great! I'm happy that it works and you like it. :)
from cdt.
Related Issues (20)
- Some inputs that trigger failure HOT 3
- Warnings: `vertices` is shadowing a member declaration HOT 1
- Tiny compilation warning (VS2019) HOT 6
- initializeWithCustomGrid HOT 1
- Infinite Loop in Conform Mode HOT 4
- overlapping edges / flat triangles (solved) HOT 5
- Csharp support? HOT 1
- Are there better ways to find all triangles containing a certain edge? HOT 2
- Generate some degenerate triangles HOT 2
- How to update triangulations efficiently? HOT 10
- How to obtain the vertices inside the boundary composed with some edges? HOT 3
- A case that failed in triangulation HOT 20
- Question about m_vertTris HOT 1
- Wrong super-triangle calculated for tiny bounding box
- Failure in eraseOuterTriangles HOT 3
- Callbacks HOT 6
- Unexpected new vertices created; potential issues (or misuse of the API?) HOT 5
- Name clash HOT 4
- Are these intersecting edges being handled correctly? HOT 2
- Resume CDT::Triangulation HOT 4
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 cdt.