The interface without the cutout showing in the 3D view

This week was spent trying to work out a lot of the bugs that were discovered last week during the addition of cutouts to the interface. When cutouts were first added, there was a problem with the generation of the 3D view of the component. The hole vertices were being added to the list of the face vertices, causing the face to be rendered incorrectly. I was able to trace the issue the the triangulation method of the RoCo api, which was originally intended for the creation of STL files. For some reason, this works for the STL, but does not work for the method we were using to draw the faces in the web interface. I was able to fix the issue so the the face would be drawn correctly, however, I am still trying to understand how to draw the holes in the interface. Although three.js, the library we are using to draw 3D shapes allows the passing in of a "holes" parameter to its triangulation function, the documentation for this function is very bad, and it is extremely vague with regards to what actually needs to be passed in for this parameter. After some searching online, I found some people having similar issues, but none of their fixes seemed to work/apply to our situation. I will continue exploring this in the coming week. For now, the faces with cutouts do display correctly, but the cutout itself is not shown. However, the cutout is shown correctly in the 2D view, making the current state somewhat usable, but far from ideal.

Next Post Previous Post