The computeUniqueEdges
function is a method in the Polyhedron
class of the Yuka js library. This function is used to compute the unique edges of a polyhedron.
computeUniqueEdges()
This function does not take any parameters.
This function returns an array of edges that are unique in the polyhedron.
const polyhedron = new Polyhedron(vertices, faces);
const uniqueEdges = polyhedron.computeUniqueEdges();
The computeUniqueEdges
function is called on an instance of the Polyhedron
class, passing in the vertices and faces of the polyhedron as arguments. The function returns an array of unique edges in the polyhedron, which are stored in the uniqueEdges
variable.
This function does not throw any exceptions.
This function is dependent on the Polyhedron
class in the Yuka js library.
The computeUniqueEdges
function was created and is maintained by the Yuka js development team.