001/**
002 * Copyright (c) 2008-2014 Ardor Labs, Inc.
003 *
004 * This file is part of Ardor3D.
005 *
006 * Ardor3D is free software: you can redistribute it and/or modify it 
007 * under the terms of its license which may be found in the accompanying
008 * LICENSE file or at <http://www.ardor3d.com/LICENSE>.
009 */
010
011package com.ardor3d.extension.model.util.nvtristrip;
012
013/**
014 * Ported from <a href="http://developer.nvidia.com/object/nvtristrip_library.html">NVIDIA's NvTriStrip Library</a>
015 */
016final class NvEdgeInfo {
017    long _refCount;
018    NvFaceInfo _face0, _face1;
019    int _v0, _v1;
020    NvEdgeInfo _nextV0, _nextV1;
021
022    // constructor puts 1 ref on us
023    NvEdgeInfo(final int v0, final int v1) {
024        _v0 = v0;
025        _v1 = v1;
026        _face0 = null;
027        _face1 = null;
028        _nextV0 = null;
029        _nextV1 = null;
030
031        // we will appear in 2 lists. this is a good
032        // way to make sure we delete it the second time
033        // we hit it in the edge infos
034        _refCount = 2;
035    }
036}