@gilboonet that is definitely something worth considering either as part of jscad or an addon library. I think we will have better idea after I have some time to cooperate with you on your project. It is definitely an interesting use-case, and a real project will give much needed insight on how to proceed with it.
@z3dev Thanks a lot, it is always helpful to understand the reason of specific behaviors. My design has one path for the outline that will be cut, and lines for the folds. To remove the black fill I can try to turn the path to a polygon.
@hrgdavor yes, the method I used was what was available but any other could replace it. The purpose is to get data from the embedded jscad script and create a pdf file from it that can then be downloaded or directly viewed into the browser.