Currently, I am utilizing the D3-threeD2.js library to convert SVG files into THREE.Shape
(s) that can be extruded with three.js. The process works smoothly, however, when it comes to incorporating holes, I encounter an issue.
Imagine a shape resembling a donut: a circular disc with a hole in the center. Using the library generates one THREE.Shape
representing the disc and another THREE.Shape
representing the hole.
I understand that I can create a hole in the disc if I have a THREE.Path
, but unfortunately, I only have a THREE.Shape
.
So my question is - Is there a method to obtain a THREE.Path
from a THREE.Shape
? Alternatively, is there a way to punch a hole in a THREE.Shape
using another THREE.Shape
?