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

[chore/Feature2Mesh] factorize featureTo family of function #2217

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

Conversation

Desplandis
Copy link
Contributor

Description

Follow-up of #2180.
Refactoring Feature2Mesh to reduce duplication of code.

Motivation and Context

There is lot of duplicated code in the featureTo* family of functions:

  • featureToPoint
  • featureToLine
  • featureToPolygon
  • featureToExtrudedPolygons

This leads to potential bugs, out-of-sync code (e.g. between featureToPolygon* functions) and does not ease maintenance of this module.

This PR aims to generalize code of both functions (e.g. at least featureToPoint/featureToLine & featureToPolygon/featureToExtrudedPolygons).

gchoqueux and others added 3 commits October 28, 2023 13:42
Refactoring Feature and Feature2Mesh to improve software architecture
and add styling points feature.

Software architecture
 * move Style responsibility from Feature to Feature2Mesh,
   because no stylisation must be applied when parsing.
 * add FeatureContext class to encapsulate all properties
   and methods necessary for stylization.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants