aleutgeb / STEPToXSection

The program STEPToXSection is a command line utility to export the contour of a planar cross section of solids contained in STEP files. It supports surface offsetting of the input geometry and in-plane curve offsetting. The in-plane base contour can also result from the orthogonal projection of geometries (silhouette) onto the plane within a specified maximum plane distance.
GNU Lesser General Public License v2.1
13 stars 4 forks source link

merge with STEPToMesh (and STEPToPoints?) #4

Open jmairboeck opened 2 years ago

jmairboeck commented 2 years ago

For easier deployment (especially when linking statically) and to reduce code duplication and maintenance efforts between the STEP processing tools, it could make sense to merge them into a single project, producing a single binary which can be invoked in several modes, e.g. similar to how the command line clients of git or svn work.

Listing the contents of a STEP file (i.e. -c) could then be a dedicated mode because it is shared between all other processing modes.

The code for reading a STEP file, for parts selection and maybe specifying the working unit (see https://github.com/aleutgeb/STEPToMesh/issues/4) could be shared.

aleutgeb commented 2 years ago

Hello, we are following the design philosophy "Do one thing, and do it well" or "Single-responsibility principle". So currently there are no plans to merge the functionality.

jmairboeck commented 2 years ago

We will keep the statically linked separate tools for now. Size-wise, two statically linked tools are still (slightly) smaller or nearly equal than using dynamic linking. My dynamically linked builds are about double in size than the static versions for both STEPToMesh and STEPToXSection. If we ever need a third one (e.g. STEPToPoints), we should probably switch to dynamic linking.