compas_cgal icon indicating copy to clipboard operation
compas_cgal copied to clipboard

compas_cgal.slicer.slice_mesh, open versus closed contours

Open ioannaMitropoulou opened this issue 3 years ago • 1 comments

Feature Request

As a user of the package, I want an extension of the compas_cgal.slicer.slice_mesh function so that I can use it for slicing open and closed meshes.

Details

Currently, the slice_mesh function returns a list of arrays that define the slice polylines. However, there is no information regarding whether the polyline represents an open or a closed contour. Instead, it would be nice if it also returned a boolean for example that defines if the first and the last point of each polyline are connected.

Describe alternatives you've considered We considered having a distance threshold between the first and last points, but that seemed to us impossible to make reliable. So now we consider that all paths are closed, but of course, this limits the shapes that we can apply this method on.

ioannaMitropoulou avatar Oct 18 '20 14:10 ioannaMitropoulou