-
Is there any difference/advantage in passing a list of |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Yes, there is. I have just noticed that the Javadoc on The difference is:
(Really |
Beta Was this translation helpful? Give feedback.
-
The Javadoc for |
Beta Was this translation helpful? Give feedback.
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 nodesNodedSegmentString
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.Noder
s are used for both detecting intersections and for computing noded arrangements. For detection it is fine to useBasicSegmentString
. This avoids the (small) overhead of creating aSegmentNodeList
for each string. But if full noding is required thenNodedSegmentString
mu…