Beispiel #1
0
 /// <inheritdoc/>
 protected override void CloneCore(Shape sourceShape)
 {
   var source = (ConvexPolyhedron)sourceShape;
   _vertices = source._vertices;
   _aabbLocal = source._aabbLocal;
   _innerPoint = source._innerPoint;
   _directionLookupTable = source._directionLookupTable;
   _vertexAdjacency = source._vertexAdjacency;
 }
Beispiel #2
0
 private void BuildVertexAdjacencyLists(DcelMesh convexHull)
 {
   _vertexAdjacency = new VertexAdjacency(convexHull);
 }
Beispiel #3
0
    //--------------------------------------------------------------
    #region Methods
    //--------------------------------------------------------------

    internal void Set(Vector3F[] vertices, Aabb aabb, Vector3F innerPoint, DirectionalLookupTableUInt16F directionalLookupTable, VertexAdjacency vertexAdjacency)
    {
      _vertices = vertices;
      _aabbLocal = aabb;
      _innerPoint = innerPoint;
      _directionLookupTable = directionalLookupTable;
      _vertexAdjacency = vertexAdjacency;
    }