-
Notifications
You must be signed in to change notification settings - Fork 210
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding ESRI feature geometries as world decorations give degenerated triangles asserts #5467
Comments
When I looked at this issue last week, the below input caused
And immediately thereafter, this degenerate |
Updated description |
I managed to work around most issues by lowering the geometries resolution output by the ESRI server (i.e maxAllowedOffset). I still get inconsistent decoration display for some polygons though (Step to reproduce #2). Depending on the view pixel size, the decoration will sometime appear, and sometime not (without throwing any assert) |
@markschlosseratbentley this is blocking PR 5327, does anyone can help understanding why some ESRI geometries cannot be displayed as decorations? |
@mdastous-bentley the reason for the degenerate triangle assert is for triangles that are too small to be visible on the current view (and therefore waste bandwidth all through the system, including gl). The vertices that @dassaf4 listed above are of that category (I can tell just by looking at the numbers in this case, because they are the same to 7 digits and WebGL is single precision). So it makes sense to me that lowering the resolution output would probably get rid of the too tiny triangles, and sounds like it did. (I gather you no longer see any asserts?) What do you mean by "Step to reproduce #2", do you mean using saved view PhillyPolyF_assert2? |
@DStradley For some reasons, decorations wont display in the view at all (I dont get any error or assert).. interestedly zoom-in one step with the mouse wheel will make the decoration appears. If you need to reproduce, let me know. |
New development is being to display allow ESRI feature to selected. To achieve this, the feature geometry is fetched from the ESRI backend and display as a decoration.
Some geometry will gives asserts, and other will no be displayed at all on screen.
Assert details:
Message:
Programmer Error
Callstack:
assert (Assert.ts:46)
addTriangle (MeshBuilder.ts:246)
addFromPolyfaceVisitor (MeshBuilder.ts:122)
addFromPolyface (MeshBuilder.ts:91)
loadIndexedPolyface (MeshBuilderMap.ts:101)
loadPolyfacePrimitiveList (MeshBuilderMap.ts:83)
loadGeometry (MeshBuilderMap.ts:68)
createFromGeometries (MeshBuilderMap.ts:49)
toMeshBuilderMap (GeometryAccumulator.ts:164)
toMeshes (GeometryAccumulator.ts:171)
saveToGraphicList (GeometryAccumulator.ts:180)
finishGraphic (GeometryListBuilder.ts:175)
finish (GeometryListBuilder.ts:50)
renderGraphics (MapFeatureInfoDecorator.ts:206)
decorate (MapFeatureInfoDecorator.ts:214)
addFromDecorator (ViewContext.ts:187)
addDecorations (Viewport.ts:3322)
renderFrame (Viewport.ts:2490)
Steps to reproduce the behavior:
Sometimes, the polygon get initially displayed, but zoom-in out, will trigger an assert:
In some rare cases, no polygon is displayed:
Dataset:
philly_area_outline.zip
The text was updated successfully, but these errors were encountered: