AABB
AlignmentBehavior
ArriveBehavior
AStar
BFS
BoundingSphere
BVH
BVHNode
Cell
CellSpacePartitioning
CohesionBehavior
CompositeGoal
ConvexHull
Corridor
CostTable
DFS
Dijkstra
Edge
EntityManager
EvadeBehavior
EventDispatcher
Behavior
FollowPathBehavior
FuzzyAND
FuzzyCompositeTerm
FuzzyFAIRLY
FuzzyModule
FuzzyOR
FuzzyRule
FuzzySet
FuzzyTerm
FuzzyVariable
FuzzyVERY
GameEntity
Goal
GoalEvaluator
Graph
GraphUtils
HalfEdge
HeuristicPolicyDijkstra
HeuristicPolicyEuclid
HeuristicPolicyEuclidSquared
HeuristicPolicyManhattan
InterposeBehavior
LeftSCurveFuzzySet
LeftShoulderFuzzySet
LineSegment
Logger
MathUtils
Matrix3
Matrix4
MemoryRecord
MemorySystem
MeshGeometry
MessageDispatcher
MovingEntity
NavEdge
NavMesh
NavMeshLoader
NavNode
Node
NormalDistFuzzySet
OBB
ObstacleAvoidanceBehavior
OffsetPursuitBehavior
OnPathBehavior
Path
Plane
Polygon
Polyhedron
PriorityQueue
PursuitBehavior
Quaternion
Ray
RectangleTriggerRegion
Regular
RightSCurveFuzzySet
RightShoulderFuzzySet
SAT
SeekBehavior
SeparationBehavior
SingletonFuzzySet
Smoother
SphericalTriggerRegion
State
StateMachine
SteeringBehavior
SteeringManager
Task
TaskQueue
Telegram
Think
Time
TriangularFuzzySet
Trigger
TriggerRegion
Vector3
Vehicle
Version
WanderBehavior

computeUniqueEdges

功能描述

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.