Closed FishOrBear closed 4 years ago
const area = function (csg) {
let result = csg.toTriangles().map(function (triPoly) {
return triPoly.getTetraFeatures(['area'])
})
console.log('area', result)
}
csgMeasurements.js
need return result
cag.js
Cag should not have this method
reTesselated
@FishOrBear thanks for all the comments. However, we would prefer two things...
Also, we are working on the V2 version of the library now. Hopefully, we can bring any changes into V2 as well. We will let you know if possible or not.
Yeah. V1 has lots of bugs. We have fixed these bugs in V2, and added automated tests.
Closing this issue.
https://github.com/jscad/csg.js/blob/9fb96d33b32931d379f4d4f190ce999a3ee9f072/src/core/geometry/geom3/reTesselateCoplanarPolygons.js#L35:L85
Adding an empty array here seems to make no sense.
Consider using such code?