Example #1
0
 public void setPoint(final Vector3 point) {
   this.point.set(point);
   for (final Face<?, ?> face : faces) {
     face.markDirty();
   }
   owner.markDirty();
 }
Example #2
0
 /**
  * Set the vertex array reference to the new array. The number of valid items is taken from the
  * second parameter. This replaces the existing vertex list array reference with the new
  * reference.
  *
  * <p>In a live scene graph, can only be called during the bounds changed callback.
  *
  * @param type The number of dimensions to the coordinates - 2D, 3D or 4D
  * @param vertices The new array reference to use for vertex information
  * @param numValid The number of valid values to use in the array
  * @throws IllegalArgumentException The number is negative
  * @throws InvalidWriteTimingException An attempt was made to write outside of the
  *     NodeUpdateListener callback method
  */
 @Override
 public void setVertices(int type, float[] vertices, int numValid)
     throws IllegalArgumentException, InvalidWriteTimingException {
   super.setVertices(type, vertices, numValid);
   numRequiredCoords = numValid;
 }
Example #3
0
 /**
  * Set the number of vertices to the new number.
  *
  * <p>In a live scene graph, can only be called during the bounds changed callback.
  *
  * @param count The new number, must be >= 0
  * @throws IllegalArgumentException The number is negative
  * @throws InvalidWriteTimingException An attempt was made to write outside of the
  *     NodeUpdateListener callback method
  */
 @Override
 public void setValidVertexCount(int count)
     throws IllegalArgumentException, InvalidWriteTimingException {
   super.setValidVertexCount(count);
   numRequiredCoords = count;
 }