const vec3 = require('../../maths/vec3/')
/**
* @param {poly3} polygon - the polygon to measure
* @return {String} the string representation
* @alias module:modeling/geometries/poly3.toString
*/
const toString = (polygon) => {
let result = 'poly3: vertices: ['
polygon.vertices.forEach((vertex) => {
result += `${vec3.toString(vertex)}, `
})
result += ']'
return result
}
module.exports = toString