Skip to content

Noding Basic SegmentStrings vs Noded SegmentStrings #813

Answered by dr-jts
micycle1 asked this question in Q&A
Discussion options

You must be logged in to vote

Yes, there is. I have just noticed that the Javadoc on BasicSegmentString is not correct, so thanks for asking this question (I will fix it pronto).

The difference is:

  • BasicSegmentString allows accessing segments, but does not support adding nodes
  • NodedSegmentString allows accessing segments, and also allows adding nodes to the segments, and then splitting the segstring at the nodes to produce a set of sub-strings.

Noders are used for both detecting intersections and for computing noded arrangements. For detection it is fine to use BasicSegmentString. This avoids the (small) overhead of creating a SegmentNodeList for each string. But if full noding is required then NodedSegmentString mu…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by dr-jts
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants