Project

General

Profile

« Previous | Next » 

Revision 9a7e8b98

Added by Leszek Koltunski about 1 year ago

new SPLIT type: type EDGE_COIN (will be used in Coin Tetrahedron).
Only supported in Tetrahedrons for now.

View differences:

src/main/java/org/distorted/objectlib/touchcontrol/TouchControlDodecahedron.java
110 110
    {
111 111
    switch(type)
112 112
      {
113
      case TYPE_SPLIT_EDGE  : return partEdge(point,face);
114
      case TYPE_SPLIT_CORNER: return partCorner(point,face);
115
      default               : return 0;
113
      case TYPE_NOT_SPLIT      : return 0;
114
      case TYPE_SPLIT_EDGE     : return partEdge(point,face);
115
      case TYPE_SPLIT_CORNER   : // not supported
116
      case TYPE_SPLIT_EDGE_COIN: // not supported
116 117
      }
118

  
119
    return 0;
117 120
    }
118 121

  
119 122
///////////////////////////////////////////////////////////////////////////////////////////////////
......
155 158
      }
156 159
    }
157 160

  
158
///////////////////////////////////////////////////////////////////////////////////////////////////
159
// TODO - no such object yet
160

  
161
  int partCorner(float[] point, int face)
162
    {
163
    return 0;
164
    }
165

  
166 161
///////////////////////////////////////////////////////////////////////////////////////////////////
167 162

  
168 163
  boolean isInsideFace(int face, float[] p)

Also available in: Unified diff