Open Desplandis opened 11 months ago
Follow-up of #2180. Refactoring Feature2Mesh to reduce duplication of code.
Feature2Mesh
There is lot of duplicated code in the featureTo* family of functions:
featureTo*
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.
featureToPolygon*
This PR aims to generalize code of both functions (e.g. at least featureToPoint/featureToLine & featureToPolygon/featureToExtrudedPolygons).
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
).