Skip to content
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

fix vertical problems in polygons triangulation #1729

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

gmaillet
Copy link
Collaborator

Description

Using an average plane for polygons triangulation.

Motivation and Context

In featureToPolygon (Feature2Mesh.js) polygons are triangulate with earcut to create a BufferGeometry. This is a 2D triangulation method and it doesn't work on vertical faces.

@gmaillet gmaillet requested a review from gchoqueux October 28, 2021 11:45
Copy link
Contributor

@gchoqueux gchoqueux left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

May add option if the user knows that vertices are in plane XY
to avoid a transformation

src/Parser/GeoJsonParser.js Outdated Show resolved Hide resolved
src/Converter/Feature2Mesh.js Outdated Show resolved Hide resolved
@gmaillet gmaillet requested a review from gchoqueux November 5, 2021 09:18
@gchoqueux
Copy link
Contributor

may be invert default value for option.
How pass option in layer?

@gchoqueux
Copy link
Contributor

could you add example?

@gchoqueux gchoqueux modified the milestones: 2.36.0, 2.37.0 Nov 18, 2021
@gchoqueux gchoqueux modified the milestones: 2.37.0, 2.38.0 Feb 8, 2022
@gchoqueux gchoqueux modified the milestones: 2.38.0, 2.xx.x Apr 13, 2022
@Desplandis Desplandis assigned Desplandis and mgermerie and unassigned mgermerie Sep 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants